コード例 #1
0
        /// <summary>
        /// Checks if all system files exists
        /// </summary>
        /// <returns>True - if all files exists</returns>
        public static bool CheckSystemFiles()
        {
            string[] files = new string[] { "Core.dll", "Classes.dll", "Interfaces.dll", "Resources.dll", "Parser.dll" };
            for (int i = 0; i < files.Length; i++)
            {
                if (!IOHelper.CheckFileExists(files[i]))
                {
                    WinHelper.MessageBox(string.Format("Library {0} not found!", files[i]), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return(false);
                }
            }

            return(true);
        }
コード例 #2
0
ファイル: Helper.cs プロジェクト: UmaxSoftWorks/UDS2
        /// <summary>
        /// Checks if all system files exists
        /// </summary>
        /// <returns>True - if all files exists</returns>
        public static bool CheckSystemFiles()
        {
            string[] files = new string[] { "Core.dll", "Classes.dll", "Images.dll", "Interfaces.dll", "Resources.dll", "Tasks.dll", "Text.dll", "Tokens.dll", "UI.dll", "Windows.dll" };
            for (int i = 0; i < files.Length; i++)
            {
                if (!IOHelper.CheckFileExists(files[i]))
                {
                    if (!GuiOptions.Instanse.QuietStart)
                    {
                        WinHelper.MessageBox(string.Format("Library {0} not found!", files[i]), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }

                    return(false);
                }
            }

            return(true);
        }