示例#1
0
        private void TSP_ChangeUserBtn_Click(object sender, EventArgs e)
        {
            //呼叫一開始的登入視窗出來.
            Form_Login flogin = new Form_Login(this, "Exit Then Return");//"Exit Then End All": 若使用者選擇不登入,則直接關閉.
            flogin.ShowDialog();

            //更新資訊.
            TSP_UserInfoShow.Text = "目前登入使用者ID:" + _LoginInUserID + ",名稱為" + _LoginInUserName;
        }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            if(!Directory.Exists(_SystemReferenceStoreFolder))
            {
                Directory.CreateDirectory(_SystemReferenceStoreFolder);
            }
            _RemoveLogInDataWhenClosing = false; //預設為不刪除.
            _提供服務訊息 = true;
            label_LoginCond.Text = "NO";
            TSP_Progressbar.Visible = false;
            TSSTATUS_label.Text = "歡迎使用浩海工程顧問公司檢核程式!";
            Form_Welcome fwel = new Form_Welcome();
            fwel.ShowDialog();

            //跳出登入視窗.
            System.Threading.Thread.Sleep(1000);
            Form_Login flogin = new Form_Login(this,"Exit Then End All");//"Exit Then End All": 若使用者選擇不登入,則直接關閉.
            flogin.ShowDialog();

            //更改Toolstrip排列,Layout方法要更改為Overflow with horizontal[Horizontal Stack with overflow]
            TSP_UserInfoShow.Text = "目前登入使用者ID:" + _LoginInUserID + ",名稱為" + _LoginInUserName;
            TSP_UserInfoShow.Alignment = ToolStripItemAlignment.Right;
            TSP_UserInfoShow.RightToLeft = RightToLeft.No;

            TSP_ChangeUserBtn.Alignment = ToolStripItemAlignment.Right;
            TSP_ChangeUserBtn.RightToLeft = RightToLeft.No;

            //載入使用者登入設定.
            LoadingProgramSystemReference();

            //更改排列順序.
            //TSP_Progressbar.Alignment = ToolStripItemAlignment.Right;
            //TSP_Progressbar.RightToLeft = RightToLeft.No;
            //TSP_Progressbar.Visible = true;
            //TSP_Progressbar.Style = ProgressBarStyle.Marquee;
        }