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);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Or sign in to your Profile,
 /// this function will run when the user clicked on that MessageLabel,
 /// I mean: <see cref="MessageLabel5"/>
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MessageLabel5_Click(object sender, EventArgs e)
 {
     if (IsLinkStartMode)
     {
         NoInternetConnectionSandBox mySandBox =
             NoInternetConnectionSandBox.PrepareLogoutWarningSandBox();
         mySandBox.ButtonControl2.Click += LogoutWarningButtonControl2_Click1;
         mySandBox.FormClosed           += ErrorSandBox_FormClosed;
     }
     else
     {
         IsCreatingMode = false;
         IsSignInMode   = true;
         Controls.Remove(MessageLabel4);
         Controls.Remove(MessageLabel5);
         Controls.Remove(TextBox3);
         MessageLabel1.CurrentStatus = 2;
         MessageLabel1.SetLabelText();
     }
 }