Esempio n. 1
0
 private void RefreshMessagesDB()
 {
     Invoke(new Action((delegate
     {
         DataGridMessagesDB.DataSource = ServerDataEngine.GetMessagesDbTable();
     })));
 }
Esempio n. 2
0
 private void RefreshClientsDB()
 {
     Invoke(new Action((delegate
     {
         DataGridClientsDB.DataSource = ServerDataEngine.GetClientsDbTable();
     })));
 }
Esempio n. 3
0
        private void BtnSrhID_Click(object sender, EventArgs e)
        {
            int num;

            if (!int.TryParse(TxtBoxSrhID.Text, out num))
            {
                MessageBox.Show(@"Enter a number please");
                return;
            }
            DataGridClientsDB.DataSource = ServerDataEngine.SearchID(int.Parse(TxtBoxSrhID.Text));
        }
Esempio n. 4
0
 private void BtnSrhPrivate_Click(object sender, EventArgs e)
 {
     DataGridMessagesDB.DataSource = ServerDataEngine.SearchByPrivate(TxtBoxPrivate.Text);
 }
Esempio n. 5
0
 private void BtnSrhKeyWord_Click(object sender, EventArgs e)
 {
     DataGridMessagesDB.DataSource = ServerDataEngine.SearchMessagesByKeyword(TxtBoxSrhKeyWord.Text);
 }
Esempio n. 6
0
 private void BtnSrhName_Click(object sender, EventArgs e)
 {
     DataGridClientsDB.DataSource = ServerDataEngine.SearchLoggedLastLogged(TxtBoxSrhLoggedLastLogged.Text);
 }
Esempio n. 7
0
 private void BtnSrhUserName_Click(object sender, EventArgs e)
 {
     DataGridClientsDB.DataSource = ServerDataEngine.SearchUserName(TxtBoxSrhUserName.Text);
 }
Esempio n. 8
0
 private void BtnRefresh_Click(object sender, EventArgs e)
 {
     DataGridClientsDB.DataSource  = ServerDataEngine.GetDataSet().Tables["ClientsDB"];
     DataGridMessagesDB.DataSource = ServerDataEngine.GetDataSet().Tables["MessagesDB"];
 }
Esempio n. 9
0
 private void FrmData_Shown(object sender, EventArgs e)
 {
     DataGridClientsDB.DataSource  = ServerDataEngine.GetDataSet().Tables["ClientsDB"];
     DataGridMessagesDB.DataSource = ServerDataEngine.GetDataSet().Tables["MessagesDB"];
 }
Esempio n. 10
0
 private void FrmHisotry_Load(object sender, EventArgs e)
 {
     ServerDataEngine.StartDataServer();
     DataGridClientsDB.DataSource  = ServerDataEngine.GetDataSet().Tables["ClientsDB"];
     DataGridMessagesDB.DataSource = ServerDataEngine.GetDataSet().Tables["MessagesDB"];
 }