예제 #1
0
파일: Form1.cs 프로젝트: v0icer/poltools
        private void BTN_RunTests_Click(object sender, EventArgs e)
        {
            TB_RunTests.Text    = "";
            Cursor              = Cursors.WaitCursor;
            ProgressBar.Minimum = 0;
            ProgressBar.Maximum = 5;
            ProgressBar.Visible = true;
            ProgressBar.Step    = 1;

            TB_RunTests.Text += "Analyzing setup in '" + Settings.Global.Properties["POLPath"] + "'" + Environment.NewLine;
            POLChecks.RealmChecks(ref TB_RunTests, ref ProgressBar);
            POLChecks.ScriptChecks(ref TB_RunTests, ref ProgressBar);

            Cursor = Cursors.Default;
            ProgressBar.Visible = false;
            ProgressBar.Value   = 0;
        }
예제 #2
0
파일: Form1.cs 프로젝트: v0icer/poltools
        private void BTN_ECompile_Click(object sender, EventArgs e)
        {
            if (this.Process_ECompile != null)
            {                                                  // already running
                MessageBox.Show("ECompile's already running"); // How?!
                return;
            }

            string exepath = Settings.Global.Properties["ECompileExePath"];
            string dirpath = Settings.Global.Properties["POLPath"];

            if (!File.Exists(exepath))
            {
                MessageBox.Show("File does not exist in EcompileExePath!");
                return;
            }
            if (!Directory.Exists(dirpath))
            {
                dirpath = Path.GetDirectoryName(exepath);
            }

            POLChecks.ScriptCounts();

            this.Process_ECompile = new MyConsole();
            this.Process_ECompile.Start(Path.GetFullPath(exepath), Path.GetFullPath(dirpath), "-A -b -f");
            this.Process_ECompile.Exited             += new EventHandler(Process_ECompile_Exited);
            this.Process_ECompile.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(Process_ECompile_OutputDataReceived);

            TB_ECompile.Text     = String.Empty;
            BTN_ECompile.Enabled = false;
            Cursor = Cursors.WaitCursor;
            ProgressBar.Minimum = 0;
            ProgressBar.Maximum = 1;
            ProgressBar.Visible = true;
            ProgressBar.Step    = 1;
            TB_ECompile.Text    = "Ecompile Process Started for " + POLChecks.ScriptCount["SRC"] + " Scripts... This May Take A While...." + System.Environment.NewLine + System.Environment.NewLine;
        }