private void enterAnAddressToolStripMenuItem_Click(object sender, EventArgs e) { var asa = new BtcAddress.Forms.AddSingleAddress(); asa.ShowDialog(); if (asa.Result != null) { if (asa.Result is EncryptedKeyPair) { this.KeyCollection.AddItem(new KeyCollectionItem(asa.Result as EncryptedKeyPair)); } else if (asa.Result is List <Object> ) { List <Object> tmpList = (List <Object>)asa.Result; foreach (Object tmpObj in tmpList) { this.KeyCollection.AddItem(new KeyCollectionItem(tmpObj as AddressBase)); Application.DoEvents(); } } else { this.KeyCollection.AddItem(new KeyCollectionItem(asa.Result as AddressBase)); } } }
private void enterAnAddressToolStripMenuItem_Click(object sender, EventArgs e) { var asa = new BtcAddress.Forms.AddSingleAddress(); asa.ShowDialog(); if (asa.Result != null) { if (asa.Result is EncryptedKeyPair) { this.KeyCollection.AddItem(new KeyCollectionItem(asa.Result as EncryptedKeyPair)); } else if (asa.Result is List<Object>) { List<Object>tmpList = (List<Object>)asa.Result; foreach (Object tmpObj in tmpList) { this.KeyCollection.AddItem(new KeyCollectionItem(tmpObj as AddressBase)); Application.DoEvents(); } } else { this.KeyCollection.AddItem(new KeyCollectionItem(asa.Result as AddressBase)); } } }
private void enterAnAddressToolStripMenuItem_Click(object sender, EventArgs e) { var asa = new BtcAddress.Forms.AddSingleAddress(); asa.ShowDialog(); if (asa.Result != null) { if (asa.Result is EncryptedKeyPair) { this.KeyCollection.AddItem(new KeyCollectionItem(asa.Result as EncryptedKeyPair)); } else { this.KeyCollection.AddItem(new KeyCollectionItem(asa.Result as AddressBase)); } } }