public PARAMEditor(string filename) { InitializeComponent(); tbl = new DataTable(); tbl.Columns.Add(new DataColumn("Name") { ReadOnly = true }); tbl.Columns.Add(new DataColumn("Type") { ReadOnly = true }); tbl.Columns.Add("Value"); dataGridView1.DataSource = tbl; labelFile = labelDB.GetLabels(Path.GetFileNameWithoutExtension(filename)); openParam(filename); Edited = false; }
public ParamEditor(string filename) { InitializeComponent(); tbl = new DataTable(); tbl.Columns.Add(new DataColumn("Name") { ReadOnly = true }); tbl.Columns.Add(new DataColumn("Type") { ReadOnly = true }); tbl.Columns.Add("Value"); dataGridView1.DataSource = tbl; FilePath = filename; labels = IniLabels.GetLabels(Path.GetFileNameWithoutExtension(FilePath)); OpenParam(FilePath); Edited = false; }