Beispiel #1
0
        private void MetroWindow_Closing(object sender, CancelEventArgs e)
        {
            ServerConfigService.SaveAll();
            NetworkAdapterInstaller.CloseNetwork();
            if (MainWindow.appMutex != null)
            {
                MainWindow.appMutex.ReleaseMutex();
                MainWindow.appMutex.Close();
            }
            Process process = MainWindow.findExistMapleProccess();

            if (process != null)
            {
                process.Kill();
            }
        }
Beispiel #2
0
 private void MetroWindow_Closing(object sender, CancelEventArgs e)
 {
     ServerConfigService.SaveAll();
     NetworkAdapterInstaller.CloseNetwork();
 }