Esempio 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();
        }
Esempio 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;
        }
Esempio 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;
        }
Esempio n. 4
0
 public OrderController(IWriterExcel writerExcel) => _writerExcel = writerExcel;