Package updates & added quickbooks path selection.
This commit is contained in:
@@ -14,6 +14,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using Firebase.Auth;
|
||||
using ToastNotifications.Messages;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace BodyshopPartner.ViewModels
|
||||
{
|
||||
@@ -138,6 +139,22 @@ namespace BodyshopPartner.ViewModels
|
||||
IndeterminateLoading = false;
|
||||
}
|
||||
|
||||
public void BrowseForQbFolder()
|
||||
{
|
||||
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.Multiselect = false;
|
||||
openFileDialog.Filter = "QuickBooks files (*.qbw)|*.qbw|All files (*.*)|*.*";
|
||||
openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
||||
if (openFileDialog.ShowDialog() == true)
|
||||
{
|
||||
|
||||
Properties.Settings.Default.QuickBooksFilePath = openFileDialog.FileName;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public void StopAllFolderMonitors()
|
||||
{
|
||||
IndeterminateLoading = true;
|
||||
@@ -229,7 +246,7 @@ namespace BodyshopPartner.ViewModels
|
||||
public async Task TestGql()
|
||||
{
|
||||
|
||||
Utils.Notifications.notifier.ShowInformation("The message");
|
||||
Utils.Notifications.notifier.ShowInformation("The message");
|
||||
|
||||
|
||||
//Notification _n = new Notification()
|
||||
|
||||
Reference in New Issue
Block a user