Пример #1
0
        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;
        }
Пример #2
0
        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;
        }