private void cmdList_Click(object sender, EventArgs e) { StockListDialog dlg = new StockListDialog(); if (dlg.ShowDialog() == DialogResult.OK) { this.txtSymbol.Text = dlg.StockSymbol; this.txtName.Text = dlg.StockSymbol; this.txtDescription.Text = dlg.StockDescription; } }
private void cmdList_Click(object sender, EventArgs e) { StockListDialog dlg = new StockListDialog(); if (dlg.ShowDialog() == DialogResult.OK) { this.txtSymbol.Text = dlg.StockSymbol; this.txtName.Text = dlg.StockSymbol; this.txtDescription.Text = dlg.StockDescription; } }