예제 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     using (var logUser = new LogUser())
     {
         Application.Run(logUser);
     }
 }
예제 #2
0
 public Principal(Session ObjSession)
 {
     InitializeComponent();
     ButtonBinnacle.Visible      = false;
     ButtonConfiguration.Visible = false;
     this.ObjSession             = ObjSession;
     ObjLogUser         = new LogUser(ObjSession, TypeSession.LogOut);
     PanelCanvas.Height = 698;
     PanelCanvas.Width  = 90;
     LabelSubTitle.Text = "Centro de información. Bienvenido(a) " + this.ObjSession.FirstName + " " + this.ObjSession.FirstLastName;
     ArrayButton        = new Button[] { ButtonUsers, ButtonMoves, ButtonStats, ButtonBinnacle, ButtonImportUsers, ButtonConfiguration, ButtonLogOut };
     Size        = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
     MinimumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
 } //Clave de Constructor: Principal-C1