//Method that sets the ProductID of the size, shown in the runtime button, as an argument of the SizeClickedEventArgs and calls OnSizeClicked.
        private void rtButtons_Click(object sender, EventArgs e)
        {
            productInfo.ProductId = Int32.Parse(((Button)sender).Name);
            SizeClickedEventArgs args = new SizeClickedEventArgs(productInfo);

            OnSizeClicked(args);
        }
 public virtual void OnSizeClicked(SizeClickedEventArgs e)
 {
     SizeClicked?.Invoke(this, e);
 }