コード例 #1
0
 protected virtual void OnBasePortChanged(object sender, PortEventArgs e)
 {
     try
     {
         if (this.BasePortChanged != null)
         {
             this.BasePortChanged(sender, e);
         }
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex);
     }
 }
コード例 #2
0
		protected virtual void OnBasePortChanged(object sender, PortEventArgs e)
		{
			try
			{
				if (this.BasePortChanged != null)
					this.BasePortChanged(sender, e);
			}
			catch(Exception ex)
			{
				Trace.WriteLine(ex);
			}
		}