コード例 #1
0
        public IntlNotamsSearchViewModel(IntlNotamService notamService,NotamService notamServiceLocal, AerodomService aerodomService, NotamCodeService notamcodeService, ObservableCollection<WorkspaceViewModel> parent)
            : this(notamService, aerodomService, notamcodeService)
        {
            parentWorkSpaces = parent;
            _notamServiceLocal = notamServiceLocal;

        }
コード例 #2
0
ファイル: NotamSummaryViewModel.cs プロジェクト: ali60/NOTAM
        public NotamSummaryViewModel(NotamService notamService, IntlNotamService intlnotamService, AerodomService aerodomService, NotamCodeService notamcodeService, ObservableCollection<WorkspaceViewModel> parent)
            : this(notamService, aerodomService, notamcodeService)
        {
            parentWorkSpaces = parent;
            _intlNotamService = intlnotamService;

        }
コード例 #3
0
ファイル: NotamCodeViewModel.cs プロジェクト: ali60/NOTAM
        public NotamCodeViewModel(NotamCode notamcode, NotamCodeService notamcodeService)
        {
            if (notamcode == null)
                throw new ArgumentNullException("notamcode");

            if (notamcodeService == null)
                throw new ArgumentNullException("notamcodeService");

            _notamcode = notamcode;
            _notamcodeService = notamcodeService;
           
        }
コード例 #4
0
ファイル: AllNotamCodesViewModel.cs プロジェクト: ali60/NOTAM
       private void Setup(NotamCodeService notamCodeService)
       {
           if (notamCodeService == null)
               throw new ArgumentNullException("notamCodeService");

           base.DisplayName = Entity.AllNotamCodesViewModel_DisplayName;

           _notamCodeService = notamCodeService;

           // Subscribe for notifications of when a new customer is saved.
           _notamCodeService.NotamCodesAdded += this.OnNotamCodeAddedToRepository;

           // Populate the AllCustomers collection with CustomerViewModels.
           this.CreateAllNotamCodes();
       }
コード例 #5
0
        public IntlNotamsSearchViewModel(IntlNotamService notamService, AerodomService aerodomService, NotamCodeService notamcodeService)
        {
            if (notamService == null)
                throw new ArgumentNullException("notamService");

            if (aerodomService == null)
                throw new ArgumentNullException("aerodomService");

            _notamService = notamService;
            _aerodomService = aerodomService;
            _notamcodeService = notamcodeService;

            this.validators = this.GetType()
              .GetProperties()
              .Where(p => this.GetValidations(p).Length != 0)
              .ToDictionary(p => p.Name, p => this.GetValidations(p));

            this.propertyGetters = this.GetType()
                .GetProperties()
                .Where(p => this.GetValidations(p).Length != 0)
                .ToDictionary(p => p.Name, p => this.GetValueGetter(p));
        }
コード例 #6
0
ファイル: MainWindowViewModel .cs プロジェクト: ali60/NOTAM
        public MainWindowViewModel(NotamDataContext  dataContext )
        {
            base.DisplayName = Entity.MainWindowViewModel_DisplayName;

            _originService = new OriginService(dataContext);
            _firService = new FIRService(dataContext);
            _notamService = new NotamService(dataContext);
            _aerodomService = new AerodomService(dataContext);
            _notamCodeService = new NotamCodeService(dataContext);
            _snowtamService = new SnowtamService(dataContext);
            _authService = new AuthenticationService(dataContext);
            _aftnService = new AftnService(dataContext);
            _intlNotamService = new IntlNotamService(dataContext);
            var workspace = new NotamSearchViewModel(_notamService, Workspaces);
            this.Workspaces.Add(workspace);
            this.SetActiveWorkspace(workspace);
            System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
            dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
            dispatcherTimer.Interval = new TimeSpan(0,1,0);
            dispatcherTimer.Start();


        }
コード例 #7
0
ファイル: NotamService.cs プロジェクト: ali60/NOTAM
 public List<NotamCode> GetAllNotamCodes()
 {
     var notamCodeService = new NotamCodeService(_dataContext);
     return notamCodeService.GetNotamCodes();
 }
コード例 #8
0
ファイル: NotamCodeViewModel.cs プロジェクト: ali60/NOTAM
 public NotamCodeViewModel(NotamCode notamcode, NotamCodeService notamcodeService, ObservableCollection<WorkspaceViewModel> parent)
     : this(notamcode, notamcodeService)
 {
     parentWorkSpaces = parent;
 }
コード例 #9
0
ファイル: AllNotamCodesViewModel.cs プロジェクト: ali60/NOTAM
 public AllNotamCodesViewModel(NotamCodeService notamCodeService)
  {
      Setup(notamCodeService);
  }
コード例 #10
0
ファイル: AllNotamCodesViewModel.cs プロジェクト: ali60/NOTAM
   public AllNotamCodesViewModel(NotamCodeService notamCodeService, ObservableCollection<WorkspaceViewModel> parent)
 {
       parentWorkSpaces = parent;
       Setup(notamCodeService);
 }