public void AddUser() { SideForm addForm = new AddForm(this); addForm.ShowDialog(); UpdateUsersBox(); }
//click event to open the entry add window and minimize the current window private void AddOpen_Click(object sender, EventArgs e) { this.WindowState = FormWindowState.Minimized; AddForm addform = new AddForm(); addform.ShowDialog(); this.WindowState = FormWindowState.Normal; }