protected void OnNewWindow2(ref object ppDisp, ref bool cancel)
        {
            EventHandler <NewWindow2EventArgs> h = NewWindow2;
            NewWindow2EventArgs args             = new NewWindow2EventArgs(ref ppDisp, ref cancel);

            if (null != h)
            {
                h(this, args);
            }
            //Pass the cancellation chosen back out to the events
            //Pass the ppDisp chosen back out to the events
            cancel = args.Cancel;
            ppDisp = args.PPDisp;
        }
示例#2
0
 protected void OnNewWindow2(ref object ppDisp, ref bool cancel)
 {
     EventHandler<NewWindow2EventArgs> h = NewWindow2;
     NewWindow2EventArgs args = new NewWindow2EventArgs(ref ppDisp, ref cancel);
     if (null != h)
     {
         h(this, args);
     }
     //Pass the cancellation chosen back out to the events
     //Pass the ppDisp chosen back out to the events
     cancel = args.Cancel;
     ppDisp = args.PPDisp;
 }