Exemplo n.º 1
0
 /// <summary>
 /// MainTabControl SelectedIndex Changed Event.
 /// </summary>
 private void MainTabControl_SelectedIndexChanged(object sender, EventArgs e)
 {
     try {
         if (Finder != null && !Finder.IsDisposed)
         {
             Finder.Close();
         }
     } catch (Exception err) {
         Common.WriteLog(DateTime.Now, EnmMsgType.Error, "System", "Delta.MPS.AccessSystem.CopyAuthForm.MainTabControl.SelectedIndexChanged", err.Message, err.StackTrace);
         MessageBox.Show(err.Message, "系统错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 2
0
 private void MetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     Finder.Close();
     Finder.Uninstall();
 }