Beispiel #1
0
        private async void EntityListButtonBar_OnCreateButtonClick(object sender, RoutedEventArgs e)
        {
            var form = new RubroCreationEditionForm();

            var result = form.ShowDialog();

            if (result.HasValue && result.Value)
            {
                await UpdateRubros();
            }
        }
Beispiel #2
0
        private async void OpenEditionForm()
        {
            if (RubroGrid.SelectedItem == null)
            {
                return;
            }

            var rubro = (RubroHeaderData)RubroGrid.SelectedItem;

            var form = new RubroCreationEditionForm(rubro.Id);

            var result = form.ShowDialog();

            if (result.HasValue && result.Value)
            {
                await UpdateRubros();
            }
        }