예제 #1
0
파일: Services.cs 프로젝트: rahont/ALLinONE
        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
파일: Services.cs 프로젝트: rahont/ALLinONE
        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");
        }