Exemplo n.º 1
0
        private void BackButton_Click(object sender, EventArgs e)
        {
            PatientWayDialogForm patientWayDialogForm = new PatientWayDialogForm();

            PatientWay          = patientWayDialogForm;
            PatientWay.TopLevel = false;
            MainPanel.Controls.Add(patientWayDialogForm);
            PatientWay.Size = this.Size;
            PatientWay.Show();
            patientWayDialogForm.MainPanel = this.MainPanel;

            this.Dispose();
        }
Exemplo n.º 2
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;
                }
            }
        }