예제 #1
0
        /// <summary>
        /// Default constructor. The ClientWindow is not a clone and will not subscribe automatically.
        /// </summary>
        public ClientWindow()
        {
            InitializeComponent();

            IsSubscribed    = false;
            IsChild         = false; // Not a child by default (i.e. is the parent)
            IsOriginalChild = true;  // For closing children

            // ITicker and IDrawClockFace implementations
            Client        = new TickerClient(new System.ServiceModel.InstanceContext(this), "WSDualHttpBinding_ITicker");
            DrawClockFace = new DrawByMEF().drawClockFace;
        }