Exemple #1
0
        public object SaveSettings(object target)
        {
            CasePickMonitorControllerSettingsRepository settings = new CasePickMonitorControllerSettingsRepository();

            ((ICasePickMonitorOverviewView)target).SaveFavoriteSettings(settings);

            return(settings);
        }
Exemple #2
0
 public void LoadFavoriteSettings(CasePickMonitorControllerSettingsRepository 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;
 }
Exemple #3
0
 public void SaveFavoriteSettings(CasePickMonitorControllerSettingsRepository 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;
 }
Exemple #4
0
        public void LoadSettings(object target, object settings)
        {
            CasePickMonitorControllerSettingsRepository repository = new CasePickMonitorControllerSettingsRepository();

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

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