public ExplorerForm() { InitializeComponent(); m_MexTree.ImageList = new ImageList(); m_MexTree.ImageList.Images.Add(Resources.Address); m_MexTree.ImageList.Images.Add(Resources.Binding); m_MexTree.ImageList.Images.Add(Resources.Contract); m_MexTree.ImageList.Images.Add(Resources.PieEndpoint); m_MexTree.ImageList.Images.Add(Resources.Operation); m_MexTree.ImageList.Images.Add(Resources.Service); m_MexTree.ImageList.Images.Add(Resources.ServiceError); m_MexTree.ImageList.Images.Add(Resources.AddressUnspecified); m_CurrentViewControl = m_BlankViewControl; m_Root = new ServiceNode(this,"Unspecified Base Address",AddressUnspecified,AddressUnspecified); m_MexTree.Nodes.Add(m_Root); }
public ExplorerForm() { InitializeComponent(); m_MexTree.ImageList = new ImageList(); m_MexTree.ImageList.Images.Add(Resources.Address); m_MexTree.ImageList.Images.Add(Resources.Binding); m_MexTree.ImageList.Images.Add(Resources.Contract); m_MexTree.ImageList.Images.Add(Resources.PieEndpoint); m_MexTree.ImageList.Images.Add(Resources.Operation); m_MexTree.ImageList.Images.Add(Resources.Service); m_MexTree.ImageList.Images.Add(Resources.ServiceError); m_MexTree.ImageList.Images.Add(Resources.AddressUnspecified); m_CurrentViewControl = m_BlankViewControl; m_Root = new ServiceNode(this, "Unspecified Base Address", AddressUnspecified, AddressUnspecified); m_MexTree.Nodes.Add(m_Root); }
public ExplorerForm() { m_SynchronizationContext = SynchronizationContext.Current; InitializeComponent(); m_MexTree.ImageList = new ImageList(); m_MexTree.ImageList.Images.Add(Resources.Address); m_MexTree.ImageList.Images.Add(Resources.Binding); m_MexTree.ImageList.Images.Add(Resources.Contract); m_MexTree.ImageList.Images.Add(Resources.PieEndpoint); m_MexTree.ImageList.Images.Add(Resources.Operation); m_MexTree.ImageList.Images.Add(Resources.Service); m_MexTree.ImageList.Images.Add(Resources.ServiceError); m_MexTree.ImageList.Images.Add(Resources.AddressUnspecified); m_CurrentViewControl = m_BlankViewControl; DisplayBlankControl(); m_AnnouncementSink = new AnnouncementSink <IMetadataExchange>(); m_AnnouncementSink.OnlineAnnouncementReceived += OnHelloNotice; m_AnnouncementSink.OfflineAnnouncementReceived += OnByeNotice; m_AnnouncementSink.Open(); }
void DiplayControl(NodeViewControl control) { m_CurrentViewControl.Visible = false; control.Visible = true; m_CurrentViewControl = control; }