private void SaveAccountMenuItem_Click(object sender, RoutedEventArgs e) { if (saveAccountWindow == null) { saveAccountWindow = new SaveAccountWindow(); saveAccountWindow.Closed += (_sender, _e) => { saveAccountWindow = null; }; } saveAccountWindow.Left = this.Width / 2 + this.Left - saveAccountWindow.Width / 2; saveAccountWindow.Top = this.Height / 2 + this.Top - saveAccountWindow.Height / 2; saveAccountWindow.Show(); }
private void ClearAccountMenuItem_Click(object sender, RoutedEventArgs e) { SaveAccountWindow.RemoveSavedAccount(); }