private void NewProductRadButton_Click(object sender, EventArgs e) { NewProductRadForm _newProductRadForm = new NewProductRadForm(this, StateForm.NEW); if (!isOpenForm(_newProductRadForm)) { _newProductRadForm.ShowDialog(); } }
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); } }
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); } }