コード例 #1
0
        public object SaveSettings(object target)
        {
            PickZoneMonitorControllerSettingsRepository settings = new PickZoneMonitorControllerSettingsRepository();

            ((IPickZoneMonitorOverviewView)target).SaveFavoriteSettings(settings);

            return(settings);
        }
コード例 #2
0
        public void LoadSettings(object target, object settings)
        {
            PickZoneMonitorControllerSettingsRepository repository = new PickZoneMonitorControllerSettingsRepository();

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

            ((IPickZoneMonitorOverviewView)target).LoadFavoriteSettings(repository);
        }
コード例 #3
0
 public void LoadFavoriteSettings(PickZoneMonitorControllerSettingsRepository settings)
 {
     typeCombo.SelectedIndex = settings.typeCombo_SelectedIndex;
     theChart.Zoom           = settings.TheChart_Zoom;
     panFaktor = settings.TheChart_PanFaktor;
 }
コード例 #4
0
 public void SaveFavoriteSettings(PickZoneMonitorControllerSettingsRepository settings)
 {
     settings.TheChart_Zoom           = theChart.Zoom;
     settings.TheChart_PanFaktor      = theChart.PanOffset.X / theChart.PlotAreaClip.Width;
     settings.typeCombo_SelectedIndex = typeCombo.SelectedIndex;
 }