Пример #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 bool Load()
 {
     try
     {
         frmSelectItem  selectItemForm = new frmSelectItem();
         if (selectItemForm.ShowDialog() == DialogResult.OK)
         {
             if (string.IsNullOrEmpty(selectItemForm.ItemKey))
             {
                 MessageBox.Show("Debe ingresar un identificador para el item");
                 return false;
             }
             _Id = selectItemForm.ItemKey;
             _ClienteCollectionBE = ClienteCollectionBE.GetClienteCollectionBE(primitivesResultsTextBox.Text);
             return true;
         }
         else
         {
             
             return false;
         }
         
     }
     catch
     {
         MessageBox.Show("El xml no permite la serializacion del onjeto ClienteCollectionBE..sera regenerado");
         _ClienteCollectionBE = Helper.GetClienteCollection();
         primitivesResultsTextBox.Text = _ClienteCollectionBE.GetXml();
         return false;
     }
 
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 bool Load()
 {
     try
     {
         frmSelectItem selectItemForm = new frmSelectItem();
         if (selectItemForm.ShowDialog() == DialogResult.OK)
         {
             if (string.IsNullOrEmpty(selectItemForm.ItemKey))
             {
                 MessageBox.Show("Debe ingresar un identificador para el item");
                 return(false);
             }
             _Id = selectItemForm.ItemKey;
             _ClienteCollectionBE = ClienteCollectionBE.GetClienteCollectionBE(primitivesResultsTextBox.Text);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         MessageBox.Show("El xml no permite la serializacion del onjeto ClienteCollectionBE..sera regenerado");
         _ClienteCollectionBE          = Helper.GetClienteCollection();
         primitivesResultsTextBox.Text = _ClienteCollectionBE.GetXml();
         return(false);
     }
 }
Пример #3
0
        public frmCacheFactoryTest()
        {
            InitializeComponent();
            selectItemForm = new frmSelectItem();


            cmbCacheMannagerSettingName.SelectedIndex = 0;
            cmbTimeMessure.SelectedIndex = 0;
        }
Пример #4
0
        public frmCacheFactoryTest()
        {
            InitializeComponent();
            selectItemForm = new frmSelectItem();
          

            cmbCacheMannagerSettingName.SelectedIndex = 0;
            cmbTimeMessure.SelectedIndex = 0;
        }