void EditAdapteveHWProfileToolStripMenuItemClick(object sender, EventArgs e) { DataGridView dgv = this.ActiveControl as DataGridView; if (dgv == null) { return; } int index = (dgv.SelectedCells[0].OwningRow.Index); EveAccount eA = Cache.Instance.EveAccountSerializeableSortableBindingList.List[index]; var hwPf = new HWProfileForm(eA); hwPf.Show(); }
void EditAdapteveHWProfileToolStripMenuItemClick(object sender, EventArgs e) { var dgv = this.ActiveControl as DataGridView; if ( dgv == null) return; int index = (dgv.SelectedCells[0].OwningRow.Index); EveAccount eA = Cache.Instance.EveAccountSerializeableSortableBindingList.List[index]; var hwPf = new HWProfileForm(eA); hwPf.Show(); }