private void OfferReopenToolStripMenuItem_Click(object sender, EventArgs e) { if (CloseAnOffer(false)) { LoadOffers(nodeIndex); ListDataGridView.Focus(); } }
private void OfferDeleteToolStripMenuItem_Click(object sender, EventArgs e) { if (DeleteAnOffer()) { LoadOffers(nodeIndex); ListDataGridView.Focus(); } }
private void DisplayCounts() { if (ListDataGridView.Rows.Count.Equals(0)) { ListCountLabel.Text = $"No hay {Profile.ProfileName} disponibles."; } else { ListCountLabel.Text = $"{ListDataGridView.Rows.Count.ToString()} {Profile.ProfileName} encontrados."; ListDataGridView.Rows[0].Selected = true; ListDataGridView.Focus(); } }
private void OpenSimplyOfferForm(bool isNew) { var form = new SimplyOfferForm { IsNewRecord = isNew, IdSelected = idSelected }; form.ShowDialog(); if (form.IsSaved) { LoadOffers(nodeIndex); ListDataGridView.Focus(); } }
private void OpenPaymentShowDetail(bool isNew) { var form = new PaymentDetailsForm { IsNew = isNew, IdSelected = idSelected, IdOrderSelected = IdOrderSelected }; form.ShowDialog(); if (form.IsSaved) { LoadPayments(nodeIndex); ListDataGridView.Focus(); } }
private void DisplayCounts() { if (ListDataGridView.Rows.Count.Equals(0)) { ListCountLabel.Text = "No hay pagos disponibles."; PropertiesDataGridView.Rows.Clear(); } else { ListCountLabel.Text = $"{ListDataGridView.Rows.Count.ToString()} pagos encontrados."; ListDataGridView.Rows[0].Selected = true; ListDataGridView.Rows[0].Cells[3].Selected = true; ListDataGridView.Focus(); } }
private void DisplayCounts() { if (ListDataGridView.Rows.Count.Equals(0)) { ListCountLabel.Text = "No hay ordenes de compras disponibles."; PropertiesDataGridView.Rows.Clear(); ProductDataGridView.DataSource = null; } else { ListCountLabel.Text = $"{ListDataGridView.Rows.Count.ToString()} ordenes de compras encontradas."; ListDataGridView.Rows[0].Selected = true; ListDataGridView.Focus(); } }
private void DisplayCounts() { if (ListDataGridView.Rows.Count.Equals(0)) { ListCountLabel.Text = "No hay productos disponibles."; SearchAceptButton.Enabled = false; } else { SearchAceptButton.Enabled = true; ListCountLabel.Text = $"{ListDataGridView.Rows.Count.ToString()} productos encontrados."; ListDataGridView.Rows[0].Selected = true; ListDataGridView.Focus(); } }
private void OpenRegisterForm(bool isNew) { var form = new ContractRegisterForm { IsNewRecord = isNew, IdSelected = isNew ? string.Empty : idSelected, Profile = profile }; form.ShowDialog(); if (!form.IsSaved) { return; } LoadUsers(ListFilterComboBox.SelectedIndex); ListDataGridView.Focus(); }
private void DisplayCounts() { if (ListDataGridView.Rows.Count.Equals(0)) { ListCountLabel.Text = $"No hay {Profile.ProfileName} disponibles."; OptionEditButton.Enabled = false; OptionEditToolStripMenuItem.Enabled = false; } else { OptionEditButton.Enabled = true; OptionEditToolStripMenuItem.Enabled = true; ListCountLabel.Text = $"{ListDataGridView.Rows.Count.ToString()} {Profile.ProfileName} encontrados."; ListDataGridView.Rows[0].Selected = true; ListDataGridView.Focus(); } }
private void DisplayCounts() { if (ListDataGridView.Rows.Count.Equals(0)) { ListCountLabel.Text = "No hay registros disponibles."; OptionEditButton.Enabled = false; OptionEditToolStripMenuItem.Enabled = false; } else { ListCountLabel.Text = ListDataGridView.Rows.Count + " registros encontrados."; OptionEditButton.Enabled = true; OptionEditToolStripMenuItem.Enabled = true; ListDataGridView.Rows[0].Selected = true; ListDataGridView.CurrentCell = ListDataGridView.Rows[0].Cells[3]; ListDataGridView.Focus(); } }
private void PaymentRefreshToolStripMenuItem_Click(object sender, EventArgs e) { LoadPayments(nodeIndex); ListDataGridView.Focus(); }
private void PaymentForm_Load(object sender, EventArgs e) { ConfigureForm(); ListDataGridView.Focus(); }
private void ExternalOrderForm_Load(object sender, EventArgs e) { Text = $"Control de ordenes de compra ({profile.ProfileName})."; ConfigureForm(); ListDataGridView.Focus(); }
private void OptionRefreshToolStripMenuItem_Click(object sender, EventArgs e) { LoadOffers(nodeIndex); ListDataGridView.Focus(); }