Пример #1
0
 public void Find(Guid ProductID)
 {
     try
     {
         var p = RuleProduct.Find(ProductID);
         if (p != null)
         {
             this._Product = p;
             this.ShowProductInControls();
         }
         else
         {
             Msg.Adv("Producto no encontrado.");
         }
     }
     catch (Exception ex)
     {
         Msg.Err(ex.Message);
     }
 }
Пример #2
0
        private void Find(string ProductCode)
        {
            try
            {
                var p = RuleProduct.Find(ProductCode);
                if (p != null)
                {
                    this.Exist    = true;
                    this._Product = p;
                    this.ShowDataInControls();

                    //Habilitando botones
                    this.SelectButton(btDelete).Enabled = true;
                }
            }
            catch (Exception ex)
            {
                Msg.Err(ex.Message);
            }
        }