コード例 #1
0
        /// <summary>
        /// Load事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void window_Loaded(object sender, RoutedEventArgs e)
        {
            if (CkCitrix.CheckCitrix())
            {
                this.TxtCitrix.Text = "Citrix已安装";
            }
            else
            {
                this.TxtCitrix.Text = "Citrix未安装";
            }
            string[] trustlist = new TrustyStation().GetTrustyStations();
            switch (trustlist.Length)
            {
            case 0:
                this.Txt_trust1.Text = this.Txt_trust2.Text = this.Txt_trust3.Text = "";
                break;

            case 1:
                this.Txt_trust1.Text = trustlist[0];
                this.Txt_trust2.Text = this.Txt_trust3.Text = "";
                break;

            case 2:
                this.Txt_trust1.Text = trustlist[0];
                this.Txt_trust2.Text = trustlist[1];
                this.Txt_trust3.Text = "";
                break;

            default:
                this.Txt_trust1.Text = trustlist[0];
                this.Txt_trust2.Text = trustlist[1];
                this.Txt_trust3.Text = trustlist[2];
                break;
            }
        }
コード例 #2
0
        public Repair()
        {
            TrustyStation trust = new TrustyStation();

            TrustyNormal = trust.TrustyStationNormal();
            NormalList   = new List <string>();
            NormalList.AddRange(TrustyNormal);
            TrustyError  = trust.TrustyStationError();
            ErrorList    = new List <string>();
            CitrixNormal = new List <string>();
            CitrixError  = new List <string>();
            ErrorList.AddRange(TrustyError);
            if (CkCitrix.CheckCitrix())
            {
                CitrixError.Add("Citrix组件未安装");
            }
            else
            {
                CitrixNormal.Add("Citrix组件已安装");
            }
        }