Beispiel #1
0
        private void toolStripButton_xmlReader_Click(object sender, EventArgs e)
        {
            canCtrl_S = true;
            DateTime timeStart = DateTime.Now;

            Support.Constructor.CreateXml cx = new Support.Constructor.CreateXml();
            this.textBox_codeZone.Text = cx.GenerateXmlReader();
            if (this.toolStripButton_createFile.Tag.ToString() == "1")
            {
                SaveFile(Settings.Default.CreateFilePath, "XmlReader.xml");
            }
            currentOperate = "xmlReader";

            this.toolStripStatusLabel_statusInfo.Text = "Time spend " + Time.TimeSpend.Spend(timeStart);
        }
Beispiel #2
0
        private void toolStripButton_CreateXml_Click(object sender, EventArgs e)
        {
            if (this.treeView_dbInfo.SelectedNode == null)
            {
                return;
            }
            canCtrl_S = true;
            DateTime timeStart = DateTime.Now;

            Support.Constructor.CreateXml cx = new Support.Constructor.CreateXml();
            this.textBox_codeZone.Text = cx.GenerateQueryXml(Support.DataBaseHandler.Select.GetDBInfo("GetAllTableAndView"));
            if (this.toolStripButton_createFile.Tag.ToString() == "1")
            {
                SaveFile(Settings.Default.CreateFilePath + "\\SQL", "Query.xml");
            }
            currentOperate = "xml";

            this.toolStripStatusLabel_statusInfo.Text = "Time spend " + Time.TimeSpend.Spend(timeStart);
        }