public WatermarkCollectionEditorCtrl(IEditorService service, IWatermarkCollection watermarks) { InitializeComponent(); grdWatermarks.AutoGenerateColumns = false; _watermarks = watermarks; _edSvc = service; _list = new BindingList<IWatermark>(); foreach (var wm in _watermarks.Watermarks) { _list.Add(wm); } grdWatermarks.DataSource = _list; }
public WatermarkCollectionEditorCtrl(IEditorService service, IWatermarkCollection watermarks) { InitializeComponent(); grdWatermarks.AutoGenerateColumns = false; _watermarks = watermarks; _edSvc = service; _list = new BindingList <IWatermark>(); foreach (var wm in _watermarks.Watermarks) { _list.Add(wm); } grdWatermarks.DataSource = _list; }