mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
35 lines
809 B
C#
35 lines
809 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
using PersistentWindows.Common.WinApiBridge;
|
|
|
|
namespace PersistentWindows.Common
|
|
{
|
|
public partial class DbKeySelect : Form
|
|
{
|
|
public string result = "";
|
|
|
|
public DbKeySelect()
|
|
{
|
|
User32.SetThreadDpiAwarenessContextSafe();
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void InsertCollection(string collection)
|
|
{
|
|
ListLayout.Items.Add(collection);
|
|
}
|
|
|
|
private void Ok_Click(object sender, EventArgs e)
|
|
{
|
|
result = selected.Text;
|
|
Close();
|
|
}
|
|
|
|
private void ListLayout_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
selected.Text = ListLayout.SelectedItem.ToString();
|
|
}
|
|
}
|
|
}
|