Exemplo n.º 1
0
 public RejestracjaPacjenta(Rejestracja parent)
 {
     InitializeComponent();
     this.MaximumSize       = this.Size;
     this.MinimumSize       = this.Size;
     this.rodzicRejestracja = parent;
     this.flag = true;
     //database.Conect() = "datasource=" + mysettings.Default.datasource + ";database=" + mysettings.Default.database + ";port=" + mysettings.Default.port + ";username="******";password="******";charset=utf8";
     groupBox1.Visible = false;
     groupBox5.Visible = false;
     groupBox6.Visible = true;
     this.Text         = "Harmonogram wizyt";
     Update_daneLekarza();
 }
Exemplo n.º 2
0
        private void btnRejestracja_Click(object sender, EventArgs e)
        {
            bool IsOpen = false;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Text == "Rejestracja")
                {
                    IsOpen = true;
                    f.Focus();
                    break;
                }
            }
            if (IsOpen == false)
            {
                this.Visible = false;
                Rejestracja f2 = new Rejestracja();
                f2.ShowDialog();
                this.Visible = true;
            }
        }