示例#1
0
        //生成注册1页面,绑定页面中各个按钮的操作
        public void createRegister()
        {
            nameMain.StringValue     = "";
            passwordMain.StringValue = "";
            mailMain.StringValue     = "";

            register = new RegisterWindowController();
            register.Window.MakeKeyAndOrderFront(this);
            register.RegisterCanceled += (s, e) => {
                //TODO
                Console.WriteLine("register1 canceled");
                closemethod = "cancel";
                setRegister1(register);
                tipMain.StringValue = "您刚刚点击了" + closemethod + "按钮。";
                register.Close();
            };
            register.RegisterFinished += (s, e) =>
            {
                //TODO
                Console.WriteLine("register1 finished");
                closemethod = "finish";
                setRegister1(register);
                tipMain.StringValue = "您刚刚点击了" + closemethod + "按钮。";
                register.Close();
            };
            register.RegisterNext += (s, e) =>
            {
                Console.WriteLine("register1 next");
                setRegister1(register);
                createRegister2();
                register.Close();
            };
        }
示例#2
0
 //注册页面1填写内容抓取
 public void setRegister1(RegisterWindowController register)
 {
     name                     = register.getName();
     password                 = register.getPassword();
     nameMain.StringValue     = "您输入的用户名为:" + name;
     passwordMain.StringValue = "您输入的密码为:" + password;
 }