Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 private void ShowEditForm(PRODUCT_TYPE p)
 {
     if (p != null)
     {
         ProductTypeEdit pt = new ProductTypeEdit(p, this);
         pt.Show();
         pt.txtProductTypecd.IsReadOnly = true;
     }
 }
Ejemplo n.º 3
0
        private void NewEditForm()
        {
            ProductTypeEdit pt = new ProductTypeEdit(null, this);

            pt.Show();
        }