예제 #1
0
        public clt_uc()
        {
            InitializeComponent();

            global_class = new global();
            var parser = new FileIniDataParser();

            data = parser.ReadFile("app_set.ini");

            uptime = init_cls.GETUpTime;

            client = ScsClientFactory.CreateClient(new ScsTcpEndPoint(data["NETWORK"]["MULTI_IP"], int.Parse(data["NETWORK"]["MULTI_PORT"])));
            client.MessageReceived += Client_MessageReceived;
            client.Disconnected    += Client_Disconnected;

            refreshUptime.Elapsed  += new ElapsedEventHandler(refreshTime);
            refreshProcess.Elapsed += new ElapsedEventHandler(refreshProcs);
            refreshConn.Elapsed    += RefreshConn_Elapsed;
            refreshHD.Elapsed      += RefreshHD_Elapsed;

            //refreshProcess.Enabled = true;
            refreshHD.Enabled = true;
            refreshHD.Start();
            //refreshProcess.Start();

            ConnectToServer();
            checkUpdate();
        }
예제 #2
0
        public settings()
        {
            InitializeComponent();
            global_class = new global();
            var parser = new FileIniDataParser();

            data = parser.ReadFile("app_set.ini");
        }