Example #1
0
        private void SetAttributes()
        {
            txtLargestVipNumber.BackColor  = SystemInfoHelper.ControlBackColor.DisabledBox;
            cboNature.BackColor            = SystemInfoHelper.ControlBackColor.RequiredBox;
            cboNature.SelectedIndex        = 0;
            cboLineOfOperation.BackColor   = SystemInfoHelper.ControlBackColor.RequiredBox;
            txtNormalDiscount.BackColor    = SystemInfoHelper.ControlBackColor.RequiredBox;
            txtPromotionDiscount.BackColor = SystemInfoHelper.ControlBackColor.RequiredBox;

            #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 SmartTag4Member_OptionsWizard();
                dialog.SmartTagId  = SmartTag4MemberEx.GetIdByPriority(99);
                dialog.FormClosed += (sender, eventArgs) =>     // 關閉後 refresh 個 combo box items
                {
                    FillComboBox_Nature();
                };
                dialog.ShowDialog();
            };
            #endregion

            #region 設定 clickable line-of-operation label
            lblLineOfOperation.AutoSize = true;                     // 減少 whitespace,有字嘅位置先可以 click
            lblLineOfOperation.Cursor   = Cursors.Hand;             // cursor over 顯示 hand cursor
            lblLineOfOperation.Click   += (s, e) =>                 // 彈出 wizard
            {
                var dialog = new Settings.LineOfOperationWizard();
                dialog.FormClosed += (sender, eventArgs) =>         // 關閉後 refresh 個 combo box items
                {
                    FillLineOfOperationList();
                };
                dialog.ShowDialog();
            };
            #endregion
        }
Example #2
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
        }