Ejemplo n.º 1
0
        private void btn_Launch_Click(object sender, EventArgs e)
        {
            try
            {
                if (checkBox2.Checked == true)
                {
                    this.WindowState = FormWindowState.Minimized;
                }

                FileHandler f = new FileHandler();
                Process     p = new Process();
                if (checkBox1.Checked == true)
                {
                    p.StartInfo.FileName    = vscPath;
                    p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
                    p.Start();
                }
                else
                {
                    p.StartInfo.FileName    = winpyPath + @"\WinPython Interpreter.exe";
                    p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
                    p.Start();
                }
                Thread.Sleep(1000);
                //MessageBox.Show("※주의※ Mython 실행 시 서버를 종료하면 안됩니다.", "서버 실행 중", MessageBoxButtons.OK, MessageBoxIcon.Information);
                f.Cmd(serverCMD);
                Thread.Sleep(1000);
                //MessageBox.Show("Minecraft 실행 중", "안내", MessageBoxButtons.OK, MessageBoxIcon.Information);
                f.Cmd(mcCMD);
            }
            catch (Win32Exception win32)
            {
                MessageBox.Show("파일 재설치 후 다시 시도해주세요.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
        private void btn_mc_Click(object sender, EventArgs e)
        {
            FileHandler f = new FileHandler();

            f.Cmd(mcCMD);
        }
Ejemplo n.º 3
0
        private void btn_server_Click(object sender, EventArgs e)
        {
            FileHandler f = new FileHandler();

            f.Cmd(serverCMD);
        }