This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
CC-Clicker/CC-Clicker 2.0/LocForm.cs
2020-03-11 18:53:32 +01:00

26 lines
732 B
C#

using System;
using System.Windows.Forms;
using CC_Functions.W32;
namespace CC_Clicker_2._0
{
public partial class LocForm : Form
{
private bool _close;
public int X;
public int Y;
public LocForm() => InitializeComponent();
private void LocForm_FormClosing(object sender, FormClosingEventArgs e) => e.Cancel = !_close;
private void LocForm_MouseClick(object sender, MouseEventArgs e)
{
X = Cursor.Position.X;
Y = Cursor.Position.Y;
_close = true;
DialogResult = DialogResult.OK;
Close();
}
private void LocForm_Load(object sender, EventArgs e) => this.GetWnd32().Overlay = true;
}
}