コード例 #1
0
ファイル: Main_Form.cs プロジェクト: AustinSB/HairSpaApp
        private void appointmentsCreate_Button_Click(object sender, EventArgs e)
        {
            Main.AppointmentIndex = null;
            var appointment_Form = new Appointment_Form();

            appointment_Form.AppointmentFormClosed += new EventHandler(appointmentForm_Closed);
            appointment_Form.Show();
            this.Enabled = false;
        }
コード例 #2
0
ファイル: Main_Form.cs プロジェクト: AustinSB/HairSpaApp
        private void appointmentsEdit_Button_Click(object sender, EventArgs e)
        {
            if (Main.AppointmentIndex == null)
            {
                MessageBox.Show("Must select item to edit", "Invalid Selection");
                return;
            }

            var appointment_Form = new Appointment_Form();

            appointment_Form.AppointmentFormClosed += new EventHandler(appointmentForm_Closed);
            appointment_Form.Show();
            this.Enabled = false;
        }