Ejemplo n.º 1
0
 public void LoadFavoriteSettings(PackMonitorControllerSettingsRepository 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;
 }
Ejemplo n.º 2
0
        public object SaveSettings(object target)
        {
            PackMonitorControllerSettingsRepository settings = new PackMonitorControllerSettingsRepository();

            ((IPackMonitorOverviewView)target).SaveFavoriteSettings(settings);

            return(settings);
        }
Ejemplo n.º 3
0
 public void SaveFavoriteSettings(PackMonitorControllerSettingsRepository 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;
 }
Ejemplo n.º 4
0
        public void LoadSettings(object target, object settings)
        {
            PackMonitorControllerSettingsRepository repository = new PackMonitorControllerSettingsRepository();

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

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