Exemplo n.º 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();
        }
Exemplo n.º 2
0
 //TOKEN REFRESH
 private void TokensRefresh_Button_Click(object sender, EventArgs e)
 {
     TokensGrid.DataSource = DB_Helper.getTokenInfo();
 }