public PomocForm() { kontroler = new GlownyKontroler(); kontoForm = new KontoForm(); loginForm = new LoginForm(); InitializeComponent(); }
private void mojeKonto(object sender, EventArgs e) { KontoForm kontoForm = new KontoForm(); this.Hide(); kontoForm.ShowDialog(); this.Close(); }
private void zaloguj(object sender, EventArgs e) { Console.WriteLine("Login: "******" Haslo" + passwordEditBox.Text); if (kontroler.przekazDoLoginKontroler(loginEditBox.Text, passwordEditBox.Text)) { niepoprawny.Visible = true; } else { niepoprawny.Visible = false; this.Hide(); KontoForm kontoForm = new KontoForm(); kontoForm.ShowDialog(); this.Close(); } }