Exemplo n.º 1
0
 protected override void Context()
 {
     base.Context();
     _template1 = new ChartEditorLayoutTemplate();
     _template2 = new ChartEditorLayoutTemplate();
     _allTemplates.Add(_template1);
     _allTemplates.Add(_template2);
 }
Exemplo n.º 2
0
 public void InitEditorLayout(IChartEditorAndDisplayPresenter chartEditorPresenter, ChartEditorLayoutTemplate chartEditorLayoutTemplate, bool loadColumnSettings = false)
 {
     if (chartEditorLayoutTemplate != null)
     {
         copySettings(chartEditorPresenter, chartEditorLayoutTemplate.Settings, loadColumnSettings);
         _userSettings.DefaultChartEditorLayout = chartEditorLayoutTemplate.Name;
     }
     else
     {
         applyColumnSettings(chartEditorPresenter);
     }
 }
 private void editorLayoutSelected(ChartEditorLayoutTemplate template)
 {
     _chartEditorLayoutTask.InitEditorLayout(this, template, loadColumnSettings: true);
     PostEditorLayout();
 }