Exemple #1
0
        private void buttonDelCloset_Click(object sender, EventArgs e)
        {
            string DC_building  = comboBoxBuilding3.Text.ToString();
            string DC_Floor     = comboBoxDelFloor3.Text.ToString();
            string DC_Closet    = comboBoxDelCloset3.Text.ToString();
            string DC_worder    = textBoxDelWorder3.Text.ToString();
            bool   VDC_building = Common.ValidadorCamposVacios(DC_building, "Building");
            bool   VDC_Floor    = Common.ValidadorCamposVacios(DC_Floor, "Floor");
            bool   VDC_Closet   = Common.ValidadorCamposVacios(DC_Closet, "Closet");
            bool   VDC_worder   = Common.ValidadorCamposVacios(DC_worder, "Work Order");

            if (VDC_building == true && VDC_Floor == true && VDC_Closet == true && VDC_worder == true)
            {
                Sentencias.Delete_all_closet(DC_building, DC_Floor, DC_Closet, DC_worder);
                labelDelClosetCheck.Text = "successful!";
            }
        }