mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-22 13:50:14 +00:00
32 lines
853 B
C#
32 lines
853 B
C#
|
using System;
|
|||
|
using System.Windows;
|
|||
|
using System.Windows.Interop;
|
|||
|
|
|||
|
namespace MSFSPopoutPanelManager.WpfApp
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Interaction logic for PanelCoorOverlay.xaml
|
|||
|
/// </summary>
|
|||
|
public partial class PanelCoorOverlay : Window
|
|||
|
{
|
|||
|
public bool IsEditingPanelLocation { get; set; }
|
|||
|
|
|||
|
public IntPtr WindowHandle { get; set; }
|
|||
|
|
|||
|
public PanelCoorOverlay(int panelIndex)
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
this.lblPanelIndex.Content = panelIndex;
|
|||
|
IsEditingPanelLocation = false;
|
|||
|
}
|
|||
|
|
|||
|
private void Window_MouseMove(object sender, System.Windows.Input.MouseEventArgs e)
|
|||
|
{
|
|||
|
if (IsEditingPanelLocation && e.LeftButton == System.Windows.Input.MouseButtonState.Pressed)
|
|||
|
{
|
|||
|
this.DragMove();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|