Example #1
0
        public void setMeetPasswordClick(object sender, EventArgs e)
        {
            if (pwdb == null)
            {
                pwdb = new DialogBox();
            }
            pwdb.Text = "修改会议室信息-----房号:" + this.roomNumber;
            // if (pwdb.Controls.Find("PassWordDialogBox", true).Length==0) {MessageBox.Show("das", "ss"); }
            PassWordDialogBox pwdbc = pwdb.Controls.Find("passWordDialogBoxPanel", true)[0] as PassWordDialogBox;
            //   MessageBox.Show(pwdbc.Controls.Find("roomInfoSubmit", true)[0], "呵呵");
            Button submitButton = pwdbc.Controls.Find("roomInfoSubmit", true)[0] as Button;

            submitButton.Text   = "修改";
            submitButton.Click += submitButton_Click;
            Button cancelButton = pwdbc.Controls.Find("cancelButton", true)[0] as Button;

            cancelButton.Text = "取消";

            //queryRoomInfo();
            TextBox tbrn = pwdbc.Controls.Find("roomNameText", true)[0] as TextBox;

            tbrn.Text = this.roomName;
            TextBox tbpw = pwdbc.Controls.Find("managerPasswordBox", true)[0] as TextBox;

            tbpw.Text = "管理密码";
            TextBox tbcpb = pwdbc.Controls.Find("comperePasswordBox", true)[0] as TextBox;

            tbcpb.Text = "默认值";
            TextBox tbepb = pwdbc.Controls.Find("enterPasswordBox", true)[0] as TextBox;

            tbepb.Text = "进入的密码";
            TextBox tblpb = pwdbc.Controls.Find("listeningPasswordBox", true)[0] as TextBox;

            tblpb.Text = "旁听密码";
            TextBox tbmponb = pwdbc.Controls.Find("maxPersonOfNumbertextBox", true)[0] as TextBox;

            tbmponb.Text = "最大人数";


            //  MessageBox.Show(this.roomNumber,"ss");
            pwdb.ShowDialog();
            //  pwdb.Show();

            /*  System.Threading.Thread t = new System.Threading.Thread(DialBoxThread);
             * Control.CheckForIllegalCrossThreadCalls = false;
             *   t.Start();
             */
            //  MessageBox.Show("xxx","呵呵");

            /*
             * DialogBox pwdb = new DialogBox();
             * pwdb.ShowDialog();
             * mf.Visible = false;
             * mf.Show(pwdb);
             */
            //pwdb.TopMost = true;
        }
Example #2
0
        private void submitButton_Click(object sender, EventArgs e)
        {
            PassWordDialogBox pwdbc = pwdb.Controls.Find("passWordDialogBoxPanel", true)[0] as PassWordDialogBox;
            TextBox           tbrn  = pwdbc.Controls.Find("roomNameText", true)[0] as TextBox;

            tbrn.Text = this.roomName;
            TextBox tbpw = pwdbc.Controls.Find("managerPasswordBox", true)[0] as TextBox;

            tbpw.Text = "管理密码";
            TextBox tbcpb = pwdbc.Controls.Find("comperePasswordBox", true)[0] as TextBox;

            tbcpb.Text = "默认值";
            TextBox tbepb = pwdbc.Controls.Find("enterPasswordBox", true)[0] as TextBox;

            tbepb.Text = "进入的密码";
            TextBox tblpb = pwdbc.Controls.Find("listeningPasswordBox", true)[0] as TextBox;

            tblpb.Text = "旁听密码";
            TextBox tbmponb = pwdbc.Controls.Find("maxPersonOfNumbertextBox", true)[0] as TextBox;

            tbmponb.Text = "最大人数";
        }