public void AddFigure(IFigureDescriptor descriptor, FigureConfig config) { var figureProxy = new FigureProxy(descriptor); figureProxy.LoadConfig(config); FigureCollection.AddFigure(figureProxy); }
public void AddFigure(IFigureDescriptor descriptor) { var figureProxy = new FigureProxy(descriptor); FigureCollection.AddFigure(figureProxy); var figureSetup = new FigureSetupViewModel(this, figureProxy); WindowManager.ShowDialog(figureSetup); }