public VirtualCardForm(Main mdiParent,string fileName) { InitializeComponent(); this.MdiParent = mdiParent; this.FormClosing += new FormClosingEventHandler(Form1_FormClosing); cmbReader.Items.Add(""); foreach (var rr in Program.SimulatedReaders) { cmbReader.Items.Add(rr.Value); } cmbReader.SelectedIndex = 0; foreach (var v in Program.cardImplementations) { btnNewCard.Items.Add(v); } if (fileName != null) Load += new EventHandler((a,b) => { OpenFile(fileName); }); }
public VirtualCardForm(Main mdiParent) : this(mdiParent,null) { }