static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MyForm = new AuthorForm(); Application.Run(MyForm); //Application.Run(new Biblioteca()); }
private void ChangeAuthor_Click(object sender, EventArgs e) { this.Hide(); // Or Close()? // create new only if not exists if (!existsAuthorsForm) { authorsForm = new AuthorForm(); authorsForm.Show(); //position right to this authorsForm.Location = new Point(this.Location.X + this.Size.Width + 10, this.Location.Y); existsAuthorsForm = true; } authorsForm?.Show(); }