Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainLoader ml = new MainLoader();
            ml.ConnectComplite += new ConnectHandler(ml_ConnectComplite);
            ml.Start();
        }
Beispiel #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainLoader ml = new MainLoader();

            ml.ConnectComplite += new ConnectHandler(ml_ConnectComplite);
            ml.Start();
        }
Beispiel #3
0
 static void ml_ConnectComplite(object sender, ConnectArgs e)
 {
     if (e.IsSuccess == true)
     {
         MainMenu mm = new MainMenu();
         mm.SetDesktopLocation(0, 0);
         mm.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
         MainLoader ml = (MainLoader)sender;
         mm.pGlobalEntities = ml.GE;
         mm.fGlobalEntities = ml.FE;
         Application.Run(mm);
     }
     else
     {
         ConnectionForm connsettingform = new ConnectionForm(true);
         Application.Run(connsettingform);
     }
 }