Ejemplo n.º 1
0
 public void InitModifyDataBase(XmlDocument doc, string path, XmlElement dbElement, CDataBaseInfo dainfo, ComboBox box)
 {
     dbOpeType                 = DBOpeType.Modify;
     dbDoc                     = doc;
     this.path                 = path;
     dataBaseElement           = dbElement;
     database                  = dainfo;
     combox                    = box;
     textBoxAddress.Text       = database.address;
     textBoxDataBaseName.Text  = database.databaseName;
     textBoxPassword.Text      = database.password;
     textBoxPort.Text          = database.port;
     textBoxTitle.Text         = database.title;
     textBoxUserName.Text      = database.userName;
     textBoxVerTableName.Text  = database.versionTableName;
     textBoxVerTableField.Text = database.versionTableField;
     textBoxVerValue.Text      = database.versionValueField;
     textBoxVerDesc.Text       = database.versionDescField;
     tbLocalPosition.Text      = database.localPositionPath;
     for (int i = 0; i < combox.Items.Count; i++)
     {
         if (combox.Items[i].ToString() == database.dbType)
         {
             combox.SelectedIndex = i;
         }
     }
 }
Ejemplo n.º 2
0
 public void InitAddDataBase(XmlDocument doc, string path, XmlElement parent, ref List <CDataBaseInfo> databaseList, ComboBox box)
 {
     dbOpeType     = DBOpeType.ADD;
     dbDoc         = doc;
     parentElement = parent;
     dbList        = databaseList;
     this.path     = path;
     combox        = box;
 }