예제 #1
0
        private void addButton_messanger_Click(object sender, EventArgs e)
        {
            MessengerDesign msgrForm = new MessengerDesign();

            msgrForm.ShowDialog();
            DB.showDataFromMessenger(messangerTableView);
        }
예제 #2
0
        private void editButton_messanger_Click(object sender, EventArgs e)
        {
            int row = messangerTableView.CurrentCellAddress.Y;

            string          name      = messangerTableView.Rows[row].Cells[1].Value.ToString();
            string          surname   = messangerTableView.Rows[row].Cells[2].Value.ToString();
            string          city_name = messangerTableView.Rows[row].Cells[3].Value.ToString();
            int             id        = (int)messangerTableView.Rows[row].Cells[0].Value;
            MessengerDesign msgForm   = new MessengerDesign(id, name, surname, city_name);

            msgForm.ShowDialog();
            DB.showDataFromMessenger(messangerTableView);
        }