Exemple #1
0
        protected void OnSpecificationAttributeOptionsDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int saoID = (int)grdSpecificationAttributeOptions.DataKeys[e.RowIndex]["SpecificationAttributeOptionID"];
            SpecificationAttributeOption sao = SpecificationAttributeManager.GetSpecificationAttributeOptionByID(saoID);

            if (sao != null)
            {
                SpecificationAttributeManager.DeleteSpecificationAttributeOption(sao.SpecificationAttributeOptionID);
                string paletteFolderPath = Server.MapPath("~/images/palette/");
                ColorManager.DeleteColor(sao.Name, paletteFolderPath);
                BindData();
            }
        }
Exemple #2
0
        private static void RenkSilmeTesti()
        {
            NColor color = new NColor();

            color.ColorName = "SİLİNECEK OLAN RENK";
            ColorManager colorManager = new ColorManager(new EfColorDAL());

            colorManager.AddColor(color);
            ColorTest();
            Console.WriteLine("----SİLME İŞLEMİ DEVREYE SOKULUYOR---");
            colorManager.DeleteColor(color);
            ColorTest();
        }
Exemple #3
0
        private static void DeleteColor(NColor color)
        {
            ColorManager colorManager = new ColorManager(new EfColorDAL());

            colorManager.DeleteColor(color);
        }
 public void Delete()
 {
     colorManager.DeleteColor(color);
 }