示例#1
0
文件: config.cs 项目: Diullei/Storm
 private void configureShellExt_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     string homeDir = CSScriptInstaller.GetEnvironmentVariable("CSSCRIPT_DIR");
     if (homeDir != null)
     {
         try
         {
             using (CSSScript.ShellExForm f = new CSSScript.ShellExForm())
             {
                 if (DialogResult.OK == f.ShowDialog())
                     configForm.RefreshTreeView();
             }
         }
         catch (Exception ex) { MessageBox.Show(ex.Message); }
     }
 }
示例#2
0
 void ConfigureShellExtensions()
 {
     string homeDir = CSScriptInstaller.GetEnvironmentVariable("CSSCRIPT_DIR");
     if (homeDir != null)
     {
         try
         {
             using (CSSScript.ShellExForm f = new CSSScript.ShellExForm())
             {
                 if (DialogResult.OK == f.ShowDialog())
                     configForm.RefreshTreeView();
             }
         }
         catch (Exception ex) { MessageBox.Show(ex.Message); }
     }
 }
示例#3
0
文件: config.cs 项目: Diullei/Storm
 private void OnCheckHandler(object o, TreeViewEventArgs arg)
 {
     //MessageBox.Show("If you want to modify menu item click 'Configure Shell Extension' link.");
     using (Form f = new CSSScript.ShellExForm())
         f.ShowDialog();
 }