Пример #1
0
        private void updtButton_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrWhiteSpace(item_Copy.Text) || string.IsNullOrWhiteSpace(radComboNivel.Text))
            {
                if (string.IsNullOrWhiteSpace(item_Copy.Text))
                {
                    System.Windows.MessageBox.Show("Debe de seleccionar un articulo, tap twice ", "Error al actualizar");
                }


                if (string.IsNullOrWhiteSpace(radComboNivel.Text))
                {
                    System.Windows.MessageBox.Show("Debe de seleccionar un nivel del articulo", "Error al actualizar");
                }
            }
            else
            {
                FieldsUpdateEventArgs args = new FieldsUpdateEventArgs();
                args.UpdatedFields = m_invoiceItem;

                if (UpdateRequested != null)
                {
                    UpdateRequested(this, args);
                }
            }
        }
Пример #2
0
        private void updtButton_Click(object sender, RoutedEventArgs e)
        {
            FieldsUpdateEventArgs args = new FieldsUpdateEventArgs();

            args.UpdatedFields = m_invoiceItem;

            if (UpdateRequested != null)
            {
                UpdateRequested(this, args);
            }
        }