CapDemo.GUI.EditCatalogue.Editcatalogue C# (CSharp) Méthode

Editcatalogue() public méthode

public Editcatalogue ( ) : void
Résultat void
        public void Editcatalogue()
        {
            if (txt_NameCatalogue.Text.Trim() == "")
            {
                MessageBox.Show("Vui lòng nhập tên chủ đề!", "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                CatalogueBL CatBL = new CatalogueBL();
                Catalogue Cat = new Catalogue();
                Cat.IDCatalogue = IDCat;
                Cat.NameCatalogue = txt_NameCatalogue.Text.Trim();
                if (CatBL.EditCataloguebyID(Cat) == true)
                {
                    //notifyIcon1.Icon = SystemIcons.Information;
                    //notifyIcon1.BalloonTipText = "Chỉnh sửa chủ đề thành công";
                    //notifyIcon1.ShowBalloonTip(1000);
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Chủ đề này đã tồn tại trong hệ thống!", "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
        }