public object SaveSettings(object target) { PickZoneMonitorControllerSettingsRepository settings = new PickZoneMonitorControllerSettingsRepository(); ((IPickZoneMonitorOverviewView)target).SaveFavoriteSettings(settings); return(settings); }
public void LoadSettings(object target, object settings) { PickZoneMonitorControllerSettingsRepository repository = new PickZoneMonitorControllerSettingsRepository(); if (settings != null) { repository = (PickZoneMonitorControllerSettingsRepository)settings; } ((IPickZoneMonitorOverviewView)target).LoadFavoriteSettings(repository); }
public void LoadFavoriteSettings(PickZoneMonitorControllerSettingsRepository settings) { typeCombo.SelectedIndex = settings.typeCombo_SelectedIndex; theChart.Zoom = settings.TheChart_Zoom; panFaktor = settings.TheChart_PanFaktor; }
public void SaveFavoriteSettings(PickZoneMonitorControllerSettingsRepository settings) { settings.TheChart_Zoom = theChart.Zoom; settings.TheChart_PanFaktor = theChart.PanOffset.X / theChart.PlotAreaClip.Width; settings.typeCombo_SelectedIndex = typeCombo.SelectedIndex; }