public void LoadServersMenuItem()
 {
     while (serversItem.MenuItems[0] != enableAllServerItem)
     {
         serversItem.MenuItems.RemoveAt(0);
     }
     for (int i = 0, n = Configuration.Servers.Count; i < n; i++)
     {
         Server   mServer     = Configuration.Servers[i];
         MenuItem mServerItem = new MenuItem(mServer.Name, new EventHandler(serverItem_Click));
         mServerItem.Tag     = mServer;
         mServerItem.Checked = mProcessCtler.CheckKcptunRunning(mServer.Name);
         serversItem.MenuItems.Add(i, mServerItem);
     }
 }
 public void LoadServersMenuItem()
 {
     while (_serversItem.MenuItems[0] != _enableAllServerItem)
     {
         _serversItem.MenuItems.RemoveAt(0);
     }
     for (int i = 0, n = Configuration.Servers.Count; i < n; i++)
     {
         Server   mServer     = Configuration.Servers[i];
         MenuItem mServerItem = new MenuItem(mServer.Name, serverItem_Click)
         {
             Tag     = mServer,
             Checked = _processCtler.CheckKcptunRunning(mServer.Name)
         };
         _serversItem.MenuItems.Add(i, mServerItem);
     }
     UpdateNotificationText();
 }