private void ExitBtn_Click(object sender, RoutedEventArgs e) { if (MessageBox.Show("런처를 종료하시겠습니까?", "호크아이 런처", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.No) { //do no stuff } else { Taskbar.Show(); this.Close(); } }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { #if false if (MessageBox.Show("Close Application?", "Question", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.No) { //do no stuff } else { Taskbar.Show(); this.Close(); } #endif }