private void OnAddCommand()
        {
            AddProductPartTypeEntity = new ProductPartTypeEntity();
            AddProductPartTypeEntity.ProductPartType = new ProductManager.Web.Model.product_part_type();
            ProductPartTypeWindow productPartTypeWindow = new ProductPartTypeWindow(AddProductPartTypeEntity);

            productPartTypeWindow.Closed += productPartTypeWindow_Closed;
            productPartTypeWindow.Show();
        }
 private void DoubleClickCommand()
 {
     if (SelectProductPartTypeEntity != null)
     {
         ProductPartTypeWindow productPartTypeWindow = new ProductPartTypeWindow(SelectProductPartTypeEntity);
         productPartTypeWindow.Closed += productPartTypeModify_Closed;
         productPartTypeWindow.Show();
     }
 }
 private void OnModifyCommand()
 {
     if (SelectProductPartTypeEntity != null)
     {
         ProductPartTypeWindow productPartTypeWindow = new ProductPartTypeWindow(SelectProductPartTypeEntity);
         productPartTypeWindow.Closed += productPartTypeModify_Closed;
         productPartTypeWindow.Show();
     }
 }
 private void OnAddCommand()
 {
     AddProductPartTypeEntity = new ProductPartTypeEntity();
     AddProductPartTypeEntity.ProductPartType = new ProductManager.Web.Model.product_part_type();
     ProductPartTypeWindow productPartTypeWindow = new ProductPartTypeWindow(AddProductPartTypeEntity);
     productPartTypeWindow.Closed += productPartTypeWindow_Closed;
     productPartTypeWindow.Show();
 }