Esempio n. 1
0
        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();
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
        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();
            }
        }