mirror of
https://gitlab.com/2009scape/Saradomin-Launcher.git
synced 2026-08-01 14:19:14 -06:00
42 lines
No EOL
905 B
C#
42 lines
No EOL
905 B
C#
using System;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Controls.Html;
|
|
using Avalonia.Input;
|
|
using Avalonia.Markup.Xaml;
|
|
using PropertyChanged;
|
|
using Saradomin.Messaging;
|
|
|
|
namespace Saradomin.Views.Windows
|
|
{
|
|
[DoNotNotify]
|
|
public class MainWindow : Window
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
#if DEBUG
|
|
this.AttachDevTools();
|
|
#endif
|
|
}
|
|
|
|
protected override void OnOpened(EventArgs e)
|
|
{
|
|
App.Messenger.Send(
|
|
new MainViewLoadedMessage(
|
|
this.FindControl<HtmlControl>("HtmlView")
|
|
)
|
|
);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
private void TitleBar_MouseDown(object _, PointerPressedEventArgs e)
|
|
{
|
|
BeginMoveDrag(e);
|
|
}
|
|
}
|
|
} |