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;
 }
Example #2
0
 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;
 }