private void ChooseExistingButton_Click(object sender, EventArgs e) { ChooseExistingCommodityDialog dialog = new ChooseExistingCommodityDialog(systems); if (dialog.IsDisposed == false) { dialog.ShowDialog(); if (string.IsNullOrEmpty(dialog.Result) == false) CommodityTextBox.Text = dialog.Result; } }
private void ChooseExistingButton_Click(object sender, EventArgs e) { ChooseExistingCommodityDialog dialog = new ChooseExistingCommodityDialog(systems); if (dialog.IsDisposed == false) { dialog.ShowDialog(); if (string.IsNullOrEmpty(dialog.Result) == false) { CommodityTextBox.Text = dialog.Result; } } }