Exemplo n.º 1
0
        public FrmData(FrmStart frm)
        {
            this.m_FrmStart = frm;
            this.InitializeComponent();
            string pdmConn = frm.GetPdmConn();

            switch (frm.MyDataType)
            {
            case DataType.PowerDesigner:
                if (!string.IsNullOrWhiteSpace(pdmConn))
                {
                    this.txbPDM.Text = pdmConn.Split(',')[0];
                    break;
                }
                break;

            case DataType.MSSQLSRV2008:
            case DataType.MSSQLSRV2005:
                this.tabControl1.SelectedTab = this.tabControl1.TabPages["tabPage2"];
                if (!string.IsNullOrWhiteSpace(pdmConn))
                {
                    this.txbServer.Text = pdmConn.Split(';')[1].Split('=')[1];
                    break;
                }
                break;
            }
            this.comboBoxVa.SelectedIndex = 0;
            this.btnSQLServer.Enabled     = false;
            this.comboBoxDatabase.Enabled = false;
            if (!BaseBusiness.IsNotDefault())
            {
                return;
            }
            this.LoadUIText();
        }
Exemplo n.º 2
0
        public FrmSystemSet(FrmStart frm)
        {
            this.m_FrmStart = frm;
            this.InitializeComponent();
            string str = Common.Read(this.m_SystemConfig);

            if (!string.IsNullOrWhiteSpace(str))
            {
                string[] strArray = str.Split(',');
                if (strArray != null && strArray.Length > 2)
                {
                    if (strArray[0] == "n")
                    {
                        this.radioButton1.Checked = false;
                        this.radioButton2.Checked = true;
                    }
                    this.txbMuDiDI.Text    = strArray[1];
                    this.txbNameSpace.Text = strArray[2];
                }
            }
            if (!BaseBusiness.IsNotDefault())
            {
                return;
            }
            this.LoadUIText();
        }
Exemplo n.º 3
0
 public FrmLogin(FrmStart frm)
 {
     this.m_FrmStart = frm;
     this.InitializeComponent();
     if (!BaseBusiness.IsNotDefault())
     {
         return;
     }
     this.LoadUIText();
 }