Example #1
0
        public editTome(int idTome)
        {
            InitializeComponent();

            leTome = DaoTome.ReadOneId(idTome);

            refreshForm();
        }
Example #2
0
        private void editMangaBtn_Click(object sender, EventArgs e)
        {
            Tome monTome = new Tome();

            monTome.IdTome      = leTome.IdTome;
            monTome.NumeroTome  = Convert.ToUInt16(MtxNumTome.Text);
            monTome.TitreTome   = MtxTitreTome.Text;
            monTome.ResumerTome = MtxSysnopsisTome.Text;
            //monTome.ImageTome = AddImageBtn.Text;
            monTome.DateAchatTome = DateAchatDt.Value;
            DaoTome.editTome(monTome);
            readAllTome AccueilForm = new readAllTome();

            AccueilForm.Show();
            this.Close();
        }
Example #3
0
        private void createTomeBtn_Click(object sender, EventArgs e)
        {
            Tome leTome = new Tome();

            leTome.NumeroTome    = Convert.ToUInt16(MtxnumTome.Text);
            leTome.TitreTome     = MtxTitreTome.Text;
            leTome.ResumerTome   = mtxSysnopsisTome.Text;
            leTome.DateAchatTome = DateAcahtDt.Value;
            //leTome.ImageManga = AddImageBtn.Text;
            //leTome.SelectionManga = SelectionManga(); TODO liƩ a un manga
            DaoTome.create(leTome);
            Form1 AccueilForm = new Form1();

            AccueilForm.Show();
            this.Close();
        }