public LobbyPresenter(MenuPresenter prevPresenter, String User) { _prevPresenter = prevPresenter; _form = new LobbyForm(this,User); _form.Show(); }
private void makeForm() { var form = new LobbyForm(false); form.Show(); this.form = form; }
//Load the lobby when logged in private void OnLogin(Request obj) { if (obj.get("successful")) { LobbyForm lobby = new LobbyForm(controller); lobby.Show(); controller.loginForm.Hide(); controller.lobbyForm = lobby; this.writeRequest(Request.newRequest(Config.lobbyType)); } }
private void makeForm() { var form = new LobbyForm(true); form.AddPlayer(this.me.ID, this.me.Name); form.Show(); form.Started += this.clickedStart; this.form = form; }
private void Form1_Load(object sender, EventArgs e) { openWorld = new COpenWorld(); keyboardHandler = new MKeyboardHandler(this, glControl1); lobbyForm = new LobbyForm(); openWorld.Setup(); mouseHandler = new MMouseHandler(glControl1); timer1.Start(); Application.Idle += Application_Idle; bookmarksControl1.Setup(); SetupInfo(); SetupWindow(); }
public void Update(LoginResponse message) { if (message.Succeeded) { Invoke(new Action(() => { LobbyForm form = _provider.GetService <LobbyForm>(); Hide(); form.Show(); form.FormClosed += ShowPreviousScreen; })); } }
private void button1_Click(object sender, EventArgs e) { string id = txtId.Text; string pw = txtPw.Text; if (id.Equals("") || pw.Equals("")) { MessageBox.Show("아이디와 비밀번호를 입력해주세요.", "알림"); return; } User user = DataRepository.Users.GetByUserId(id); if (user == null) { MessageBox.Show("없는 아이디 입니다.", "알림"); return; } else { if (user.PassWord.Equals(pw)) { AccessUserKey = user.UserKey; AccessUSerId = id; LobbyForm lobbyForm = new LobbyForm(); Visible = false; lobbyForm.ShowDialog(); if (lobbyForm.CloseParent) { Close(); } txtPw.Text = ""; Visible = true; } else { MessageBox.Show("비밀번호가 틀립니다.", "알림"); return; } } }
public GameController(LobbyForm lf) : this() { this.lobbyForm = lf; generateCanvas(); generisiScoreLabelu(); }
public Form1(LobbyForm lobbyForm, string username) : this() { this.lobbyForm = lobbyForm; this.username = username; }
public LobbyController(LobbyForm lf) { this.lobbyForm = lf; }