예제 #1
0
파일: Program.cs 프로젝트: laeubisoft/pwiz
        private static bool InitRSettings()
        {
            if (Installations.FindRDirectory())
            {
                return(true);
            }

            var message = new StringBuilder();

            message.AppendLine(
                Resources.Program_SkylineBatch_requires_at_least_one_installation_of_R)
            .AppendLine(
                Resources.Program_Please_install_R_to_use_SkylineBatch);
            MessageBox.Show(message.ToString(), Resources.Program_Unable_To_Find_R,
                            MessageBoxButtons.OK, MessageBoxIcon.Error);
            return(false);
        }
예제 #2
0
파일: Program.cs 프로젝트: laeubisoft/pwiz
        private static bool InitSkylineSettings()
        {
            if (Installations.FindSkyline())
            {
                return(true);
            }

            var form = new FindSkyline();

            Application.Run(form);
            if (form.DialogResult == DialogResult.OK)
            {
                return(true);
            }

            MessageBox.Show(string.Format(Resources.Program_InitSkylineSettings__0__requires_Skyline_to_run_, AppName()), string.Format(Resources.Program_InitSkylineSettings__0__Error, AppName()), MessageBoxButtons.OK, MessageBoxIcon.Error);
            return(false);
        }