コード例 #1
0
 private void ThirdPartyASMSetting_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         App.DrawWindowsBackGround(this);
         ImageASMSetting.Source = new BitmapImage(new Uri(System.IO.Path.Combine(App.GStrApplicationDirectory, @"Images\00000046.ico"), UriKind.RelativeOrAbsolute));
         DisplayElementCharacters(false);
         TextBoxPort.SetMinMaxDefaultValue(1024, 65535, 8004);
     }
     catch { }
 }
コード例 #2
0
        private List <string> IListStrArguments = new List <string>();            //0:应用名;1:协议;2:服务器;3:端口;4:参数
        private void SetASMLinkArguments()
        {
            try
            {
                IListStrArguments.Clear();

                IListStrArguments.Add("ASM");
                if (ComboBoxPortol.SelectedIndex == 0)
                {
                    IListStrArguments.Add("http://");
                }
                else
                {
                    IListStrArguments.Add("https://");
                }
                IListStrArguments.Add(TextBoxServerName.Text.Trim());
                IListStrArguments.Add(TextBoxPort.GetElementData());
                IListStrArguments.Add(TextBoxArguments.Text.Trim());

                MainPanel.IsEnabled = false;
                IBoolInDoing        = true;
                App.ShowCurrentStatus(1, App.GetDisplayCharater("M06008"));
                if (IBackgroundWorkerA == null)
                {
                    IBackgroundWorkerA = new BackgroundWorker();
                }
                IBackgroundWorkerA.RunWorkerCompleted += IBackgroundWorkerA_RunWorkerCompleted;
                IBackgroundWorkerA.DoWork             += IBackgroundWorkerA_DoWork;
                IBackgroundWorkerA.RunWorkerAsync();
            }
            catch (Exception ex)
            {
                MainPanel.IsEnabled = true;
                IBoolInDoing        = false;
                App.ShowCurrentStatus(int.MaxValue, string.Empty);
                if (IBackgroundWorkerA != null)
                {
                    IBackgroundWorkerA.Dispose(); IBackgroundWorkerA = null;
                }
                App.ShowExceptionMessage("" + ex.ToString());
            }
        }
コード例 #3
0
        public void ShowThirdPartyAlreadSetting(DataRow ADataRowASMInfo)
        {
            try
            {
                TabItemASMSetting.Header = " " + ADataRowASMInfo["Attribute00"].ToString() + " ";

                if (ADataRowASMInfo["Attribute01"].ToString().ToLower() == "https://")
                {
                    ComboBoxPortol.SelectedIndex = 1;
                }
                else
                {
                    ComboBoxPortol.SelectedIndex = 0;
                }
                TextBoxServerName.Text = ADataRowASMInfo["Attribute02"].ToString();
                TextBoxPort.SetElementData(ADataRowASMInfo["Attribute03"].ToString());
                TextBoxArguments.Text = ADataRowASMInfo["Attribute11"].ToString();
            }
            catch { }
        }
コード例 #4
0
 private void TextBoxPort_GotFocus(object sender, RoutedEventArgs e)
 {
     TextBoxPort.SelectAll();
 }