internal void Setup( IBarController controller, IBarModel model, IPowerPointAdapter powerpointAdapter, ShapeNameHelper sn ) { _model = new BarModel(); Controller = new BarController(_model); _powerpointAdapter = powerpointAdapter; _nameHelper = sn; }
public void Register(IBarModel model) { model.BarCreated += model_BarCreated; model.BarRemoved += model_BarRemoved; model.BarsRegistered += model_BarsRegistered; model.AlignmentOptionsChanged += model_AlignmentOptionsChanged; model.ColorsSet += model_ColorsSet; model.ExternalBarAdded += model_ExternalBarAdded; model.BarInfoRetrieved += model_BarInfoRetrieved; model.SizesSet += ModelSizesSet; model.DefaultSizeSet += ModelDefaultSizeSet; }
public static HudBar FromModel(IBarModel model, TextStyle textStyle) => model == null || model.Hidden ? null : new HudBar(model, textStyle);
private HudBar(IBarModel model, TextStyle textStyle) : this(model.Label, model.Value, model.Max, model.ValueStyle, textStyle, model.Tooltip, model.Thresholds, model.OnClick) { }
public BarController(IBarModel model) { _model = model; }
public void Release(IBarModel model) { model.BarCreated -= model_BarCreated; model.BarRemoved -= model_BarRemoved; }