protected override void LoadSettingsFinally(DisplaySettings.DisplaySettingsCollection settings) { UserStory us = settings.Representation.Item as UserStory; EffortView eview = viewMode as EffortView; if (us != null) { DisplaySettings.DisplaySettings ds = settings.SetDisplaySettings(viewMode); settings.Representation.Scale(ds.Scale, true); settings.Representation.Rotate(ds.Rotation, true); int eff_ind = GetEffortIndex(us.Effort); double width = viewMode.Surface.ActualWidth / 9; double x = ds.CenterX; double min_x = width * eff_ind; double max_x = width * eff_ind; double mid_x = min_x + (width / 2); x = (x >= min_x && x < max_x) ? x : mid_x; settings.Representation.MoveCenter(x, ds.CenterY, true); } }
public EffortLoader(EffortView mode) : base(mode) { }