private void btnAdd_Click(object sender, EventArgs e) { if (Validate()) { DataSourceChange?.Invoke(); } else { MessageBox.Show("Validation", "Price / Quantity are mandatory fields.", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
internal void OnDataSourceChange(DataSourceEventArgs args) { DataSourceChange?.Invoke(_app, args); }