示例#1
0
        public LobbyPresenter(MenuPresenter prevPresenter, String User)
        {
            _prevPresenter = prevPresenter;
            _form = new LobbyForm(this,User);
            _form.Show();

        }
示例#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));
     }
 }
示例#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;
        }
示例#5
0
文件: Main.cs 项目: BigFun123/Massive
 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();
 }
示例#6
0
        public void Update(LoginResponse message)
        {
            if (message.Succeeded)
            {
                Invoke(new Action(() =>
                {
                    LobbyForm form = _provider.GetService <LobbyForm>();

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