コード例 #1
0
ファイル: frmServerLocation.cs プロジェクト: CarverLab/Oyster
        private void frmServerLocation_Load(object sender, System.EventArgs e)
        {
            try
            {
                if(this.Owner is frmLogin)
                    FrmParent = (frmLogin)this.Owner;

                serveraddress = FrmParent.OSystem.GetServerAddressFromConnectionString();

                //				MAD = new MyApplicationData(Application.StartupPath + @"\OS.DAT",true);
                //
                //
                //				serveraddress = (string)MAD.FileEntrys["ServerAddress"];
                //password = (string)MAD.FileEntrys["ServerKey"];
            }
            catch(Exception Err)
            {
                string pE = Err.Message;
                serveraddress = "";
                //password = "";
            }

            textBox1.Text = serveraddress;
            //textBox2.Text = "****************";
        }
コード例 #2
0
ファイル: frmSplash.cs プロジェクト: CarverLab/Oyster
        private void StartApplication()
        {
            frmMain = new frmHardCopy();
            frmMain.Owner = this;
            frmLogin L = new frmLogin();

            System.Windows.Forms.DialogResult LDR = L.ShowDialog(this);

            if(LDR != DialogResult.OK)
            {
                Application.Exit();
                return;
            }
            else
            {
                Msg("Loading User data...");
                frmMain.OSystem = L.OSystem;
                frmMain.LUser = L.LoginUser;
                frmMain.UserLicense = L.UserLicense;
                //frmMain.g_COMPORT = L.g_COMPORT;
                //frmMain.g_LoginDenied = L.OSystem.SystemAdminLoginDenied;
            }

            frmMain.Show();
            this.Opacity = 0;
            this.Visible = false;
            L.Dispose();
        }