mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-05 08:25:03 -05:00
values assumedly get updated every sunday, and only take effect when you restart the game (or pass over a time threshold?) stonks
29 lines
741 B
C#
29 lines
741 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace NHSE.WinForms
|
|
{
|
|
public partial class SingleObjectEditor<T> : Form where T : class
|
|
{
|
|
public SingleObjectEditor(T obj, PropertySort sort)
|
|
{
|
|
InitializeComponent();
|
|
DialogResult = DialogResult.Cancel;
|
|
PG_Item.PropertySort = sort;
|
|
PG_Item.SelectedObject = obj;
|
|
}
|
|
|
|
private void B_Cancel_Click(object sender, EventArgs e) => Close();
|
|
|
|
private void B_Save_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
|
|
private void PG_Item_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
|
|
{
|
|
}
|
|
}
|
|
}
|