コード例 #1
0
ファイル: StartMeUp.cs プロジェクト: FSharpCSharp/UIPAB
 private void button1_Click(object sender, System.EventArgs e)
 {
     UIPManager.RegisterShutdown(this);
     this.Visible  = false;
     _startingTask = new TestTask();
     UIPManager.StartUserControlsTask("demo", _startingTask);
 }
コード例 #2
0
ファイル: logon.cs プロジェクト: FSharpCSharp/UIPAB
        private void okButton_Click(object sender, System.EventArgs e)
        {
            //Ask controller if user is valid
            if (StoreControllerHostedControl.IsUserValid(emailText.Text, passwordText.Text))
            {
                //  Logon was valid.
                User          = emailText.Text;
                _startingTask = new CartTask(emailText.Text);
                // Start task with the previous task id
                UIPManager.StartUserControlsTask("Shop", _startingTask);

                //This view can be hidden because it started the task and its lifetime isn´t controlled
                //by the UIPManager class
                this.Visible = false;
            }
            else
            {
                MessageBox.Show("The user or password are incorrect");
            }
        }