예제 #1
0
 public IntervalExecutionTriggerViewModel(IntervalExecutionTrigger model, MAControllerConfigurationViewModel config)
     : base(model)
 {
     this.typedModel = model;
     this.config     = config;
     this.AddIsDirtyProperty(nameof(this.RunProfileName));
     this.AddIsDirtyProperty(nameof(this.Interval));
     this.AddIsDirtyProperty(nameof(this.Exclusive));
 }
예제 #2
0
        public PartitionConfigurationCollectionViewModel(PartitionConfigurationCollection items, MAControllerConfigurationViewModel config)
            : base((IList <PartitionConfiguration>)items, t => PartitionConfigurationCollectionViewModel.ViewModelResolver(t, config))
        {
            this.config = config;

            if (this.ViewModels.Count > 0)
            {
                this.ViewModels[0].IsSelected = true;
            }
        }
예제 #3
0
 public ScheduledExecutionTriggerViewModel(ScheduledExecutionTrigger model, MAControllerConfigurationViewModel config)
     : base(model)
 {
     this.config     = config;
     this.typedModel = model;
     this.AddIsDirtyProperty(nameof(this.RunProfileName));
     this.AddIsDirtyProperty(nameof(this.Interval));
     this.AddIsDirtyProperty(nameof(this.StartDateTime));
     this.AddIsDirtyProperty(nameof(this.Exclusive));
     this.AddIsDirtyProperty(nameof(this.RunImmediate));
     this.AddIsDirtyProperty(nameof(this.Disabled));
 }
 public PartitionConfigurationViewModel(PartitionConfiguration model, MAControllerConfigurationViewModel maconfig)
     : base(model)
 {
     this.originalVersion = this.Model.Version;
     this.maconfig        = maconfig;
     this.AddIsDirtyProperty(nameof(this.ScheduledImportRunProfileName));
     this.AddIsDirtyProperty(nameof(this.FullSyncRunProfileName));
     this.AddIsDirtyProperty(nameof(this.FullImportRunProfileName));
     this.AddIsDirtyProperty(nameof(this.ExportRunProfileName));
     this.AddIsDirtyProperty(nameof(this.DeltaSyncRunProfileName));
     this.AddIsDirtyProperty(nameof(this.DeltaImportRunProfileName));
     this.AddIsDirtyProperty(nameof(this.ConfirmingImportRunProfileName));
     this.AddIsDirtyProperty(nameof(this.AutoImportIntervalMinutes));
     this.AddIsDirtyProperty(nameof(this.ScheduleImports));
 }
 public MAExecutionTriggersViewModel(IList <IMAExecutionTrigger> items, MAControllerConfigurationViewModel config)
 {
     this.config = config;
     this.SetCollectionViewModel(items, this.ViewModelResolver);
 }
예제 #6
0
 private static PartitionConfigurationViewModel ViewModelResolver(PartitionConfiguration model, MAControllerConfigurationViewModel config)
 {
     return(new PartitionConfigurationViewModel(model, config));
 }