コード例 #1
0
        //command handlers
        private void LoadSettingAsync()
        {
            try
            {
                _settingParameter = GetParametersAsync();

                Init_Video_Settings();
                Init_Audio_Settings();
                Init_Live_Record_Settings();
            }
            catch (Exception ex)
            {
                Log.Logger.Error($"【load setting page exception】:{ex}");
                string errorMsg = ex.InnerException?.Message.Replace("\r\n", string.Empty) ??
                                  ex.Message.Replace("\r\n", string.Empty);
                HasErrorMsg("-1", errorMsg);
            }
        }
コード例 #2
0
 private void Txt_MAC_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         //check setting parameters
         SettingParameter settingparams = new SettingParameter();
         string           msg           = "";
         bool             r             = settingparams.Validation(out msg);
         if (!r)
         {
             MessageBox.Show(msg, "Lỗi thông tin cài đặt in tem", MessageBoxButton.OK, MessageBoxImage.Error);
             stationVariable.myTesting.MacAddress = "";
         }
         else
         {
             txt_MAC.IsEnabled = false; //
             stationVariable.myTesting.MacAddress = stationVariable.myTesting.MacAddress.ToUpper();
             _run_All();
         }
     }
 }
コード例 #3
0
 private void GetCustomPageURL(long headerID, string spreadsheetFileName, string ProductType, string headerReference)
 {
     ConfigurationManager configurationManager = this.Container.Resolve<ConfigurationManager>();
     SettingParameter settingParameter = new SettingParameter();
     settingParameter.QualifierName = POLICY_SUMMARY_URI;
     settingParameter.QualifierValue = "*";
     string urlTemplate = configurationManager.GetValue(AXACUSTOM_WEBPAGES, settingParameter);
     OpenPolicyUrl(urlTemplate.Replace("{HeaderID}", headerID.ToString()).Replace("{FileName}", spreadsheetFileName).Replace("{ProductType}", ProductType).Replace("{HeaderReference}", headerReference));
 }