Example #1
0
        private async Task SaveAtmosphereLayeredFs()
        {
            var dialog = new OpenFolderDialog
            {
                Title = Properties.Resources.ViewModels_Rtdx_Tutorial_CustomizeRomViewModel_LayeredFsOpenFolderDialogTitle
            };

            var path = await dialog.ShowAsync(Application.Current.GetMainWindowOrThrow());

            if (!string.IsNullOrEmpty(path))
            {
                var fullPath = Path.Combine(path, "atmosphere", "contents", "01003D200BAA2000");
                RomViewModel.Save(fullPath);
                mainWindow.OpenFile(new FinishedViewModel(this.mainWindow), true);
            }
        }
Example #2
0
        // GET: ROM
        public ActionResult Index()
        {
            dtbs15Entities db = new dtbs15Entities();

            var ca = db.ROMs.ToList();
            List <RomViewModel> bc = new List <RomViewModel>();

            foreach (var c in ca)
            {
                RomViewModel b = new RomViewModel();

                b.rid      = c.id;
                b.Capacity = c.ROM1;
                bc.Add(b);
            }
            return(View(bc));
        }