コード例 #1
0
 private void CloseFRMAuthorEvent(object sender, frmAuthorClosedEventArgs e)
 {
     if(e.IsChange)
     {
         dgAuthorEx.DataSource = "";
         //dsAuthors = _daoAuthor.getAuthors(Convert.ToInt32(cbExperiments.SelectedValue.ToString()));
         dtAuthor = dsAuthors.Tables[0];
         setAuthorList();
     }
 }
コード例 #2
0
        protected virtual void frmAuthorClosedEvent(frmAuthorClosedEventArgs e)
        {
            EventHandler<frmAuthorClosedEventArgs> handler = RaiseAuthorClosedEvent;

            // Event will be null if there are no subscribers 
            if (handler != null)
            {
                // Use the () operator to raise the event.
                e.IsChange = bHasChanged;
                handler(this, e);
            }
        }