Beispiel #1
0
        private void UpdateToEEPNetServerForm_Load(object sender, EventArgs e)
        {
            String s = Application.StartupPath + "\\";
            CliUtils.LoadLoginServiceConfig(s + "FLDesigner.exe.config");

            CliUtils.fClientLang = GetClientLanguage();
            CliUtils.fClientSystem = "Win";

            bool freg = Register(false);
            fFrmLogin = new LoginForm(freg);
            if (fFrmLogin.ShowDialog(this) == DialogResult.OK)
            {
                if (freg == false)
                {
                    if (!Register(true))
                    {
                        this.Close();
                    }
                }
                CheckUser();
            }
            else
            {
                CliUtils.fLoginUser = string.Empty;
                Close();
            }
        }
Beispiel #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            String s = Application.StartupPath + "\\";
            CliUtils.LoadLoginServiceConfig(s + "FLDesigner.exe.config");

            CliUtils.fClientLang = GetClientLanguage();
            CliUtils.fClientSystem = "Win";

            bool freg = Register(false);
            fFrmLogin = new LoginForm(freg);
            fFrmLogin.StartPosition = FormStartPosition.CenterScreen;
            if (fFrmLogin.ShowDialog(this) == DialogResult.OK)
            {
                if (freg == false)
                {
                    if (!Register(true))
                    {
                        this.Close();
                    }
                }
                CheckUser();
                this.WindowState = FormWindowState.Maximized;
            }
            else
            {
                CliUtils.fLoginUser = string.Empty;
                this.Close();
                return;
            }

            this.WindowState = FormWindowState.Maximized;
            btnSave.Enabled = false;
            string path = EEPRegistry.Server + "\\WorkFlow\\FL";
            this.saveFileDialog1.InitialDirectory = path;
            this.openFileDialog1.InitialDirectory = path;
        }