Exemple #1
0
        private void btnAddNewPlace_Click(object sender, EventArgs e)
        {
            bool isThereTextInAnyTxtbox = (Controls.OfType <TextBox>().All(t => t.Text == "")) ? false : true;

            if (isThereTextInAnyTxtbox)
            {
                PlaceAdded?.Invoke(sender, e);
                clearTxTBoxes();
            }
        }
Exemple #2
0
 private void ucPlaceAdded(object sender, EventArgs e)
 {
     PlaceAdded?.Invoke(sender, e);
 }