aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/DesktopIcon.cs
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-05-26 19:11:01 -0400
committerMichaelTheShifter <[email protected]>2016-05-26 19:11:01 -0400
commitef09525b70c0e5000deee3ae8a101d387bf989a3 (patch)
tree254cb38ab6fcb914b6a10e6d268535d104e1530e /source/WindowsFormsApplication1/DesktopIcon.cs
parentc43d82eebd5e71ff5860fb2797bc4ebaa90e541e (diff)
downloadshiftos-c--ef09525b70c0e5000deee3ae8a101d387bf989a3.tar.gz
shiftos-c--ef09525b70c0e5000deee3ae8a101d387bf989a3.tar.bz2
shiftos-c--ef09525b70c0e5000deee3ae8a101d387bf989a3.zip
0.1.1 was released - time to update the repo.
Diffstat (limited to 'source/WindowsFormsApplication1/DesktopIcon.cs')
-rw-r--r--source/WindowsFormsApplication1/DesktopIcon.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/source/WindowsFormsApplication1/DesktopIcon.cs b/source/WindowsFormsApplication1/DesktopIcon.cs
index d0523d2..bfb0940 100644
--- a/source/WindowsFormsApplication1/DesktopIcon.cs
+++ b/source/WindowsFormsApplication1/DesktopIcon.cs
@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using System.IO;
namespace ShiftOS
{
@@ -48,10 +49,18 @@ namespace ShiftOS
public string LuaAction = "open_program(\"shiftorium\")";
private void Icon_Click(object sender, EventArgs e)
{
- var li = new LuaInterpreter();
- li.mod(LuaAction);
- lbiconname.BackColor = Color.White;
- t.Start();
+ if (File.Exists(Paths.Desktop + IconName))
+ {
+ var fs = new File_Skimmer();
+ fs.OpenFile(Paths.Desktop + IconName);
+ }
+ else
+ {
+ var li = new LuaInterpreter();
+ li.mod(LuaAction);
+ lbiconname.BackColor = Color.White;
+ t.Start();
+ }
}
public Timer t = new Timer();