public MainWindow() { InitializeComponent(); _aboutBox = new AboutBox(); // fills _settings form _settings = new Properties.Settings(); txtFenstername.Text = _settings.Fenstername; foreach (string anchor in _settings.Anker) { boxAnker.Items.Add(anchor); } if (boxAnker.Items.Count > 0) { boxAnker.SelectedIndex = 0; } boxTyp.Items.Add("Kreditkartenkonto"); boxTyp.Items.Add("Sparkonto"); boxTyp.SelectedIndex = 0; }
// Private Methods (12) /// <summary> /// Shows the AboutBox /// </summary> private void BtnAboutClick(object sender, EventArgs e) { // if (on any reason) the form was disposed / closed if (_aboutBox.IsDisposed) { _aboutBox = new AboutBox(); } _aboutBox.ShowAnimated(); }