private void AddButton_Click(object sender, EventArgs e) { ConnectClient.AddChat(ClientGrid.SelectedRows[0].Cells["ClientID"].Value.ToString(), FIOComboBox.SelectedValue.ToString()); ConnectClient.UpdateMessagersGrid(ClientGrid.SelectedRows[0].Cells["ClientID"].Value.ToString()); }