Ejemplo n.º 1
0
        public GridViewModel( WindowViewModel window )
        {
            _window = window;
            var m = new PanelViewModel( this );
            _panels.Push( m );

            _timer.Tick += delegate( object s, EventArgs args )
            {
                if( Current != null )
                    Current.Switch();
                else
                    _timer.Stop();
            };
            _timer.Interval = new TimeSpan( 0, 0, 0, 0, Int32.Parse( ConfigurationManager.AppSettings["TimeToSwitch"] ) );
        }
Ejemplo n.º 2
0
 private void CreateFirstGrid( MainWindow w, WindowViewModel wdc, bool onlyOneMode = false )
 {
     Grid myGrid = w.MainWindowGrid;
     myGrid.Children.Add( wdc.Enter( onlyOneMode ) );
     wdc.GridOwned.ExitNode += ExitGridNode;
 }