private void btnNotes_Click(object sender, EventArgs e) { frmNote DriverNote = new frmNote(System.Convert.ToInt32(txtDriverID.Text), Notes.NoteType.Driver); DriverNote.FormClosing += delegate { this.Show(); }; DriverNote.StartPosition = FormStartPosition.Manual; Sizer.ResizeForm(DriverNote); DriverNote.Show(); }
private void btnNotes_Click(object sender, EventArgs e) { frmNote clientNote = new frmNote(System.Convert.ToInt32(txtClientID.Text), Notes.NoteType.Client); clientNote.FormClosing += delegate { this.Show(); }; Sizer.ResizeForm(clientNote); clientNote.StartPosition = FormStartPosition.Manual; clientNote.ShowDialog(); }