示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //看进程是否在运行
            Process[] app = Process.GetProcessesByName("FireBridCloud");
            if (app.Length > 1)
            {
                MessageBox.Show("程序已启动!");
                return;
            }

            //if (!ConnetString.AccessExist())
            //{
            //    MessageBox.Show("没有安装Access数据库!");

            //    return;
            //}
            //FrmMain frm = new FrmMain();
            FrmWave frm = new FrmWave();

            //Sunisoft.IrisSkin.SkinEngine skin = new Sunisoft.IrisSkin.SkinEngine((System.ComponentModel.Component)frm);
            //skin.SkinFile = CommonConstString.sskPath; // 指定皮肤文件
            //skin.TitleFont = new System.Drawing.Font("微软雅黑", 10F);// 指定标题栏的Font。
            Application.Run(frm);
        }
示例#2
0
        /// <summary>
        /// 波动性分析按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnWave_Click(object sender, EventArgs e)
        {
            FrmWave frm = new FrmWave();

            frm.ShowDialog();
        }