Beispiel #1
0
 public void CallMe(bool AfterSecuredWorkingOver = false)
 {
     if (!AfterSecuredWorkingOver)
     {
         //This part should run shortly after appearance of the SandBox
         //And should prepare the yui sandbox and checking for existance and etc..
         IsCheckingForExisting = true;
         //bool result = false;
         Me theMe = new Me(ProfileInf.UserName, ProfileInf.TheToken);
         ThereIsServer.ServerSettings.MyProfile = theMe;
         IsShowingAnotherSandBox = true;
         LoadingSandBox          = new YuiLoadingSandbox(this);
         LoadingSandBox.Location = new Point((Screen.PrimaryScreen.Bounds.Size.Width / 2) -
                                             (LoadingSandBox.Width / 2), (Screen.PrimaryScreen.Bounds.Size.Height / 2) -
                                             (LoadingSandBox.Height / 2));
         LoadingSandBox.FormClosed += LoadingSandBox_FormClosed;
         LoadingSandBox.Show();
     }
     else
     {
         //However, this part should run when the secured working has ended already...
         //And should be called in the thereIsServer class
         IsSignInEnded = false;
         //Texts:
         MessageLabel1.SetLabelText(ProfileInf.UserName);
         TextBox1.SetTextBoxText(ProfileInf.LastLogin);
         //Events:
         MessageLabel4.AddClickEventToAllChild(ButtonControl2_Click);
     }
 }