PowerToys/Wox.UAC/MainWindow.xaml.cs

28 lines
688 B
C#
Raw Normal View History

using System;
using System.Reflection;
using System.Windows;
namespace Wox.UAC
{
public partial class MainWindow : Window
{
2014-03-11 15:17:10 +01:00
FileTypeAssociateInstaller installer = new FileTypeAssociateInstaller();
2014-03-02 04:04:30 +01:00
public MainWindow()
{
InitializeComponent();
string[] param = Environment.GetCommandLineArgs();
2014-03-02 04:04:30 +01:00
if (param.Length > 1)
{
switch (param[1])
{
2014-03-02 04:04:30 +01:00
case "AssociatePluginInstaller":
installer.RegisterInstaller();
break;
}
}
Application.Current.Shutdown(0);
}
}
}