NHSE/NHSE.WinForms/Subforms/SingleObjectEditor.cs
Kurt 0ec40f3b55 Categorize stalk market properties
update other usages so we can turn off the help box at the bottom of the propertygrid
2020-05-03 19:43:10 -07:00

32 lines
880 B
C#

using System;
using System.Windows.Forms;
using NHSE.Core;
namespace NHSE.WinForms
{
public partial class SingleObjectEditor<T> : Form where T : class
{
public SingleObjectEditor(T obj, PropertySort sort, bool showHelp)
{
InitializeComponent();
this.TranslateInterface(GameInfo.CurrentLanguage);
DialogResult = DialogResult.Cancel;
PG_Item.HelpVisible = showHelp;
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)
{
}
}
}