public MainViewModel(AbstractBridgeToBd bridge, IWriterExcel writerExcel) { if (bridge == null) { throw new ArgumentNullException("bridge"); } if (writerExcel == null) { throw new ArgumentNullException("writerExcel"); } _writerExcel = writerExcel; _bridge = bridge; _bridge.ChangingEvents += () => { OnChangingEvents(); }; Events.Sort(); ShowTodayEventsWindow todayEvents = new ShowTodayEventsWindow(); todayEvents.ShowDialog(); }
public ConnectionToExcel(IWriterExcel writer, IGrabberExcel grabber) { if (writer == null) throw new ArgumentNullException("writer"); if (grabber == null) throw new ArgumentNullException("grabber"); _grabber = grabber; _writer = writer; }
public ConnectionToExcel(IWriterExcel writer, IGrabberExcel grabber) { if (writer == null) { throw new ArgumentNullException("writer"); } if (grabber == null) { throw new ArgumentNullException("grabber"); } _grabber = grabber; _writer = writer; }
public OrderController(IWriterExcel writerExcel) => _writerExcel = writerExcel;