File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- namespace Bluebird ;
1
+ using WinRT ;
2
+
3
+ namespace Bluebird ;
2
4
3
5
sealed partial class App : Application
4
6
{
@@ -38,14 +40,14 @@ protected override void OnActivated(IActivatedEventArgs args)
38
40
{
39
41
if ( args . Kind == ActivationKind . Protocol )
40
42
{
41
- ProtocolActivatedEventArgs ProtocolEventArgs = args as ProtocolActivatedEventArgs ;
43
+ ProtocolActivatedEventArgs ProtocolEventArgs = args . As < ProtocolActivatedEventArgs > ( ) ;
42
44
StartupUrl = ProtocolEventArgs . Uri . ToString ( ) ;
43
45
UnifiedArgumentStartup ( ) ;
44
46
}
45
47
46
48
if ( args . Kind == ActivationKind . CommandLineLaunch )
47
49
{
48
- CommandLineActivatedEventArgs CommandEventArgs = args as CommandLineActivatedEventArgs ;
50
+ CommandLineActivatedEventArgs CommandEventArgs = args . As < CommandLineActivatedEventArgs > ( ) ;
49
51
CommandLineActivationOperation operation = CommandEventArgs . Operation ;
50
52
string input = operation . Arguments ;
51
53
You can’t perform that action at this time.
0 commit comments