예제 #1
0
파일: Mform.cs 프로젝트: ShadowImmor/PP
 public Mform()
 {
     InitializeComponent();
     this.dataGridView.CellMouseDoubleClick += DataGridView_DoubleClick;
     DataAI                  = new ListAnime();
     this.DataAI.AnimeI      = this.DataAI.getlist();
     dataGridView.DataSource = DataAI.AnimeI;
     dataGridView.ReadOnly   = true;
     setColumns();
 }
예제 #2
0
        public IActionResult Index()
        {
            var anime = new List <Anime>
            {
                new Anime {
                    name = "naruto"
                },
                new Anime {
                    name = "one piece"
                }
            };

            var view = new ListAnime {
                Anime = anime
            };

            return(View(view));
        }