예제 #1
0
        private void Main_Form_Load(object sender, EventArgs e)
        {
            DB_Helper.InitializeDB();
            TokensGrid.DataSource          = DB_Helper.getTokenInfo();
            DatabaseClientsGrid.DataSource = DB_Helper.getDbClientInfo();
            //ConnectedClientsGrid.DataSource = getConnectedClientInfo();
            listBox1.DrawItem += ListBox1_DrawItem;

            _timer          = new Timer();
            _timer.Interval = 1000;
            _timer.Tick    += _timer_Tick;
            _timer.Start();
            command.Clear();
            command.Add("UPDATEUSERS");
            updateClientList();
        }
예제 #2
0
 //client refresh
 private void dbClientsRefresh_Button_Click(object sender, EventArgs e)
 {
     DatabaseClientsGrid.DataSource = DB_Helper.getDbClientInfo();
 }