private void saveButton_Click(object sender, RoutedEventArgs e) { if (deploy()) { OverlaySettings.saveSettings(); Hide(); } }
private void Window_Closing_1(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; if (deploy()) { OverlaySettings.saveSettings(); Hide(); } }