Exemplo n.º 1
0
 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); }
     }
 }
Exemplo n.º 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); }
     }
 }
Exemplo n.º 3
0
 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();
 }