private void Edit_Button_Click(object sender, EventArgs e) { Edit_Contact edit = new Edit_Contact(); edit.ShowDialog(); this.ShowGroup(); }
private void ListShowAll_DoubleClick(object sender, EventArgs e) { Edit_Contact edit = new Edit_Contact(); edit.TextEdit_ID.Text = ListShowAll.CurrentRow.Cells[0].Value.ToString().Trim(); edit.Find(); edit.ShowDialog(); }
private void Remove_contact_Button_Click(object sender, EventArgs e) { Edit_Contact edit = new Edit_Contact(); edit.TextEdit_ID.Text = ID_Textbox.Text; if (ID_Textbox.Text == "") { XtraMessageBox.Show("The textbox incorrect format", "Delete contact", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void Select_Button_Click(object sender, EventArgs e) { Edit_Contact edit = new Edit_Contact(); edit.TextEdit_ID.Text = ID_Textbox.Text; if (ID_Textbox.Text == "") { XtraMessageBox.Show("The textbox incorrect format", "Find contact", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { edit.Find(); edit.ShowDialog(); } }