private void OnNewIssueCustomArgs(NewIssueEventArgs args) { if (NewIssueCustomArgs != null) { NewIssueCustomArgs(this, args); } }
public void NewRelease() { NewIssueEventArgs args = new NewIssueEventArgs(); args.Name = Name; args.Time = DateTime.Now; OnNewIssue(); OnNewIssueCustomArgs(args); }
private static void NewIssueCallbackCustom(object sender, NewIssueEventArgs e) { string newIssue = $"Issue: {e.Name}, Date: {e.Time}"; // notify marketing // notify affiliates // notify account payable // store to database }
public void NewIssueCustomCallBack(object sender, NewIssueEventArgs e) { LastIssue.Name = e.Name; LastIssue.Time = e.Time; }
public Subscriber(string name) { Name = name; LastIssue = new NewIssueEventArgs(); }