示例#1
0
        private void Services_Load(object sender, EventArgs e)
        {
            numPingProgress.Value  = Convert.ToDecimal(AiOMethods.LoadFromRegistry("ProgressBarSec", 30));
            pbPingProgress.Maximum = Convert.ToInt32(numPingProgress.Value) * 1000;

            MethodsServices ms = new MethodsServices();

            ms.RefreshLBRDPShare(lbRDP, "ServiceRDP");
            ms.RefreshLBRDPShare(lbShare, "ServiceShare");
        }
示例#2
0
        private void chckbServiceSorted_CheckedChanged(object sender, EventArgs e)
        {
            if (chckbServiceSorted.Checked)
            {
                lbRDP.Sorted         = true;
                lbShare.Sorted       = true;
                lbPingSuccess.Sorted = true;
                lbPingTimeOut.Sorted = true;
            }
            else
            {
                lbRDP.Sorted         = false;
                lbShare.Sorted       = false;
                lbPingSuccess.Sorted = false;
                lbPingTimeOut.Sorted = false;
            }

            MethodsServices ms = new MethodsServices();

            ms.RefreshLBRDPShare(lbRDP, "ServiceRDP");
            ms.RefreshLBRDPShare(lbShare, "ServiceShare");
        }