Beispiel #1
0
 //生成注册2页面,绑定页面中各个按钮的操作
 public void createRegister2()
 {
     register2 = new RegisterWindow2Controller();
     register2.Window.MakeKeyAndOrderFront(this);
     register2.RegisterCanceled += (s, e) =>
     {
         //TODO
         Console.WriteLine("register2 canceled");
         closemethod = "cancel";
         setRegister2(register2);
         tipMain.StringValue = "您刚刚点击了" + closemethod + "按钮。";
         register2.Close();
     };
     register2.RegisterFinished += (s, e) =>
     {
         //TODO
         Console.WriteLine("register2 finished");
         closemethod = "finish";
         setRegister2(register2);
         tipMain.StringValue = "您刚刚点击了" + closemethod + "按钮。";
         register2.Close();
     };
     register2.RegisterPrevious += (s, e) =>
     {
         Console.WriteLine("register2 previous");
         setRegister2(register2);
         createRegister();
         register2.Close();
     };
 }
Beispiel #2
0
 //注册页面2填写内容抓取
 public void setRegister2(RegisterWindow2Controller register)
 {
     mail = register.getMail();
     mailMain.StringValue = "您输入的邮箱为:" + mail;
 }