Jump to content

Recommended Posts

Posted

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!

Thanks,

Ollie

  • Administrators
Posted

Hello,

I've created an example based on your code to see how creating dinamic pages can be done by using a List's index. On more complex plugins you can see that I've used a number to contain multiple ids that fit my needs (check my StoreGrid plugin).

If you have any questions please let me know!

Good Luck :lol: ,

Paul.

ServiceViewPlugin.zip

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...