Exemple #1
0
        private void DoctorButton_Click(object sender, EventArgs e)
        {
            InsideFormPanel.Controls.Clear();
            //InsideFormPanel.Controls.Clear();
            var doctorCardForm = new DoctorCardForm();

            InsideForm          = doctorCardForm;
            InsideForm.Size     = InsideFormPanel.Size;
            InsideForm.TopLevel = false;
            InsideFormPanel.Controls.Add(InsideForm);
            InsideForm.Show();

            for (int i = 0; i < buttons.Length; i++)
            {
                if (buttons[i] != sender)
                {
                    buttons[i].Enabled   = true;
                    buttons[i].BackColor = readyButtonColor;
                }
                else
                {
                    buttons[i].Enabled   = false;
                    buttons[i].BackColor = pressedButtonColor;
                }
            }
        }
        private void CreateNewPatientButton_Click(object sender, EventArgs e)
        {
            PatientCardForm patientCardForm = new PatientCardForm();

            //var patientwaydialogform = new PatientWayDialogForm();
            InsideForm          = patientCardForm;
            InsideForm.TopLevel = false;
            //InsideForm.BackColor = Color.Blue;
            //this.Controls.Add(InsideForm);
            InsideForm.Size = this.Size;
            //CreateNewPatientButton.Hide();
            // ChooseOldPatient.Hide();
            MainPanel.Controls.Add(InsideForm);
            InsideForm.Show();
            patientCardForm.MainPanel = this.MainPanel;
            this.Dispose();
            //this.Dispose();
        }
Exemple #3
0
        private void PatientButton_Click(object sender, EventArgs e)
        {
            InsideFormPanel.Controls.Clear();
            //PatientCardForm patientcardform = new PatientCardForm();
            var patientWayDialogForm = new PatientWayDialogForm();
            var patientCardForm      = new PatientCardForm();

            //patientCardForm.MainPanel = InsideFormPanel;
            patientCardForm.PatientWay = InsideForm;

            InsideForm          = patientWayDialogForm;
            InsideForm.TopLevel = false;
            //InsideForm.BackColor = Color.Blue;
            patientWayDialogForm.MainPanel = InsideFormPanel;
            InsideFormPanel.Controls.Add(InsideForm);
            InsideForm.Size = InsideFormPanel.Size;
            InsideForm.Show();
            // PatientButton.Active

            // PatientButton.Enabled = false;
            // PatientButton.BackColor = Color.FromArgb(0, 122, 199);

            //if (InsideForm.CreateNewPatientButton.IsPressed)

            for (int i = 0; i < buttons.Length; i++)
            {
                if (buttons[i] != sender)
                {
                    buttons[i].Enabled   = true;
                    buttons[i].BackColor = readyButtonColor;
                }
                else
                {
                    buttons[i].Enabled   = false;
                    buttons[i].BackColor = pressedButtonColor;
                }
            }
        }