chore: revamp interfaces

This commit is contained in:
rjindael 2023-07-28 06:30:56 -07:00
parent a5971a5412
commit 21a8e4596a
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
4 changed files with 29 additions and 24 deletions

View File

@ -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();
}
}
}

View File

@ -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();
}
} }
} }

View File

@ -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)
{ {

View File

@ -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);
}
} }