Esempio n. 1
0
        public void FillRecord()
        {
            DB.Fill(SystemConfigDataSet.SystemConfig);

            if (MainDataTable.Rows.Count == 0)
                AddNewRecord();

            MainRow = MainDataTable.Rows[0] as SystemConfigDataSet.SystemConfigRow;
        }
Esempio n. 2
0
 public void AddNewRecord()
 {
     MainRow = SystemConfigDataSet.SystemConfig.NewSystemConfigRow();
     MainRow.ComName = "COM1";
     SystemConfigDataSet.SystemConfig.AddSystemConfigRow(MainRow);
 }