Ejemplo n.º 1
0
        private void btn_start_server_Click(object sender, EventArgs e)
        {
            String[] words = PuppetMaster.splitInputBox(input_box.Text);


            PuppetMaster.cmdStartServer(words[0], words[1], words[2], Int32.Parse(words[3]), Int32.Parse(words[4]), 0);
        }
Ejemplo n.º 2
0
 private void tbMsg_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         PuppetMaster.read(tbMsg.Text);
         tbMsg.Text = "";
     }
 }
Ejemplo n.º 3
0
        private void btn_next_command_Click(object sender, EventArgs e)
        {
            string commands = file_box.Text;

            string[] delimiterChars = new string[] { "\r\n" };
            string[] lines          = commands.Split(delimiterChars, StringSplitOptions.None);


            PuppetMaster.readConsole(lines[i], 0);
            i++;
        }
Ejemplo n.º 4
0
        private void btn_run_command_Click(object sender, EventArgs e)
        {
            string commands = file_box.Text;

            string[] delimiterChars = new string[] { "\r\n" };
            string[] lines          = commands.Split(delimiterChars, StringSplitOptions.None);

            foreach (String line in lines)
            {
                PuppetMaster.readConsole(line, 0);
                System.Threading.Thread.Sleep(1000);
            }
        }
Ejemplo n.º 5
0
        private void btn_start_client_Click(object sender, EventArgs e)
        {
            string input = input_box.Text;

            char[] delimiterChars = { ' ', '\t' };


            string[] words = input.Split(delimiterChars);

            string path = "";

            //printPM(words.Length.ToString(), 0);
            if (words.Length > 6)
            {
                path = words[6];
            }
            PuppetMaster.cmdStartClient(words[0], words[1], words[2], Int32.Parse(words[3]), Int32.Parse(words[4]), path, 0);
        }
Ejemplo n.º 6
0
 private void btn_unfreeze_Click(object sender, EventArgs e)
 {
     PuppetMaster.cmdUnfreeze(input_box.Text, 0);
 }
Ejemplo n.º 7
0
 private void btn_wait_Click(object sender, EventArgs e)
 {
     PuppetMaster.cmdWait(Int32.Parse(input_box.Text), 0);
 }
Ejemplo n.º 8
0
 private void btn_crash_Click(object sender, EventArgs e)
 {
     PuppetMaster.cmdCrash(input_box.Text, 0);
 }
Ejemplo n.º 9
0
 private void btn_globalstate_Click(object sender, EventArgs e)
 {
     PuppetMaster.cmdGlobalStatus(0);
 }
Ejemplo n.º 10
0
 private void btn_localstate_Click(object sender, EventArgs e)
 {
     String[] words = PuppetMaster.splitInputBox(input_box.Text);
     PuppetMaster.cmdLocalState(words[0], Int32.Parse(words[1]), 0);
 }