Example #1
0
 private void dgvPoolList_CurrentCellChanged(object sender, EventArgs e)
 {
     if (dgvPoolList.CurrentRow != null)
     {
         poolCurrent = (clsPoolBase)dgvPoolList.CurrentRow.DataBoundItem;
         if (poolCurrent != null)
         {
             cbPoolName.Text   = poolCurrent.PoolName;
             tbWorker.Text     = poolCurrent.WorkerName;
             tbAddress.Text    = poolCurrent.Address;
             tbEmail.Text      = poolCurrent.Email;
             tbTelegramID.Text = poolCurrent.TelegramID;
         }
     }
 }
Example #2
0
 private void addNewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (bsListPool != null)
     {
         clsPoolBase objNiceHash = new clsPoolBase();
         try
         {
             objNiceHash.PoolName = "NiceHash";
             //listPool.Add(objNiceHash);
             bsListPool.Add(objNiceHash);
             //bsListPool.Add(objNiceHash);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.ToString());
         }
     }
 }