Esempio n. 1
0
        public void Execute(object parameter)
        {
            ViewModelEvents vme = new ViewModelEvents();

            vme.OpenNewFile();
            Console.WriteLine("Into the barrel and drink what we find!");
            Console.WriteLine(parameter.ToString());
        }
Esempio n. 2
0
        public bool ProcessKey(FileAction key)
        {
            if (key == FileAction.OpenFile)
            {
                ViewModelEvents events = new ViewModelEvents();
                events.OpenNewFile();
                return(true);
            }

            return(next.ProcessKey(key));
        }