Exemplo n.º 1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            MyClients.TabControlMain = this.tabControlMain;
            MyClients.FrmMain        = this;

            UserControl ctr = new ucWinServiceMgr();

            tabWinServiceMgr.Controls.Add(ctr);

            Task.Factory.StartNew(LoopToReadServiceStatus);
        }
Exemplo n.º 2
0
        private void window服务ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool flag = false;

            foreach (var item in tabWinServiceMgr.Controls)
            {
                if (item is ucWinServiceMgr)
                {
                    flag = true;
                }
            }
            if (!flag)
            {
                UserControl ctr = new ucWinServiceMgr();
                tabWinServiceMgr.Controls.Add(ctr);
            }
        }
Exemplo n.º 3
0
 private void window服务ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     bool flag = false;
     foreach (var item in tabWinServiceMgr.Controls)
     {
         if (item is ucWinServiceMgr)
         {
             flag = true;
         }
     }
     if (!flag)
     {
         UserControl ctr = new ucWinServiceMgr();
         tabWinServiceMgr.Controls.Add(ctr);
     }
 }
Exemplo n.º 4
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            MyClients.TabControlMain = this.tabControlMain;
            MyClients.FrmMain = this;

            UserControl ctr = new ucWinServiceMgr();
            tabWinServiceMgr.Controls.Add(ctr);

            Task.Factory.StartNew(LoopToReadServiceStatus);
        }