| | |
| | | { |
| | | Application.EnableVisualStyles(); |
| | | Application.SetCompatibleTextRenderingDefault(false); |
| | | Application.Run(new DingDing_autoGetData()); |
| | | //Application.Run(new DingDing_autoGetData()); |
| | | |
| | | |
| | | //DBUtility.ClsPub.AppPath = System.Environment.CurrentDirectory; |
| | | //Pub_Class.ClsPub.AppPath = System.Environment.CurrentDirectory; |
| | | //Pub_Class.ClsPub.SetIPAddress(); |
| | | //DBUtility.ClsPub.SetIPAddress(); |
| | | //DBUtility.ClsPub.VersionNum = "12.1"; |
| | | //Pub_Class.ClsPub.VersionNum = "12.1";// |
| | | ////=================================================================== |
| | | //try |
| | | //{ |
| | | // if (DBUtility.ClsPub.CheckUpdate()) |
| | | // { |
| | | // MessageBox.Show("发现最新版本,需要更新!"); |
| | | // string strFileName = DBUtility.ClsPub.AppPath + @"\HX_Update.exe"; |
| | | // System.Diagnostics.Process.Start(strFileName); |
| | | // Application.Exit(); |
| | | // return; |
| | | // } |
| | | // else |
| | | // { |
| | | // //============================================ |
| | | // BLL.FrmLogin frmlg = new BLL.FrmLogin(); |
| | | // frmlg.ShowDialog(); |
| | | // if (frmlg.isOk) |
| | | // { |
| | | // MDIMain MainFrm = new MDIMain(); |
| | | // Application.Run(MainFrm); |
| | | // } |
| | | // } |
| | | //} |
| | | //catch (Exception e) |
| | | //{ |
| | | // MessageBox.Show(e.Message); |
| | | // Application.Exit(); |
| | | // return; |
| | | //} |
| | | DBUtility.ClsPub.AppPath = System.Environment.CurrentDirectory; |
| | | Pub_Class.ClsPub.AppPath = System.Environment.CurrentDirectory; |
| | | Pub_Class.ClsPub.SetIPAddress(); |
| | | DBUtility.ClsPub.SetIPAddress(); |
| | | DBUtility.ClsPub.VersionNum = "12.1"; |
| | | Pub_Class.ClsPub.VersionNum = "12.1";// |
| | | //=================================================================== |
| | | try |
| | | { |
| | | if (DBUtility.ClsPub.CheckUpdate()) |
| | | { |
| | | MessageBox.Show("发现最新版本,需要更新!"); |
| | | string strFileName = DBUtility.ClsPub.AppPath + @"\HX_Update.exe"; |
| | | System.Diagnostics.Process.Start(strFileName); |
| | | Application.Exit(); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | //============================================ |
| | | BLL.FrmLogin frmlg = new BLL.FrmLogin(); |
| | | frmlg.ShowDialog(); |
| | | if (frmlg.isOk) |
| | | { |
| | | MDIMain MainFrm = new MDIMain(); |
| | | Application.Run(MainFrm); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | MessageBox.Show(e.Message); |
| | | Application.Exit(); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |