private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            FamilyMemberViewModel FamilyMember = new FamilyMemberViewModel();

            FamilyMember.Identifier = Guid.NewGuid();

            FamilyMember_List_AddEdit addEditForm = new FamilyMember_List_AddEdit(FamilyMember, true);

            addEditForm.FamilyMemberCreatedUpdated += new FamilyMemberHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Podaci_o_clanovima_porodice")), 95, addEditForm);
        }
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentFamilyMember == null)
            {
                MainWindow.WarningMessage = ((string)Application.Current.FindResource("Morate_odabrati_clana_za_izmenuUzvičnik"));;
                return;
            }

            FamilyMember_List_AddEdit addEditForm = new FamilyMember_List_AddEdit(CurrentFamilyMember, false);

            addEditForm.FamilyMemberCreatedUpdated += new FamilyMemberHandler(SyncData);
            FlyoutHelper.OpenFlyout(this, ((string)Application.Current.FindResource("Podaci_o_clanovima_porodice")), 95, addEditForm);
        }