private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            BusinessPartnerViewModel businessPartner = new BusinessPartnerViewModel();

            businessPartner.Code       = new BusinessPartnerSQLiteRepository().GetNewCodeValue();
            businessPartner.Identifier = Guid.NewGuid();

            BusinessPartnerAddEdit addEditForm = new BusinessPartnerAddEdit(businessPartner, true);

            addEditForm.BusinessPartnerCreatedUpdated += new BusinessPartnerHandler(PopulateData);
            FlyoutHelper.OpenFlyout(this, "Podaci o poslovnim partnerima", 95, addEditForm);
        }
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (CurrentBusinessPartner == null)
            {
                MainWindow.WarningMessage = "Morate odabrati firmu za izmenu!";
                return;
            }

            BusinessPartnerAddEdit addEditForm = new BusinessPartnerAddEdit(CurrentBusinessPartner, false);

            addEditForm.BusinessPartnerCreatedUpdated += new BusinessPartnerHandler(PopulateData);
            FlyoutHelper.OpenFlyout(this, "Podaci o poslovnim partnerima", 95, addEditForm);
        }