Esempio n. 1
0
        private void buttonHelp_Click(object sender, RoutedEventArgs e)
        {
            string str = Path.Combine(Environment.CurrentDirectory, "AddInSpy.mht");

            if (!File.Exists(str))
            {
                int num = (int)System.Windows.MessageBox.Show(AppResources.HELPFILE_NOT_FOUND, AppResources.WARNING, MessageBoxButton.OK, MessageBoxImage.Exclamation);
            }
            else
            {
                if (this.helpWindow == null)
                {
                    this.helpWindow = new HelpWindow(str);
                    this.helpWindow.ShowInTaskbar = false;
                    this.helpWindow.Closing      += new CancelEventHandler(this.helpWindow_Closing);
                }
                this.helpWindow.Show();
                this.helpWindow.Activate();
            }
        }
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     if (this.helpWindow == null)
     return;
       this.helpWindow.Close();
       this.helpWindow = (HelpWindow) null;
 }
 private void helpWindow_Closing(object sender, CancelEventArgs e)
 {
     this.helpWindow = (HelpWindow) null;
 }
 private void buttonHelp_Click(object sender, RoutedEventArgs e)
 {
     string str = Path.Combine(Environment.CurrentDirectory, "AddInSpy.mht");
       if (!File.Exists(str))
       {
     int num = (int) System.Windows.MessageBox.Show(AppResources.HELPFILE_NOT_FOUND, AppResources.WARNING, MessageBoxButton.OK, MessageBoxImage.Exclamation);
       }
       else
       {
     if (this.helpWindow == null)
     {
       this.helpWindow = new HelpWindow(str);
       this.helpWindow.ShowInTaskbar = false;
       this.helpWindow.Closing += new CancelEventHandler(this.helpWindow_Closing);
     }
     this.helpWindow.Show();
     this.helpWindow.Activate();
       }
 }
Esempio n. 5
0
 private void helpWindow_Closing(object sender, CancelEventArgs e)
 {
     this.helpWindow = (HelpWindow)null;
 }