Permalink
Browse files

Added "Compile" as a tray icon context menu

  • Loading branch information...
1 parent cb08df2 commit bdf10132032f9be07b6b946a47d8680ff14a096f DashK committed Oct 4, 2012
Showing with 917 additions and 731 deletions.
  1. +163 −0 .gitignore
  2. +36 −26 WinLess/Forms/mainForm.Designer.cs
  3. +28 −8 WinLess/Forms/mainForm.cs
  4. +690 −697 WinLess/Forms/mainForm.resx
View
@@ -0,0 +1,163 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.vspscc
+.builds
+*.dotCover
+
+## TODO: If you have NuGet Package Restore enabled, uncomment this
+#packages/
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+
+# ReSharper is a .NET coding add-in
+_ReSharper*
+
+# Installshield output folder
+[Ee]xpress
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish
+
+# Others
+[Bb]in
+[Oo]bj
+sql
+TestResults
+*.Cache
+ClientBin
+stylecop.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+
+
+
+############
+## Windows
+############
+
+# Windows image file caches
+Thumbs.db
+
+# Folder config file
+Desktop.ini
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
+
+# Mac crap
+.DS_Store
Oops, something went wrong.
@@ -341,14 +341,12 @@ private void refreshDirectoryButton_Click(object sender, EventArgs e)
private void compileSelectedButton_Click(object sender, EventArgs e)
{
- List<Models.File> files = (List<Models.File>)filesDataGridView.DataSource;
- foreach (Models.File file in files)
- {
- if (file.Enabled)
- {
- Compiler.CompileLessFile(file.FullPath, file.OutputPath, file.Minify);
- }
- }
+ CompileSelectedFiles();
+ }
+
+ private void compileToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ CompileSelectedFiles();
}
#endregion
@@ -478,5 +476,27 @@ private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
}
#endregion
+
+ #region Helper Methods
+
+ /// <summary>
+ /// Compiles a list of selected LESS files
+ /// </summary>
+ private void CompileSelectedFiles()
+ {
+ // Retrieve list of files from data grid
+ List<Models.File> files = (List<Models.File>)filesDataGridView.DataSource;
+
+ // Compile files one by one
+ foreach (Models.File file in files)
+ {
+ if (file.Enabled)
+ {
+ Compiler.CompileLessFile(file.FullPath, file.OutputPath, file.Minify);
+ }
+ }
+ }
+
+ #endregion
}
}
Oops, something went wrong.

1 comment on commit bdf1013

@zaung
zaung commented on bdf1013 Oct 24, 2012

way to give back to the community kenny. awesome....

Please sign in to comment.