public void Exit(object sender, EventArgs e) { Off = false; window.Close(); this.Close(); }
private void Button_Click(object sender, RoutedEventArgs e) { Off = false; window.Close(); this.Close(); }