private void NewEditForm() { ProductEdit1 pro = new ProductEdit1(null, this); pro.Show(); pro.type.ItemsSource = listpt; }
private void ShowEditForm(ProductView pv) { if (pv != null) { ProductEdit1 pro = new ProductEdit1(pv, this); pro.Show(); pro.txtPRODUCT_CD.IsReadOnly = true; pro.type.ItemsSource = listpt; } }