Пример #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            buttonWasClicked = true;
            if (buttonWasClicked == true)
            {
                int rowIndex = CalendarDGV.CurrentCell.RowIndex;

                SetApptId = CalendarDGV.Rows[rowIndex].Cells[0].Value.ToString();

                SetCustName = CalendarDGV.Rows[rowIndex].Cells[4].Value.ToString();
            }

            EditAppointment editAppointment = new EditAppointment();

            editAppointment.mainScreen = this;
            editAppointment.Show();
        }
Пример #2
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            EditAppointment editAppointment = new EditAppointment();

            editAppointment.Show();
        }