Exemplo n.º 1
0
        public LobbyPresenter(MenuPresenter prevPresenter, String User)
        {
            _prevPresenter = prevPresenter;
            _form = new LobbyForm(this,User);
            _form.Show();

        }
Exemplo n.º 2
0
        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));
     }
 }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 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();
 }
Exemplo n.º 6
0
        public void Update(LoginResponse message)
        {
            if (message.Succeeded)
            {
                Invoke(new Action(() =>
                {
                    LobbyForm form = _provider.GetService <LobbyForm>();

                    Hide();
                    form.Show();
                    form.FormClosed += ShowPreviousScreen;
                }));
            }
        }
Exemplo n.º 7
0
        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;
                }
            }
        }
Exemplo n.º 8
0
 public GameController(LobbyForm lf) : this()
 {
     this.lobbyForm = lf;
     generateCanvas();
     generisiScoreLabelu();
 }
Exemplo n.º 9
0
 public Form1(LobbyForm lobbyForm, string username) : this()
 {
     this.lobbyForm = lobbyForm;
     this.username  = username;
 }
Exemplo n.º 10
0
 public LobbyController(LobbyForm lf)
 {
     this.lobbyForm = lf;
 }