Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public ConnectionToExcel(IWriterExcel writer, IGrabberExcel grabber)
        {
            if (writer == null) throw new ArgumentNullException("writer");
            if (grabber == null) throw new ArgumentNullException("grabber");

            _grabber = grabber;
            _writer = writer;
        }
Exemplo n.º 3
0
        public ConnectionToExcel(IWriterExcel writer, IGrabberExcel grabber)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            if (grabber == null)
            {
                throw new ArgumentNullException("grabber");
            }

            _grabber = grabber;
            _writer  = writer;
        }
Exemplo n.º 4
0
 public OrderController(IWriterExcel writerExcel) => _writerExcel = writerExcel;