コード例 #1
0
        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;
            }
        }
コード例 #2
0
 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;
     }
 }