using DllEapEntity; using DllPubInfo; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace XqMainFrame { public partial class MainFrame : Form { public MainFrame() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { DllXqManager.TLcdQuery temp = new DllXqManager.TLcdQuery(); temp.Show(); } private void button2_Click(object sender, EventArgs e) { DllXqManager.TEntityQuery temp = new DllXqManager.TEntityQuery(); temp.Show(); } private void button3_Click(object sender, EventArgs e) { //Form1 temp = new Form1(); string str = Convert.ToString(254, 2); MessageBox.Show(str); } private void button4_Click(object sender, EventArgs e) { DllXqManager.Form1 temp = new DllXqManager.Form1(); temp.Show(); } private void button5_Click(object sender, EventArgs e) { //DllXqManager.Form2 temp = new DllXqManager.Form2(); //temp.Show(); //string errorinfo = ""; //int result = DllDataAcc.XqConsoleAcc.InsertMacStatus("0001", 1, ref errorinfo); //if(result>0) //{ // MessageBox.Show("插入成功。"); //} //else //{ // MessageBox.Show("操作失败"+errorinfo); //} } private void button6_Click(object sender, EventArgs e) { DllXqManager.LayoutMstQuery temp = new DllXqManager.LayoutMstQuery(); temp.Show(); } private void button8_Click(object sender, EventArgs e) { DllXqManager.MacStatusQuery temp = new DllXqManager.MacStatusQuery(); temp.Show(); } private void MainFrame_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("您确定要退出吗?", "询问", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.Cancel) { e.Cancel = true; return; } System.Environment.Exit(0); } private void MainFrame_Load(object sender, EventArgs e) { PubInfo.JsonConfigFolder = System.Configuration.ConfigurationManager.AppSettings["JsonConfigFolder"].ToString(); PubInfo.CurrJsonConfig = PubInfo.ReadJsonConfig(); PubInfo.CurrDbCode = PubInfo.GetSystemConfig().EapDbCode; PubInfo.CurrBaseUrl = PubInfo.GetSystemConfig().WebapiUrl; ////PubInfo.CurrBaseUrl = "http://localhost:18531"; //PubInfo.CurrBaseUrl = System.Configuration.ConfigurationManager.AppSettings["webapiurl"].ToString(); //PubInfo.ConfigPath = System.Configuration.ConfigurationManager.AppSettings["ConfigFilePath"].ToString(); } private void button9_Click(object sender, EventArgs e) { DllXqManager.StatusColor temp = new DllXqManager.StatusColor(); temp.Show(); } } }