2.In the left panel treeview I have a custom action verb called "Show"
which opens a propertypage.
In this propertypage I want to see the parent node from which I came.
I mean ..if the tree structure is
RootNode1
Application1
Application2
Application3
When I rightclick Application3 and click "Show"....a propertypage
pops-up...now in this propertypage I want to get the name
"Application3".
To pop-up propertypage I am using the standard sample provided by
MIcrosoft.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/setupsysadmin.asp
I am facing all this problems with left panel...with right panel
everything works fine.
2. You can pass the scopenode infor into the your PropertyPage object, such
as through an argument in the constructor ...
--
K. Qian [MSFT]
--
[This posting is provided 'as is' with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.]
<nishi...@gmail.com> wrote in message
news:1160568022.2...@e3g2000cwe.googlegroups.com...
break;
}
}
}
I have mailed you the SnapInpage.cs Code.....which is the main class
from where the SnapIn is initialized.I still cant refresh the SnapIn.I
am calling a helper class to delete the node from my custom database.
2.It worked out by sending the scopenode as an argument.
So now the only problem is refreshing after deleting anything from
anywmere.I want to refresh the rootnode ....whatver I delete from where
ever.
--
K. Qian [MSFT]
--
[This posting is provided 'as is' with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.]
"NISHIL" <nishi...@gmail.com> wrote in message
news:1160716552....@i3g2000cwc.googlegroups.com...
IS there any limitation while working with SnapIn and C#.
I had a tree structure like this in Left Panel.
Rootnode1
Application1
Application2
I have custom verb on rootnode1 as "Add Application",which opens up a
Propertypage.
In the "ok" event of propertypage I have following code which adds the
Application to the tree along with the verbs.....but the verbs are not
working fine.
ScopeNode objSNode = new ScopeNode();
objSNode.DisplayName = this.txtApplicationName.Text;
scopeNode.Children.Add(objSNode);
int AppCount = scopeNode.Children.Count;
MmcListViewDescription mmcListViewDescription = new
MmcListViewDescription();
mmcListViewDescription.DisplayName = "User List with
Properties";
mmcListViewDescription.ViewType = typeof(UserListView);
mmcListViewDescription.Options =
MmcListViewOptions.SingleSelect;
scopeNode.Children[AppCount-1].ViewDescriptions.Add(mmcListViewDescription);
scopeNode.Children[AppCount-1].ActionsPaneItems.Add(new
Action("Delete", "Deletes the Application", -1, "Delete"));
scopeNode.Children[AppCount-1].ActionsPaneItems.Add(new
Action("ADD Key Value Pair", "Adds Key Value Pair", -1,
"ADD_KeyValue"));
My problem is I can see the new node added...but can execute the
verb..."Delete","Add keyvalue pair".
While initialising the SnapIn I have the same code and it works
fine.How do I catch these verbs in Propertypages.
--
K. Qian [MSFT]
--
[This posting is provided 'as is' with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.]
"NISHIL" <nishi...@gmail.com> wrote in message
news:1161065876.3...@b28g2000cwb.googlegroups.com...
Regards,
NISHIL
http://biztalkblogs.com/nishil/default.aspx