Basically I'm trying to make (for now) just a services viewer app!
I have some success with:
public override Groups GetAdditionalComputerDetails()
{
Groups container = new Groups(); // Group of "Group" types.
Group mainGroup = new Group("Services"); // Group of "SimpleItem" / "CommandItem" / "PageItem" with the title Simple Plugin.
ServiceController[] services = ServiceController.GetServices();
foreach (ServiceController service in services)
{
SimpleItem thisitem = new SimpleItem(service.DisplayName.ToString() + ":", service.Status.ToString());
mainGroup.Items.Add(thisitem);
}
container.Add(mainGroup); // Adding the mainGroup Group to Groups container.
return container; // Returning our Groups container to Mobile PC Monitor.
}
However, this obviously fills the plugin section when viewing. I really cant work how to get a sub page!
I have;
title (Services)
-
[*]service 1
[*]service 2
[*]etc...
I want;
title (Servers)
-
one page (View/change services)
-
[*]service 1
[*]service 2
[*]etc...
If anyone can help me understand, would be brilliant!
Basically I'm trying to make (for now) just a services viewer app!
I have some success with:
If anyone can help me understand, would be brilliant!
Thanks,
Ollie