Exemple #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            AgencyViewModel Agency = new AgencyViewModel();

            Agency.Identifier = Guid.NewGuid();

            AgencyAddEdit addEditForm = new AgencyAddEdit(Agency, true);

            addEditForm.AgencyCreatedUpdated += new AgencyHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Delatnosti")), 95, addEditForm);
        }
Exemple #2
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentAgency == null)
            {
                MainWindow.WarningMessage = ((string)Application.Current.FindResource("Morate_odabrati_delatnost_za_izmenuUzvičnik"));
                return;
            }

            AgencyAddEdit addEditForm = new AgencyAddEdit(CurrentAgency, false);

            addEditForm.AgencyCreatedUpdated += new AgencyHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Delatnosti")), 95, addEditForm);
        }