private void ToMainScene_Click(object sender, EventArgs e) { var mainGameScene = new MainGameScene(_character); Parent.Controls.Add(mainGameScene); this.Dispose(); }
private void BackBtn_Click(object sender, EventArgs e) { var newScene = new MainGameScene(_character); Parent.Controls.Add(newScene); this.Dispose(); }
private void registerBtn_Click(object sender, EventArgs e) { if (!IsAllBoxesFilled) { MessageBox.Show("Plaese fill all text field!!!"); } else if (!IsEmaiValid(EmailBox.Text)) { MessageBox.Show("Plaese write correct Email !!!"); } else if (!IsPasswordFieldEquals()) { MessageBox.Show("Password are not equls !!!"); } else { CreateUserData(); var mainGameScene = new MainGameScene(_character); Parent.Controls.Add(mainGameScene); this.Dispose(); } }