示例#1
0
        /// <summary>
        /// Отобразить форму о программе, загрузив заставку и гиперссылку из файлов
        /// </summary>
        public static bool ShowAbout(string exeDir, out string errMsg)
        {
            if (frmAbout == null)
            {
                frmAbout = new FrmAbout();

                if (ScadaUtils.LoadAboutForm(exeDir + "About.jpg", exeDir + "About.txt",
                                             frmAbout, frmAbout.pictureBox, frmAbout.lblLink, out link, out errMsg))
                {
                    frmAbout.ShowDialog();
                    return(true);
                }
                else
                {
                    frmAbout = null;
                    return(false);
                }
            }
            else
            {
                frmAbout.ShowDialog();
                errMsg = "";
                return(true);
            }
        }
示例#2
0
        /// <summary>
        /// Отобразить форму о программе
        /// </summary>
        public static void ShowAbout(string exeDir, Log errLog)
        {
            if (exeDir == null)
                throw new ArgumentNullException("exeDir");
            if (errLog == null)
                throw new ArgumentNullException("errLog");

            if (frmAbout == null)
            {
                frmAbout = new FrmAbout();
                frmAbout.exeDir = exeDir;
                frmAbout.errLog = errLog;
            }
            frmAbout.ShowDialog();
        }
示例#3
0
文件: FrmAbout.cs 项目: Strongc/scada
        /// <summary>
        /// Отобразить форму о программе
        /// </summary>
        public static void ShowAbout(string exeDir, Log errLog)
        {
            if (exeDir == null)
            {
                throw new ArgumentNullException("exeDir");
            }
            if (errLog == null)
            {
                throw new ArgumentNullException("errLog");
            }

            if (frmAbout == null)
            {
                frmAbout        = new FrmAbout();
                frmAbout.exeDir = exeDir;
                frmAbout.errLog = errLog;
            }
            frmAbout.ShowDialog();
        }