コード例 #1
0
ファイル: ExplorerForm.cs プロジェクト: spzenk/sfdocsamples
      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);
      }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: ExplorerForm.cs プロジェクト: mallickhruday/MyDemos
        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();
        }
コード例 #4
0
ファイル: ExplorerForm.cs プロジェクト: mallickhruday/MyDemos
 void DiplayControl(NodeViewControl control)
 {
     m_CurrentViewControl.Visible = false;
     control.Visible      = true;
     m_CurrentViewControl = control;
 }
コード例 #5
0
ファイル: ExplorerForm.cs プロジェクト: spzenk/sfdocsamples
 void DiplayControl(NodeViewControl control)
 {
    m_CurrentViewControl.Visible = false;
    control.Visible = true;
    m_CurrentViewControl = control;
 }