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 }
private void SetAttributes() { lblDateFormat.Visible = false; dateofSmartTag8.ShowCheckBox = true; dateofSmartTag8.Checked = false; #region 設定 clickable smart tag 1 label lblSmartTag7.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblSmartTag7.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblSmartTag7.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 lblSmartTag8.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblSmartTag8.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblSmartTag8.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 lblSmartTag9.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblSmartTag9.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblSmartTag9.Click += (s, e) => // 彈出 wizard { var dialog = new SmartTag4StaffWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { //FillSalutationList(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable phone tag 1 label lblPhoneTag1.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblPhoneTag1.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblPhoneTag1.Click += (s, e) => // 彈出 wizard { var dialog = new Settings.PhoneTagWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetPhoneTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable phone tag 2 label //lblSmartTag10.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblPhoneTag2.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblPhoneTag2.Click += (s, e) => // 彈出 wizard { var dialog = new Settings.PhoneTagWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetPhoneTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable phone tag 3 label lblPhoneTag3.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblPhoneTag3.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblPhoneTag3.Click += (s, e) => // 彈出 wizard { var dialog = new Settings.PhoneTagWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetPhoneTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable phone tag 4 label //lblPhoneTag4.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblPhoneTag4.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblPhoneTag4.Click += (s, e) => // 彈出 wizard { var dialog = new Settings.PhoneTagWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { SetPhoneTags(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable country label lblCountry.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblCountry.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblCountry.Click += (s, e) => // 彈出 wizard { var dialog = new Settings.CountryWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { FillCountry(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable province label lblState.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblState.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblState.Click += (s, e) => // 彈出 wizard { var dialog = new Settings.ProvinceWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { //FillProvinceList(); }; dialog.ShowDialog(); }; #endregion #region 設定 clickable city label //lblCity.AutoSize = true; // 減少 whitespace,有字嘅位置先可以 click lblCity.Cursor = Cursors.Hand; // cursor over 顯示 hand cursor lblCity.Click += (s, e) => // 彈出 wizard { var dialog = new Settings.CityWizard(); dialog.FormClosed += (sender, eventArgs) => // 關閉後 refresh 個 combo box items { //FillCityList(); }; dialog.ShowDialog(); }; #endregion }