void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Product_type_edit = ((Sales.Product_type.ProductTypeEdit)(target)); return; case 2: this.txtProductTypecd = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.txtName = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.btnOk = ((System.Windows.Controls.Button)(target)); return; case 5: this.btnCancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
private void ShowEditForm(PRODUCT_TYPE p) { if (p != null) { ProductTypeEdit pt = new ProductTypeEdit(p, this); pt.Show(); pt.txtProductTypecd.IsReadOnly = true; } }
private void NewEditForm() { ProductTypeEdit pt = new ProductTypeEdit(null, this); pt.Show(); }