Exemplo n.º 1
0
        //打开tomcat列表
        private void button7_Click(object sender, EventArgs e)
        {
            TomcatList fm = new TomcatList(); //新建一个窗口

            fm.Owner = this;
            this.Hide(); //隐藏现在这个窗口
            fm.Show();   //新窗口显现
        }
        //管理该服务器上的tomcat
        private void mangeTomcat(object sender, EventArgs e)
        {
            int        id         = int.Parse(this.listView1.SelectedItems[0].SubItems[0].Text);
            TomcatList tomcatList = new TomcatList();

            tomcatList.serverId = id;
            tomcatList.Show();
            tomcatList.Owner = this;
        }