예제 #1
0
 private void OnNewIssueCustomArgs(NewIssueEventArgs args)
 {
     if (NewIssueCustomArgs != null)
     {
         NewIssueCustomArgs(this, args);
     }
 }
예제 #2
0
        public void NewRelease()
        {
            NewIssueEventArgs args = new NewIssueEventArgs();

            args.Name = Name;
            args.Time = DateTime.Now;
            OnNewIssue();
            OnNewIssueCustomArgs(args);
        }
예제 #3
0
        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
        }
예제 #4
0
 public void NewIssueCustomCallBack(object sender, NewIssueEventArgs e)
 {
     LastIssue.Name = e.Name;
     LastIssue.Time = e.Time;
 }
예제 #5
0
 public Subscriber(string name)
 {
     Name      = name;
     LastIssue = new NewIssueEventArgs();
 }