예제 #1
0
 public FrmIniProperties(string database)
 {
     InitializeComponent();
     tlpProperties.SuspendLayout();
     AppSettingsReader _appReader = new AppSettingsReader();
     String dbPath = _appReader.GetValue("DataBasePath", typeof(System.String)).ToString();
     _ip = new IniProperties(dbPath, database);
     _keys=_ip.Keys;
     int i = 0;
     foreach (DictionaryEntry de in _keys)
     {
         i = addTableRow();
         Label lbl = new Label();
         lbl.Name = "lbl" + i.ToString();
         lbl.Text = (string)de.Key;
         lbl.Dock = DockStyle.Fill;
         TextBox tb = new TextBox();
         tb.Name = "tb" + i.ToString();
         tb.Text = (string)de.Value;
         tb.Dock = DockStyle.Fill;
         tlpProperties.Controls.Add(lbl, 0, i);
         tlpProperties.Controls.Add(tb, 1, i);
     }
     i = addTableRow();
     btnCancel.Dock = DockStyle.Right;
     tlpProperties.Controls.Add(btnCancel, 0, i);
     tlpProperties.Controls.Add(btnSave, 1, i);
     tlpProperties.ResumeLayout();
 }
예제 #2
0
 public CutInCol(DataBase db)
 {
     //récupération du chemin vers l'exécutable
     IniProperties ip = new IniProperties(db.IniPropertiesPath);
     _cutInColPath = ip.Keys["aq-tools"].ToString();
     _iniPropertiesPath = db.IniPropertiesPath;
 }
예제 #3
0
 public SelectRequest(string cfgPath, string database, int nbRecordsToPrint)
 {
     _cfgPath = cfgPath;
     _ip = new IniProperties(_cfgPath, database);
     _tmpFolder = _ip.Keys["tmp-folder"].ToString();
     _rootFolder = _ip.Keys["root-folder"].ToString();
     _nbRecordsToPrint = nbRecordsToPrint;
     _nbRecords = 0;
 }