Esempio n. 1
0
        public void AddView(ClientView v)
        {
            ObservingClient oc = new ObservingClient();

            oc.unsubscribe = this.w.Subscribe(v);
            oc.cv          = v;

            views.Add(oc);
        }
Esempio n. 2
0
        public void RemoveView(ClientView v)
        {
            for (int i = 0; i < views.Count; i++)
            {
                ObservingClient currentOC = views[i];

                if (currentOC.cv == v)
                {
                    views.Remove(currentOC);
                    currentOC.unsubscribe.Dispose();
                }
            }
        }