public FrmCommonSide(CommonSideRectangleModel commonSideRectangleModel) : this() { this.Model = CopyUtil.DeepCopy(commonSideRectangleModel); if (!this.mvvmContext1.IsDesignMode) { if (this.Model == null) { this.Model = new CommonSideRectangleModel(); } this.mvvmContext1.SetViewModel(typeof(CommonSideRectangleModel), this.Model); this.InitializeBindings(); } }
public void OnCommonSide(CommonSideRectangleModel commonSideRectangleModel) { this.drawingComponent1.DoCommonSide(commonSideRectangleModel); }