コード例 #1
0
        private void SetAttributes()
        {
            #region 設定 clickable saluation label
            //lblSalutation.AutoSize = true;                      // 減少 whitespace,有字嘅位置先可以 click
            lblSalutation.Cursor = Cursors.Hand;                // cursor over 顯示 hand cursor
            lblSalutation.Click += (s, e) =>                    // 彈出 wizard
            {
                var dialog = new Settings.SalutationWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    FillSalutationList();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable job title label
            lblJobTitle.AutoSize = true;                        // 減少 whitespace,有字嘅位置先可以 click
            lblJobTitle.Cursor   = Cursors.Hand;                // cursor over 顯示 hand cursor
            lblJobTitle.Click   += (s, e) =>                    // 彈出 wizard
            {
                var dialog = new Settings.JobTitleWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    FillJobTitleList();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable smart tag 9 label
            lblPhoneTag5.AutoSize = true;                      // 減少 whitespace,有字嘅位置先可以 click
            lblPhoneTag5.Cursor   = Cursors.Hand;              // cursor over 顯示 hand cursor
            lblPhoneTag5.Click   += (s, e) =>                  // 彈出 wizard
            {
                var dialog = new Settings.PhoneTagWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    SetPhoneTags();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable smart tag 6 label
            lblPhoneTag7.AutoSize = true;                      // 減少 whitespace,有字嘅位置先可以 click
            lblPhoneTag7.Cursor   = Cursors.Hand;              // cursor over 顯示 hand cursor
            lblPhoneTag7.Click   += (s, e) =>                  // 彈出 wizard
            {
                var dialog = new Settings.PhoneTagWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    SetPhoneTags();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable smart tag 3 label
            //lblPhoneTag3.AutoSize = true;                      // 減少 whitespace,有字嘅位置先可以 click
            lblPhoneTag6.Cursor = Cursors.Hand;                // cursor over 顯示 hand cursor
            lblPhoneTag6.Click += (s, e) =>                    // 彈出 wizard
            {
                var dialog = new Settings.PhoneTagWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    SetPhoneTags();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable smart tag 4 label
            //lblPhoneTag4.AutoSize = true;                      // 減少 whitespace,有字嘅位置先可以 click
            lblPhoneTag8.Cursor = Cursors.Hand;                // cursor over 顯示 hand cursor
            lblPhoneTag8.Click += (s, e) =>                    // 彈出 wizard
            {
                var dialog = new Settings.PhoneTagWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    SetPhoneTags();
                };
                dialog.ShowDialog();
            };
            #endregion
        }
コード例 #2
0
        private void SetAttributes()
        {
            #region 設定 clickable address type label
            //lblAddressType.AutoSize = true;                      // 減少 whitespace,有字嘅位置先可以 click
            lblAddressType.Cursor = Cursors.Hand;                // cursor over 顯示 hand cursor
            lblAddressType.Click += (s, e) =>                    // 彈出 wizard
            {
                var dialog = new SupplierAddressTypeWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    FillAddressList();
                };
                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
                {
                    FillCountryList();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable province label
            lblProvince.AutoSize = true;                         // 減少 whitespace,有字嘅位置先可以 click
            lblProvince.Cursor   = Cursors.Hand;                 // cursor over 顯示 hand cursor
            lblProvince.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

            #region 設定 clickable smart tag 9 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 smart tag 6 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 smart tag 3 label
            //lblPhoneTag3.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 smart 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
        }
コード例 #3
0
        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
        }
コード例 #4
0
        private void SetAttributes()
        {
            #region 設定 clickable Smart Tag 1 label
            lblSmartTag1.AutoSize = true;                         // 減少 whitespace,有字嘅位置先可以 click
            lblSmartTag1.Cursor   = Cursors.Hand;                 // cursor over 顯示 hand cursor
            lblSmartTag1.Click   += (s, e) =>                     // 彈出 wizard
            {
                var dialog = new SmartTag4WorkplaceWizard();
                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 SmartTag4WorkplaceWizard();
                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 SmartTag4WorkplaceWizard();
                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 SmartTag4WorkplaceWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    SetSmartTags();
                };
                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
            //lblPhoneTag2.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
            //lblDistrict.AutoSize = true;                         // 減少 whitespace,有字嘅位置先可以 click
            lblDistrict.Cursor = Cursors.Hand;                   // cursor over 顯示 hand cursor
            lblDistrict.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

            #region 設定 clickable LOO label
            //lblLOO.AutoSize = true;                         // 減少 whitespace,有字嘅位置先可以 click
            lblLOO.Cursor = Cursors.Hand;                   // cursor over 顯示 hand cursor
            lblLOO.Click += (s, e) =>                       // 彈出 wizard
            {
                var dialog = new Settings.LineOfOperationWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    FillLineOfOperation();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable Nature label
            //lblNature.AutoSize = true;                         // 減少 whitespace,有字嘅位置先可以 click
            lblNature.Cursor = Cursors.Hand;                   // cursor over 顯示 hand cursor
            lblNature.Click += (s, e) =>                       // 彈出 wizard
            {
                var dialog = new WorkplaceNatureWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    FillNature();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable Zone label
            //lblZone.AutoSize = true;                         // 減少 whitespace,有字嘅位置先可以 click
            lblZone.Cursor = Cursors.Hand;                   // cursor over 顯示 hand cursor
            lblZone.Click += (s, e) =>                       // 彈出 wizard
            {
                var dialog = new Settings.ZoneWizard();
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    FillZone();
                };
                dialog.ShowDialog();
            };
            #endregion
        }