Beispiel #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();
            }
        }
Beispiel #2
0
 private void ucPlaceAdded(object sender, EventArgs e)
 {
     PlaceAdded?.Invoke(sender, e);
 }