public List<Drawing> ShowViewToSelectManyDialog() { var slctForm = new TopDrawingsSelectionForm(this); _slctedDraws = new List<Drawing>(); slctForm.OnSelectDrawings += SlctForm_OnSelectDrawings; slctForm.ShowDialog(); return _slctedDraws; }
public Drawing ShowViewToSelectOneDialog() { var slctForm = new TopDrawingsSelectionForm(this); _slctedDraws = new List<Drawing>(); slctForm.OnSelectDrawings += SlctForm_OnSelectDrawings; slctForm.ShowDialog(); return _slctedDraws.Count > 0 ? _slctedDraws[0] : null; }