Beispiel #1
0
 public void LoadFavoriteSettings(PickPaceMonitorControllerSettingsRepository settings)
 {
     typeCombo.SelectedIndex     = settings.typeCombo_SelectedIndex;
     DurationCombo.SelectedIndex = settings.DurationCombo_SelectedIndex;
     //CapacityCheckBox.IsChecked = settings.CapacityCheckBox_IsChecked;
     theChart.Zoom = settings.TheChart_Zoom;
     panFaktor     = settings.TheChart_PanFaktor;
 }
Beispiel #2
0
        public object SaveSettings(object target)
        {
            PickPaceMonitorControllerSettingsRepository settings = new PickPaceMonitorControllerSettingsRepository();

            ((IPickPaceMonitorOverviewView)target).SaveFavoriteSettings(settings);

            return(settings);
        }
Beispiel #3
0
 public void SaveFavoriteSettings(PickPaceMonitorControllerSettingsRepository settings)
 {
     settings.TheChart_Zoom               = theChart.Zoom;
     settings.TheChart_PanFaktor          = theChart.PanOffset.X / theChart.PlotAreaClip.Width;
     settings.typeCombo_SelectedIndex     = typeCombo.SelectedIndex;
     settings.DurationCombo_SelectedIndex = DurationCombo.SelectedIndex;
     //settings.CapacityCheckBox_IsChecked = CapacityCheckBox.IsChecked.Value;
 }
Beispiel #4
0
        public void LoadSettings(object target, object settings)
        {
            PickPaceMonitorControllerSettingsRepository repository = new PickPaceMonitorControllerSettingsRepository();

            if (settings != null)
            {
                repository = (PickPaceMonitorControllerSettingsRepository)settings;
            }

            ((IPickPaceMonitorOverviewView)target).LoadFavoriteSettings(repository);
        }