예제 #1
0
        private void NewProductRadButton_Click(object sender, EventArgs e)
        {
            NewProductRadForm _newProductRadForm = new NewProductRadForm(this, StateForm.NEW);

            if (!isOpenForm(_newProductRadForm))
            {
                _newProductRadForm.ShowDialog();
            }
        }
예제 #2
0
 private void EditProductRadButton_Click(object sender, EventArgs e)
 {
     if (this.ProductsRadGridView.CurrentRow != null)
     {
         NewProductRadForm _newProductRadForm = new NewProductRadForm(this, StateForm.EDIT);
         if (!isOpenForm(_newProductRadForm))
         {
             _newProductRadForm.ShowDialog();
         }
     }
     else
     {
         RadMessageBox.Show("Debe seleccionar un producto", "JOSIAS INDUSTRIAL SRL", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
     }
 }
예제 #3
0
 private void SeeMoreProductRadButton_Click(object sender, EventArgs e)
 {
     if (this.ProductsRadGridView.SelectedRows.Count == 1)
     {
         this._currentProductIDSelected = (Int32)this.ProductsRadGridView.CurrentRow.Cells["ProductID"].Value;
         NewProductRadForm _newProductRadForm = new NewProductRadForm(this, StateForm.SEE_MORE);
         if (!isOpenForm(_newProductRadForm))
         {
             _newProductRadForm.ShowDialog();
         }
     }
     else
     {
         RadMessageBox.Show("Debe seleccionar un producto", "JOSIAS INDUSTRIAL SRL", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
     }
 }