コード例 #1
0
 public FullScreenWindow(ProtocolHostBase content)
 {
     Loaded += (sender, args) =>
     {
         this.Background = Brushes.Black;
         this.Content    = content;
     };
     content.Parent = this;
 }
コード例 #2
0
 public void SetProtocolHost(ProtocolHostBase content)
 {
     Debug.Assert(content != null);
     this.Content     = null;
     ProtocolHostBase = content;
     this.Title       = ProtocolHostBase.ProtocolServer.DispName + " - " + ProtocolHostBase.ProtocolServer.SubTitle;
     this.Icon        = ProtocolHostBase.ProtocolServer.IconImg;
     ProtocolHostBase.ParentWindow = this;
     if (IsLoaded)
     {
         this.Content = content;
     }
 }
コード例 #3
0
 public void AddProtocolHost(ProtocolHostBase protocol)
 {
     Debug.Assert(!_protocolHosts.ContainsKey(protocol.ConnectionId));
     _protocolHosts.Add(protocol.ConnectionId, protocol);
 }