/// <summary>
 /// Constructor, creates the Model and the ICommand for the "sumit" button of the View
 /// </summary>
 public ReportViewModel()
 {
     currentModel                  = new MissleModel();
     addReportCommand              = new AddReportCommand(this);
     currentModel.PropertyChanged += (Property, EventArgs) =>
     {
         if (EventArgs.PropertyName == "locations")
         {
             OnPropertyChanged("locations");
         }
     };
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public DataAnalysisViewModel()
 {
     ZoomLevel          = 10.0;
     CenterLocation     = new Location(31.5, 35);
     K_means_collection = new ObservableCollection <GeoCoordinate>();
     Hits           = new ObservableCollection <Hit>();
     Reports        = new ObservableCollection <Report>();
     currentModel   = new MissleModel();
     CenterLocation = new Location();
     pushpins       = new ObservableCollection <Pushpin>();
     start          = DateTime.Now;
     end            = DateTime.Now;
 }
Ejemplo n.º 3
0
 public DataAnalysisViewModel()
 {
     ZoomLevel          = 7.2;
     CenterLocation     = new Location(31.5, 35);
     K_means_collection = new ObservableCollection <GeoCoordinate>();
     Hits                        = new ObservableCollection <Hit>();
     Reports                     = new ObservableCollection <Report>();
     currentModel                = new MissleModel();
     CenterLocation              = new Location();
     pushpins                    = new ObservableCollection <Pushpin>();
     pushpins.CollectionChanged += (sender, args) =>
     {
         OnPropertyChanged("pushpins");
     };
 }
 public BrowseReportsViewModel()
 {
     currentModel             = new MissleModel();
     North                    = new ObservableCollection <Report>();
     South                    = new ObservableCollection <Report>();
     Center                   = new ObservableCollection <Report>();
     Other                    = new ObservableCollection <Report>();
     North.CollectionChanged += (sender, args) =>
     {
         OnPropertyChanged("North");
     };
     South.CollectionChanged += (sender, args) =>
     {
         OnPropertyChanged("Center");
     };
     Center.CollectionChanged += (sender, args) =>
     {
         OnPropertyChanged("South");
     };
     Other.CollectionChanged += (sender, args) =>
     {
         OnPropertyChanged("Other");
     };
 }
 public HitViewModel()
 {
     currentModel  = new MissleModel();
     addHitCommand = new AddHitCommand(this);
     locations     = new ObservableCollection <string>(currentModel.locations);
 }