Ejemplo n.º 1
0
 public MainWindowViewModel(NavigationService navigationService)
 {
     _postPage                  = new PostPage(MainWindowsCommands.ReadTemplate());
     _navigationService         = navigationService;
     ChangePage                 = new DelegateCommand();
     ChangePage.ExecuteCommand += new Action <object>(ChangePageCommand);
     _navigationService.Navigate(_postPage);
 }
 public MainWindowsViewModel()
 {
     _template = MainWindowsCommands.ReadTemplate();
     DownloadLinkCollection = new ObservableCollection <DownloadLinkItem>(MainWindowsCommands.GetDownloadLinkCollection());
     MoraLink                      = "";
     CertificationLink             = "";
     OutBody                       = "";
     OutTitle                      = "";
     ClearCommand                  = new DelegateCommand();
     CreateCommand                 = new DelegateCommand();
     ClearCommand.ExecuteCommand  += new Action <object>(_clearPage);
     CreateCommand.ExecuteCommand += new Action <object>(_create);
 }