mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
31 lines
718 B
C#
31 lines
718 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
using PersistentWindows.Common.WinApiBridge;
|
|
|
|
namespace PersistentWindows.Common
|
|
{
|
|
public partial class LayoutProfile : Form
|
|
{
|
|
public char snapshot_name;
|
|
|
|
public LayoutProfile()
|
|
{
|
|
User32.SetThreadDpiAwarenessContextSafe(User32.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void ProfileName_TextChanged(object sender, EventArgs e)
|
|
{
|
|
var str = ((TextBox)sender).Text;
|
|
snapshot_name = Char.ToLower(str[0]);
|
|
Close();
|
|
}
|
|
|
|
|
|
private void LayoutProfile_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|