Ejemplo n.º 1
0
        private void OnLoad(object sender, EventArgs e)
        {
            this.cbxWindow.DataSource    = WindowHandler.GetOpenWindows().ToList();
            this.cbxWindow.ValueMember   = "Value";
            this.cbxWindow.DisplayMember = "Value";

            this.m_TestService = new MasterServiceHandler();
            this.m_TestService.Start();

            this.m_LocalClient = new TestClient();
            this.m_LocalClient.Init();

            this.m_AutoIdRefreshTimer = new System.Windows.Forms.Timer()
            {
                Enabled  = true,
                Interval = 1000,
            };
            this.m_AutoIdRefreshTimer.Tick += M_AutoIdRefreshTimer_Tick;
        }
Ejemplo n.º 2
0
 private void btnRefresh_Click(object sender, EventArgs e)
 {
     this.cbxWindow.DataSource = WindowHandler.GetOpenWindows().ToList();
 }