private void button1_Click_1(object sender, EventArgs e) { SNAP.Resources.Resource resource = null; if (SNAP.Controller.ChooseResource( this._value.MyType.Masks, out resource)) { SelectedResource = resource; } }
public bool ChooseResource( IEnumerable <SNAP.Resources.InternalRefFieldType.Mask> masks, out SNAP.Resources.Resource resource) { FamiliesForm familiesForm; if (masks == null) { familiesForm = new FamiliesForm(); } else { familiesForm = new FamiliesForm(masks); } if (familiesForm.ShowDialog() == DialogResult.OK) { resource = familiesForm.SelectedResource; return(true); } resource = null; return(false); }
private void button1_Click_1(object sender, EventArgs e) { SNAP.Resources.Resource resource = null; if (SNAP.Controller.ChooseResource( this._value.MyType.Masks, out resource)) { SelectedResource = resource; } }