Exemple #1
0
        /// <summary>
        /// Creates a new instance of DeviceInformation.
        /// </summary>
        /// <param name="viewModel">The data context for the dialog.</param>
        /// <returns>A new instance of the DeviceInformation dialog.</returns>
        public static DeviceInformation Create(INTV.LtoFlash.ViewModel.LtoFlashViewModel viewModel)
        {
            var controller = new INTV.LtoFlash.View.DeviceInformationController(viewModel);

            controller.Window.Controller = controller;
            return(controller.Window);
        }
 private void Initialize()
 {
     _title   = Resources.Strings.MainWindowTitle;
     _romList = new RomListViewModel();
     _romList.PropertyChanged           += HandleRomListViewModelPropertyChanged;
     _ltoFlashViewModel                  = new INTV.LtoFlash.ViewModel.LtoFlashViewModel();
     _ltoFlashViewModel.PropertyChanged += HandleLtoFlashViewModelPropertyChanged;
     _romList.CollectionChanged         += HandleRomListChanged;
     this.DoImport();
     DefaultSelectedRomCommand = INTV.LtoFlash.Commands.DownloadCommandGroup.DownloadAndPlayCommand;
 }