public void LoadFavoriteSettings(AssemblyMonitorControllerSettingsRepository 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;
 }
        public object SaveSettings(object target)
        {
            AssemblyMonitorControllerSettingsRepository settings = new AssemblyMonitorControllerSettingsRepository();

            ((IAssemblyMonitorOverviewView)target).SaveFavoriteSettings(settings);

            return(settings);
        }
 public void SaveFavoriteSettings(AssemblyMonitorControllerSettingsRepository 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;
 }
        public void LoadSettings(object target, object settings)
        {
            AssemblyMonitorControllerSettingsRepository repository = new AssemblyMonitorControllerSettingsRepository();

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

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