Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }