mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
37 lines
813 B
C#
37 lines
813 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Markup.Xaml;
|
|
using System;
|
|
|
|
namespace Remotely.Desktop.Linux.Views
|
|
{
|
|
public class FileTransferWindow : Window
|
|
{
|
|
public FileTransferWindow()
|
|
{
|
|
this.InitializeComponent();
|
|
#if DEBUG
|
|
this.AttachDevTools();
|
|
#endif
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
|
|
Opened += FileTransferWindow_Opened;
|
|
}
|
|
|
|
private void FileTransferWindow_Opened(object sender, EventArgs e)
|
|
{
|
|
Topmost = false;
|
|
|
|
var left = Screens.Primary.WorkingArea.Right - Width;
|
|
|
|
var top = Screens.Primary.WorkingArea.Bottom - Height;
|
|
|
|
Position = new PixelPoint((int)left, (int)top);
|
|
}
|
|
}
|
|
}
|