chore: revamp interfaces
This commit is contained in:
parent
a5971a5412
commit
21a8e4596a
|
|
@ -0,0 +1,20 @@
|
||||||
|
namespace Kiseki.Launcher.Windows
|
||||||
|
{
|
||||||
|
public class Launcher : ILauncher
|
||||||
|
{
|
||||||
|
public void Register()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Unregister()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CreateShortcuts()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
namespace Kiseki.Launcher.Windows
|
namespace Kiseki.Launcher.Windows
|
||||||
{
|
{
|
||||||
[System.ComponentModel.DesignerCategory("")]
|
[System.ComponentModel.DesignerCategory("")]
|
||||||
public class MainWindow : Form, IMainWindow
|
public class MainWindow : Form
|
||||||
{
|
{
|
||||||
private readonly TaskDialogButton CloseButton;
|
private readonly TaskDialogButton CloseButton;
|
||||||
private readonly TaskDialogPage Page;
|
private readonly TaskDialogPage Page;
|
||||||
|
|
@ -83,20 +83,5 @@ namespace Kiseki.Launcher.Windows
|
||||||
|
|
||||||
TaskDialog.ShowDialog(Page);
|
TaskDialog.ShowDialog(Page);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Register()
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Unregister()
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CreateShortcuts()
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using Microsoft.Win32;
|
||||||
|
|
||||||
namespace Kiseki.Launcher.Windows
|
namespace Kiseki.Launcher.Windows
|
||||||
{
|
{
|
||||||
public class ProtocolHandler : IProtocolHandler
|
public class Protocol : IProtocol
|
||||||
{
|
{
|
||||||
public void Register(string key, string name, string handler)
|
public void Register(string key, string name, string handler)
|
||||||
{
|
{
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
namespace Kiseki.Launcher
|
namespace Kiseki.Launcher
|
||||||
{
|
{
|
||||||
interface IProtocolHandler
|
interface ILauncher
|
||||||
{
|
|
||||||
void Register(string key, string name, string handler);
|
|
||||||
void Unregister(string key);
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IMainWindow
|
|
||||||
{
|
{
|
||||||
void Register();
|
void Register();
|
||||||
void Unregister();
|
void Unregister();
|
||||||
void CreateShortcuts();
|
void CreateShortcuts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface IProtocol
|
||||||
|
{
|
||||||
|
void Register(string key, string name, string handler);
|
||||||
|
void Unregister(string key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue