Exemplo n.º 1
0
 protected override void ExecuteWith(IMoBiContext context)
 {
     base.ExecuteWith(context);
     _changedUsedCalculationMethod.CalculationMethod = NewCalculationMethod;
     context.PublishEvent(new ChangedCalculationMethodEvent(_moleculeBuilder));
     context.ProjectChanged();
 }
 protected override void ExecuteWith(IMoBiContext context)
 {
     base.ExecuteWith(context);
     UpdatePropertyValue();
     OldValueSerializationString = context.SerializeValue(_oldValue);
     NewValueSerializationString = context.SerializeValue(_newValue);
     context.ProjectChanged();
 }
Exemplo n.º 3
0
 private void addChartToProject(CurveChart chart)
 {
     _context.CurrentProject.AddChart(chart);
     _context.ProjectChanged();
     _eventPublisher.PublishEvent(new ChartAddedEvent(chart));
 }