Exemple #1
0
        private void 设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormSetting form = new FormSetting();

            form.setSettingEvent   += form_setSettingEvent;
            form.setConnectEvent   += form_setConnectEventAfterOpen;
            form.setRemoteDbEvent  += form_setRemoteDbEvent;
            form.setZxXmlPathEvent += form_setZxXmlPathEvent;
            form.ShowDialog();
        }
Exemple #2
0
 private string zxXmlPath;        //上传中心的xml目录
 public FormMain()
 {
     thisConn = CDBOperate.GetConnection();
     if (CDBOperate.TryConnect(thisConn))
     {
         InitializeComponent();
     }
     else
     {
         FormSetting form = new FormSetting();
         form.setConnectEvent += form_setConnectEvent;
         form.setSettingEvent += form_setSettingEvent;
         form.ShowDialog();
     }
 }