日期:2014-05-17 浏览次数:21202 次
IPropertySet propertySet = new PropertySetClass();
propertySet.SetProperty("server", this.textBox1.Text);
propertySet.SetProperty("instance", this.textBox2.Text);
propertySet.SetProperty("database", this.textBox3.Text);
propertySet.SetProperty("user", this.textBox4.Text);
propertySet.SetProperty("password", this.textBox5.Text);
sdeCon.ServerName = propertySet.GetProperty("server").ToString();
sdeCon.Instance = propertySet.GetProperty("instance").ToString();
sdeCon.UserName = propertySet.GetProperty("user").ToString();
sdeCon.Password = propertySet.GetProperty("password").ToString();
sdeCon.Database = propertySet.GetProperty("database").ToString();