W10 Toasts
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<RootNamespace>BodyshopUploader</RootNamespace>
|
||||
<AssemblyName>BodyshopUploader</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
@@ -276,6 +277,8 @@
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Windows.Data" />
|
||||
<Reference Include="Windows.UI" />
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
@@ -317,6 +320,7 @@
|
||||
<Compile Include="Utils\JsonConverter.cs" />
|
||||
<Compile Include="Utils\JsonExtensions.cs" />
|
||||
<Compile Include="Utils\LoginHelpers.cs" />
|
||||
<Compile Include="Utils\NotificationService.cs" />
|
||||
<Compile Include="Utils\Queries\VehicleQueries.cs" />
|
||||
<Compile Include="Utils\RelayCommand.cs" />
|
||||
<Compile Include="Utils\TrayIcon.cs" />
|
||||
|
||||
@@ -214,45 +214,8 @@ namespace BodyshopUploader.ViewModels
|
||||
|
||||
public async Task TestGql()
|
||||
{
|
||||
//Notification _n = new Notification()
|
||||
//{
|
||||
// Id = 123,
|
||||
// Title = "This is a title",
|
||||
// Subtitle = "Subtitle",
|
||||
// Message = "Somethin"
|
||||
//};
|
||||
//Growler.AddNotification(_n);
|
||||
notificationService.ShowNotification("abc", 123.45);
|
||||
|
||||
var r = new GraphQLRequest
|
||||
{
|
||||
Query = @"query MyQuery($key: String!) {
|
||||
masterdata(where: {key: {_eq: $key}}) {
|
||||
value
|
||||
key
|
||||
}
|
||||
}",
|
||||
Variables = new
|
||||
{
|
||||
key = Utils.AppMetaData.ShopRegion + "_ciecaopcodes"
|
||||
}
|
||||
};
|
||||
var data = await Utils.GraphQL.ExecuteQuery(r);
|
||||
|
||||
//var t = Newtonsoft.Json.JsonConvert.DeserializeObject<List<dynamic>>(data.masterdata[0].value.Value);
|
||||
Utils.AppMetaData.CiecaOpCodes = JObject.Parse(data.masterdata[0].value.Value);
|
||||
|
||||
try
|
||||
{
|
||||
var aa = Utils.AppMetaData.CiecaOpCodes.Property("OP1").Children();
|
||||
var cc = Utils.AppMetaData.CiecaOpCodes["OP1"]["desc"].Value;
|
||||
var ab = Utils.AppMetaData.CiecaOpCodes.Property("OP1.desc");
|
||||
|
||||
}
|
||||
catch (Exception EX)
|
||||
{
|
||||
logger.Warn("Err");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BodyshopUploader.Utils.Growls;
|
||||
using BodyshopUploader.Models;
|
||||
using BodyshopUploader.Utils;
|
||||
|
||||
namespace BodyshopUploader.ViewModels
|
||||
{
|
||||
@@ -13,6 +14,8 @@ namespace BodyshopUploader.ViewModels
|
||||
{
|
||||
public GrowlNotification Growler;
|
||||
private System.Timers.Timer _updateCheckTimer = new System.Timers.Timer(60 * 1000);
|
||||
NotificationService notificationService = new NotificationService();
|
||||
|
||||
|
||||
private ObservableCollection<Monitor> _monitoringPaths = new ObservableCollection<Monitor>();
|
||||
public ObservableCollection<Monitor> MonitoringPaths
|
||||
|
||||
Reference in New Issue
Block a user