Beispiel #1
0
 private void MDIMain_Load(object sender, EventArgs e)
 {
     frmLogin fm = new frmLogin();
     fm.ShowDialog();
     tsUser.Text = Program.AccountStatic.UserName;
     if (Program.AccountStatic.LoggingAsLocal)
         tsServer.Text = "localhost";
     else
         tsServer.Text = "3sfab";
     if (Program.AccountStatic.IsAuthenticated)
     { TreeMenu.Enabled = true;
     LoadMenu();
         }
     else
         TreeMenu.Enabled = false;
 }