Esempio n. 1
0
        private void OpenVMPButton_Click(object sender, RoutedEventArgs e)
        {
            OpenPageDelegate deleg = OpenPage;

            MainFrame.Navigate(new OpenVMPView(deleg));
            SetDefaultMenuStyle();
        }
Esempio n. 2
0
        public OpenVMPView(OpenPageDelegate sender)
        {
            InitializeComponent();
            deleg = sender;
            OpenVMPViewModel view = new OpenVMPViewModel();

            this.DataContext = view;
            if (view.CloseAction == null)
            {
                view.CloseAction = new Action(this.CloseAct);
            }
        }