/// <summary> /// The OnAddExistingAuthorButton_Clicked /// </summary> /// <param name="sender">The sender<see cref="object"/></param> /// <param name="e">The e<see cref="EventArgs"/></param> private void OnAddExistingAuthorButton_Clicked(object sender, EventArgs e) { using (var dlg = new AuthorsListing()) { dlg.ShowDialog(); } this.txtAuthor.Text = BookListPropertiesClass.AuthorsNameCurrent.Trim(); this.SetAddingNewBookControlsState(); }
private void SelectAuthorButtonClicked(object sender, EventArgs e) { using (var win = new AuthorsListing()) { win.ShowDialog(); } if (string.IsNullOrEmpty(BookListPropertiesClass.AuthorsNameCurrent)) return; this.txtAuthorName.Text = BookListPropertiesClass.AuthorsNameCurrent; }
private void OnDisplayAllAuthorsMenuItem_Clicked(object sender, EventArgs e) { using (var dlg = new AuthorsListing()) { dlg.ShowDialog(); if (dlg.DialogResult == DialogResult.OK) { } } }
private void OnDisplayAllAuthorsMenuItem_Clicked(object sender, EventArgs e) { BookListPropertiesClass.AuthorsNameCurrent = string.Empty; using (var dlg = new AuthorsListing()) { dlg.ShowDialog(); } if (!string.IsNullOrEmpty(BookListPropertiesClass.AuthorsNameCurrent)) { this.LoadUnformattedData(); } }
private void OnDisplayAllAuthorsMenuItem_Clicked(object sender, EventArgs e) { using (var dlg = new AuthorsListing()) { dlg.ShowDialog(); } if (string.IsNullOrEmpty(BookListPropertiesClass.AuthorsNameCurrent)) { return; } this.LoadUnformattedData(); this.btnFirst.PerformClick(); }