/// If the login procedure done successfully
 /// we'll see the Main Form
 /// else the application will close 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void fLogin_Closed(object sender, EventArgs e)
 {
     // if (LWork.LoginWork.Logged) //if the user is logged
         if (fLogin.UserDetailModel != null)
         {
             fMain = new MdiMain();
             fMain._UserDetailModel  = fLogin.UserDetailModel;
             this.MainForm = fMain; //set the main message loop applicaton in this form
             fMain.Show();
         }
         else
         {
             ExitThread();
         }
 }
예제 #2
0
 /// If the login procedure done successfully
 /// we'll see the Main Form
 /// else the application will close
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void fLogin_Closed(object sender, EventArgs e)
 {
     // if (LWork.LoginWork.Logged) //if the user is logged
     if (fLogin.UserDetailModel != null)
     {
         fMain = new MdiMain();
         fMain._UserDetailModel = fLogin.UserDetailModel;
         this.MainForm          = fMain; //set the main message loop applicaton in this form
         fMain.Show();
     }
     else
     {
         ExitThread();
     }
 }