Esempio n. 1
0
        private void OpenSearch()
        {
            DialogService  ms      = new DialogService("OpenImport", DateTime.Now);
            var            message = new NotificationMessage <DialogService>(this, ms, "ImportOption");
            ImportMenuView menu    = new ImportMenuView();

            Messenger.Default.Send(message);
            _navigationService.OpenUI(menu);
        }
Esempio n. 2
0
        private void OpenAdd()
        {
            // string key = "OpenAdd";
            DialogService ms = new DialogService("OpenAdd", DateTime.Now);
            // var MainMenu=SimpleIoc.Default.GetInstance<MainMenuViewModel>();

            //  MainMenu menu=SimpleIoc.Default.GetInstance<MainMenu>();


            var message = new NotificationMessage <DialogService>(this, ms, "ImportOption");
            //  INavigationDataService openmenu = new NavigationDataService();
            //  openmenu.NavigateTo(new Uri("/Views/MainMenu.xaml",UriKind.Relative));
            //  var menu = SimpleIoc.Default.GetInstance<MainMenuViewModel>();
            ImportMenuView menu = new ImportMenuView();

            Messenger.Default.Send(message);

            _navigationService.OpenUI(menu);
        }