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); } } }
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); } } }
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(); }