This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?><Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" IgnorableNamespaces="uap mp"> <Identity Name="55884DDLG.FCUTrial" Publisher="CN=0ADFD460-31D2-4A92-A4A8-DF66FF78B5F8" Version="1.1.1.0" /> <mp:PhoneIdentity PhoneProductId="f0696861-c4dc-44b1-87f7-97601f0c45c3" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> <Properties> <DisplayName>FCU Trial</DisplayName> <PublisherDisplayName>DDLG</PublisherDisplayName> <Logo>Assets\StoreLogo.png</Logo> </Properties> <Dependencies> <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" /> </Dependencies> <Resources> <Resource Language="x-generate" /> </Resources> <Applications> <Application Id="App" Executable="$targetnameto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | |
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" | |
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | |
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" IgnorableNamespaces="uap mp"> | |
<Identity Name="55884DDLG.FCUTrial" Publisher="CN=0ADFD460-31D2-4A92-A4A8-DF66FF78B5F8" Version="1.1.1.0" /> | |
<mp:PhoneIdentity PhoneProductId="f0696861-c4dc-44b1-87f7-97601f0c45c3" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> | |
<Properties> | |
<DisplayName>FCU Trial</DisplayName> | |
<PublisherDisplayName>DDLG</PublisherDisplayName> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnActivated(IActivatedEventArgs args) | |
{ | |
Frame rootFrame = Window.Current.Content as Frame; | |
if(ActivationKind.CommandLineLaunch == args.Kind) | |
{ | |
var commandArgs = args as CommandLineActivatedEventArgs; | |
var operation = commandArgs.Operation; | |
string arguments = operation.Arguments; | |
string activationPath = operation.CurrentDirectoryPath; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page | |
x:Class="App1.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:App1" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> | |
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnNavigatedTo(NavigationEventArgs e) | |
{ | |
ProcessPassedCommandlineArguments(e.Parameter); | |
} | |
public void ProcessPassedCommandlineArguments(object arguments) | |
{ | |
tbArguments.Text = arguments as string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "AdaptiveCard", | |
"version": "1.0", | |
"backgroundImage": "http://i.4cdn.org/c/1515200423386.jpg", | |
"body": [ | |
{ | |
"type": "TextBlock", | |
"size": "large", | |
"weight": "bolder", | |
"text": "Megumin Thread #12", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string GenerateCardJsonString(FutaThreadView.PostsLoadFinishedEventArgs e) | |
{ | |
string retVal = ""; | |
string title = e.Title; | |
string subTitle = GenerateCardSubTitle(e); | |
AdaptiveCard card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0)); | |
card.BackgroundImage = new Uri(e.ThumbUrl); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task<bool> GenerateActivityAsync(FutaThreadView.PostsLoadFinishedEventArgs e) | |
{ | |
UserActivityChannel channel = UserActivityChannel.GetDefault(); | |
UserActivity userActivity = await channel.GetOrCreateUserActivityAsync(e.Url); | |
userActivity.ActivationUri = new Uri(e.Url.Replace("http://", "ddlgf10://") + "?View=Post"); | |
userActivity.VisualElements.DisplayText = e.Title + " " + GenerateCardSubTitle(e); | |
var cardstring = GenerateCardJsonString(e); | |
// To use the adaptive card, enable this line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | |
<ProjectGuid>{452A5469-20F7-402F-87FD-27BFA0AABB56}</ProjectGuid> | |
<OutputType>AppContainerExe</OutputType> | |
<AppDesignerFolder>Properties</AppDesignerFolder> | |
<RootNamespace>WheelClock</RootNamespace> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DllImport("api-ms-win-core-sysinfo-l1-2-3.dll")] | |
static extern void GetNativeSystemInfo(ref SYSTEM_INFO lpSystemInfo); | |
[StructLayout(LayoutKind.Sequential)] | |
public struct SYSTEM_INFO | |
{ | |
public ushort processorArchitecture; | |
ushort reserved; | |
public uint pageSize; |