Example #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            UserViewModel user = new UserViewModel();

            user.Identifier = Guid.NewGuid();

            UserAddEdit addEditForm = new UserAddEdit(user, true);

            addEditForm.UserCreatedUpdated += new UserHandler(DisplayData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Podaci_o_korisnicima")), 95, addEditForm);
        }
Example #2
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentUser == null)
            {
                MainWindow.WarningMessage = ((string)Application.Current.FindResource("Morate_odabrati_korisnika_za_izmenuUzvičnik"));
                return;
            }

            UserAddEdit addEditForm = new UserAddEdit(CurrentUser, false);

            addEditForm.UserCreatedUpdated += new UserHandler(DisplayData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Podaci_o_korisnicima")), 95, addEditForm);
        }