private void utecDepName_EditorButtonClick(object sender, EditorButtonEventArgs e) { using (var sc = new SelectWarehouse()) { if (sc.ShowDialog() == DialogResult.Yes) { _cDepCode = sc.CWhCode; utecDepName.Text = sc.CWhName; } } }