Esempio n. 1
0
        private void ContextInfoOnClick(object sender, EventArgs e)
        {
            var index = dgv.Rows.GetFirstRow(DataGridViewElementStates.Selected);
            var id    = dgv.Rows[index].Cells[0].Value.ToString();
            var form  = new CurrencyInfoForm(CoinMarketCap.GetCurrencyInfoById(id));

            form.Show(this);
        }
Esempio n. 2
0
 private void btOKOnClick(object sender, EventArgs e)
 {
     try
     {
         var owner    = Owner as MainForm;
         var info     = owner.CoinMarketCap.GetCurrencyInfoById(numID.Value.ToString());
         var infoForm = new CurrencyInfoForm(info);
         infoForm.Show(Owner);
         Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }