Exemple #1
0
        private void validate_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrWhiteSpace(coreLocation.Text))
            {
                MessageBox.Show("Please enter a mod location before clicking Validate.", "Error", MessageBoxButtons.OK);
                return;
            }
            else if (!Directory.Exists(coreLocation.Text))
            {
                MessageBox.Show("Directory was not found.", "Error", MessageBoxButtons.OK);
                return;
            }

            try
            {
                CoreValidator v      = new CoreValidator(coreLocation.Text);
                var           result = v.Validate();

                output.Clear();

                WriteErrors(result);
            }
            catch (Exception ex)
            {
                ShowException(ex);
            }

            Console.Beep();
        }