Example #1
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n == -1)
            {
                return;
            }
            Mod.Modjob mod = MODs.jobs[n];
            try
            {
                Scripting.CompileCode(mod.script);
            }
            catch (Exception ex)
            {
                rtb2.Text = ex.Message;
            }
            rtb2.Text = "Compiled Successfully";
        }