using System;
using System.Drawing;
using System.Collections;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Configuration;
using System.Windows.Forms;
using System.Data;
namespace DataLibrary
{
/// <summary>
/// 配置管理
/// </summary>
public class DisposalConduct : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.Windows.Forms.Button closeButton;
private System.ComponentModel.Container components = null;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label5;
private DisposalConductService DisposalConductService1;
/// <summary>
/// 配置管理
/// </summary>
public DisposalConduct()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
string SystemDir=System.Environment.SystemDirectory;
DisposalConductService1= new DisposalConductService(SystemDir+"\\CBERP_Dis.DLL") ;
this.textBox1.Text=DisposalConductService1.GetValue("ServerName","(local)").ToString();
this.textBox2.Text=DisposalConductService1.GetValue("SqlAccount","sa").ToString();
this.textBox3.Text=DisposalConductService1.GetValue("Password","jiayu520").ToString();
this.textBox5.Text=this.textBox3.Text;
this.textBox4.Text=DisposalConductService1.GetValue("DataBase","CBERP").ToString();
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region 设计界面生成代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.closeButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.textBox5 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// closeButton
//
this.closeButton.Location = new System.Drawing.Point(277, 92);
this.closeButton.Name = "closeButton";
this.closeButton.Size = new System.Drawing.Size(66, 25);
this.closeButton.TabIndex = 7;
this.closeButton.Text = "关闭";
this.closeButton.Click += new System.EventHandler(this.closeButton_C