static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            BonusSkins.Register();
            //Application.Run(new frmFeedback());
            if (new frm_ChangeServer().ShowDialog() != DialogResult.OK)
            {
                return;
            }
            bool temp = false;

            do
            {
                temp = false;
                frmLogin frLogin = new frmLogin();

                if (frLogin.ShowDialog() == DialogResult.OK)
                {
                    frm_Main frMain = new frm_Main();

                    if (frMain.ShowDialog() == DialogResult.Yes)
                    {
                        frMain.Close();
                        temp = true;
                    }
                }
            }while (temp);
        }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new frm_Main());
            bool temp;

            do
            {
                temp = false;
                Frm_Login a = new Frm_Login();
                a.lb_programName.Text = "          Chương trình\n        Nencho";
                a.lb_version.Text     = @"1.0";
                a.UrlUpdateVersion    = @"\\10.10.10.254\DE_Viet\2016\PHIẾU KIỂM ĐỊNH\Tool";
                a.LoginEvent         += a_LoginEvent;
                a.ButtonLoginEven    += a_ButtonLoginEven;
                if (a.ShowDialog() == DialogResult.OK)
                {
                    Global.StrMachine    = a.StrMachine;
                    Global.StrUserWindow = a.StrUserWindow;
                    Global.StrIpAddress  = a.StrIpAddress;
                    Global.StrUsername   = a.StrUserName;
                    Global.StrBatch      = a.StrBatch;
                    Global.StrRole       = a.StrRole;
                    Global.Strtoken      = a.Token;
                    frm_Main frMain = new frm_Main();

                    if (frMain.ShowDialog() == DialogResult.Yes)
                    {
                        frMain.Close();
                        temp = true;
                    }
                }
            }while (temp);
        }
Example #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BonusSkins.Register();
            SkinManager.EnableFormSkins();
            UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
            //Application.Run(new FrmTienDo());
            if (new frm_ChangeServer().ShowDialog() != DialogResult.OK)
            {
                return;
            }
            bool temp = false;

            do
            {
                temp = false;

                frmLogin frLogin = new frmLogin();
                if (frLogin.ShowDialog() == DialogResult.OK)
                {
                    frm_Main frMain = new frm_Main();

                    if (frMain.ShowDialog() == DialogResult.Yes)
                    {
                        frMain.Close();
                        temp = true;
                    }
                }
            }while (temp);
        }
Example #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BonusSkins.Register();
            SkinManager.EnableFormSkins();
            UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
            //Application.Run(new FrmTienDo());
            if (new frm_ChangeServer().ShowDialog() != DialogResult.OK)
            {
                return;
            }
            bool temp = false;

            do
            {
                temp = false;

                frmLogin frLogin = new frmLogin();
                if (frLogin.ShowDialog() == DialogResult.OK)
                {
                    if (Global.StrCity == "CityS")
                    {
                        BaoCaoLuonng2017.Global.StrMachine    = Global.StrPcName;
                        BaoCaoLuonng2017.Global.StrUserWindow = Global.StrDomainName;
                        BaoCaoLuonng2017.Global.StrIpAddress  = "";
                        BaoCaoLuonng2017.Global.StrUsername   = Global.StrUserName;
                        BaoCaoLuonng2017.Global.StrBatch      = Global.StrBatch;
                        BaoCaoLuonng2017.Global.StrRole       = Global.StrRole;
                        BaoCaoLuonng2017.Global.Strtoken      = Global.Token;
                        BaoCaoLuonng2017.Global.StrCity       = Global.StrCity;
                        BaoCaoLuonng2017.MyForm.frm_Main fm = new BaoCaoLuonng2017.MyForm.frm_Main();
                        if (fm.ShowDialog() == DialogResult.Yes)
                        {
                            fm.Close();
                            frLogin.txt_username_TextChanged(null, null);
                            temp = true;
                        }
                    }
                    else
                    {
                        frm_Main frMain = new frm_Main();
                        if (frMain.ShowDialog() == DialogResult.Yes)
                        {
                            frMain.Close();
                            temp = true;
                        }
                    }
                }
            }while (temp);
        }
Example #5
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            BonusSkins.Register();
            SkinManager.EnableFormSkins();
            UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
            //Application.Run(new frm_CreateBatch());

            bool temp;

            do
            {
                temp = false;
                Frm_Login a = new Frm_Login();
                a.lb_programName.Text = "\n           Dự Án JEMS";
                a.lb_vision.Text      = "Phiên bản :";
                a.grb_1.Text          = "Thông Tin PC";
                a.lb_machine.Text     = "Tên PC :";
                a.lb_user_window.Text = "Tài khoản window:";
                a.lb_ip.Text          = "Địa chỉ IP :";
                a.grb_2.Text          = "Thông Tin Tài Khoản Đăng Nhập";
                a.lb_username.Text    = "Tên đăng nhập :";
                a.lb_password.Text    = "Mật khẩu :";
                a.lb_role.Text        = "Vai trò :";
                a.lb_date.Text        = "Ngày: ";
                a.lb_time.Text        = "Giờ: ";
                a.lb_batchno.Text     = "BatchName: ";
                a.btn_thoat.Text      = "Thoát";
                a.chb_hienthi.Text    = "Hiển Thị";
                a.chb_luu.Text        = "Lưu";
                a.lb_version.Text     = @"1.2.7";
                a.UrlUpdateVersion    = @"\\10.10.10.254\DE_Viet\2017\JEMS\Tools";
                a.LoginEvent         += a_LoginEvent;
                a.ButtonLoginEven    += a_ButtonLoginEven;
                if (a.ShowDialog() == DialogResult.OK)
                {
                    Global.StrMachine    = a.StrMachine;
                    Global.StrUserWindow = a.StrUserWindow; Global.StrIpAddress = a.StrIpAddress;
                    Global.StrUsername   = a.StrUserName;
                    Global.StrBatch      = a.StrBatch;
                    Global.StrRole       = a.StrRole;
                    Global.Strtoken      = a.Token;
                    frm_Main f = new frm_Main();
                    if (f.ShowDialog() == DialogResult.Yes)
                    {
                        f.Close();
                        temp = true;
                    }
                }
            }while (temp);
        }