private void btnStart_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtPort.Text) || string.IsNullOrEmpty(txtTomcatRootPath.Text)) { MessageBox.Show("请指定端口号和Tomcat根目录"); } MondrianService service = new MondrianService(); service.Start(txtTomcatRootPath.Text, txtJREExecuteFileName.Text, txtMondrianRootPath.Text, int.Parse(txtPort.Text)); }
private void btnStart_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(txtPort.Text) || string.IsNullOrEmpty(txtTomcatRootPath.Text)) { MessageBox.Show("请指定端口号和Tomcat根目录"); } MondrianService service = new MondrianService(); service.Start(txtTomcatRootPath.Text, txtJREExecuteFileName.Text, txtMondrianRootPath.Text, int.Parse(txtPort.Text)); }