/// <summary> /// opens the singelton instance of addbook form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddBook_Click(object sender, EventArgs e) { AddBooks addBooks = AddBooks.Instance(); Utils.SwitchBetweenWindows(this, addBooks); // addBooks.ShowDialog(); }
private void EditBook_Click(object sender, EventArgs e) { AddBooks addBooks = AddBooks.Instance(book); Utils.SwitchBetweenWindows(this, addBooks); }