public Form(Application __app, lib.BindableDynamicDictionary _model = null) { if (_model == null) { // parent form this.Model = new lib.BindableDynamicDictionary(); this.isMainForm = true; } else { // child form this.Model = _model; this.isMainForm = false; } this.app = __app; this.isDisplayed = false; this.win = new Window(); var g = new Grid(); var gridCol = new ColumnDefinition(); g.ColumnDefinitions.Add(gridCol); this.Host = g; this.controlsIndex = new Dictionary <string, IControl>(); }
public Form(Form _parentForm, lib.BindableDynamicDictionary _model) : this(__app : _parentForm.app, _model : _model) { this.parentForm = _parentForm; }