private void Clear() { this.Close(); StaffJobTitleWizard wizJobTitle = new StaffJobTitleWizard(); wizJobTitle.ShowDialog(); }
private void SetAttributes() { lblDateFormat.Visible = false; // 唔使提示 #region 設定 clickable smart tag 1 label //lblSmartTag5.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblSmartTag1.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblSmartTag1.Click += (s, e) => // 彈出 wizard { var dialog = new SmartTag4StaffWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetSmartTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable smart tag 2 label lblSmartTag2.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblSmartTag2.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblSmartTag2.Click += (s, e) => // 彈出 wizard { var dialog = new SmartTag4StaffWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetSmartTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable smart tag 3 label lblSmartTag3.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblSmartTag3.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblSmartTag3.Click += (s, e) => // 彈出 wizard { var dialog = new SmartTag4StaffWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetSmartTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable smart tag 4 label lblSmartTag4.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblSmartTag4.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblSmartTag4.Click += (s, e) => // 彈出 wizard { var dialog = new SmartTag4StaffWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetSmartTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable saluation label lblStaffGrade.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblStaffGrade.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblStaffGrade.Click += (s, e) => // 彈出 wizard { var dialog = new StaffGroupWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { FillGroup(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable job title label lblPosition.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblPosition.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblPosition.Click += (s, e) => // 彈出 wizard { var dialog = new StaffJobTitleWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { FillPosition(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable dept label //lblDept.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblDept.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblDept.Click += (s, e) => // 彈出 wizard { var dialog = new StaffDeptWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { FillDept(); }; dialog.ShowDialog(); }; #endregion }