Exemplo n.º 1
0
 private void OfferReopenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CloseAnOffer(false))
     {
         LoadOffers(nodeIndex);
         ListDataGridView.Focus();
     }
 }
Exemplo n.º 2
0
 private void OfferDeleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (DeleteAnOffer())
     {
         LoadOffers(nodeIndex);
         ListDataGridView.Focus();
     }
 }
Exemplo n.º 3
0
 private void ListDataGridView_Click(object sender, EventArgs e)
 {
     try
     {
         var AllFiles = new DirectoryInfo(ListDataGridView.SelectedRows[0].Cells["FullName"].Value.ToString()).GetFiles();
         ListDataGridView.DataSource = AllFiles;
         ListDataGridView.ClearSelection();
     }
     catch (Exception)
     {
     }
 }
 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();
     }
 }
Exemplo n.º 5
0
        private void OpenSimplyOfferForm(bool isNew)
        {
            var form = new SimplyOfferForm {
                IsNewRecord = isNew, IdSelected = idSelected
            };

            form.ShowDialog();
            if (form.IsSaved)
            {
                LoadOffers(nodeIndex);
                ListDataGridView.Focus();
            }
        }
Exemplo n.º 6
0
        private void OpenPaymentShowDetail(bool isNew)
        {
            var form = new PaymentDetailsForm {
                IsNew           = isNew,
                IdSelected      = idSelected,
                IdOrderSelected = IdOrderSelected
            };

            form.ShowDialog();
            if (form.IsSaved)
            {
                LoadPayments(nodeIndex);
                ListDataGridView.Focus();
            }
        }
Exemplo n.º 7
0
 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();
     }
 }
Exemplo n.º 8
0
 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();
     }
 }
Exemplo n.º 10
0
        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();
        }
Exemplo n.º 11
0
 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();
     }
 }
Exemplo n.º 13
0
 private void PaymentRefreshToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LoadPayments(nodeIndex);
     ListDataGridView.Focus();
 }
Exemplo n.º 14
0
 private void PaymentForm_Load(object sender, EventArgs e)
 {
     ConfigureForm();
     ListDataGridView.Focus();
 }
Exemplo n.º 15
0
 private void ExternalOrderForm_Load(object sender, EventArgs e)
 {
     Text = $"Control de ordenes de compra ({profile.ProfileName}).";
     ConfigureForm();
     ListDataGridView.Focus();
 }
Exemplo n.º 16
0
 private void OptionRefreshToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LoadOffers(nodeIndex);
     ListDataGridView.Focus();
 }