Пример #1
0
        private void NewEditForm()
        {
            ProductEdit1 pro = new ProductEdit1(null, this);

            pro.Show();
            pro.type.ItemsSource = listpt;
        }
Пример #2
0
 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;
     }
 }