private void RefreshMessagesDB() { Invoke(new Action((delegate { DataGridMessagesDB.DataSource = ServerDataEngine.GetMessagesDbTable(); }))); }
private void RefreshClientsDB() { Invoke(new Action((delegate { DataGridClientsDB.DataSource = ServerDataEngine.GetClientsDbTable(); }))); }
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)); }
private void BtnSrhPrivate_Click(object sender, EventArgs e) { DataGridMessagesDB.DataSource = ServerDataEngine.SearchByPrivate(TxtBoxPrivate.Text); }
private void BtnSrhKeyWord_Click(object sender, EventArgs e) { DataGridMessagesDB.DataSource = ServerDataEngine.SearchMessagesByKeyword(TxtBoxSrhKeyWord.Text); }
private void BtnSrhName_Click(object sender, EventArgs e) { DataGridClientsDB.DataSource = ServerDataEngine.SearchLoggedLastLogged(TxtBoxSrhLoggedLastLogged.Text); }
private void BtnSrhUserName_Click(object sender, EventArgs e) { DataGridClientsDB.DataSource = ServerDataEngine.SearchUserName(TxtBoxSrhUserName.Text); }
private void BtnRefresh_Click(object sender, EventArgs e) { DataGridClientsDB.DataSource = ServerDataEngine.GetDataSet().Tables["ClientsDB"]; DataGridMessagesDB.DataSource = ServerDataEngine.GetDataSet().Tables["MessagesDB"]; }
private void FrmData_Shown(object sender, EventArgs e) { DataGridClientsDB.DataSource = ServerDataEngine.GetDataSet().Tables["ClientsDB"]; DataGridMessagesDB.DataSource = ServerDataEngine.GetDataSet().Tables["MessagesDB"]; }
private void FrmHisotry_Load(object sender, EventArgs e) { ServerDataEngine.StartDataServer(); DataGridClientsDB.DataSource = ServerDataEngine.GetDataSet().Tables["ClientsDB"]; DataGridMessagesDB.DataSource = ServerDataEngine.GetDataSet().Tables["MessagesDB"]; }