Example #1
0
 protected virtual void OnPortDescriptorChanged(object sender, PortDescriptorEventArgs e)
 {
     try
     {
         // recalculate the port for this descriptor
         e.Descriptor.Port = _basePort + e.Descriptor.Offset;
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex);
     }
 }
Example #2
0
		protected virtual void OnPortDescriptorChanged(object sender, PortDescriptorEventArgs e)
		{
			try
			{
				if (this.PortDescriptorChanged != null)
					this.PortDescriptorChanged(sender, e);
			}
			catch(Exception ex)
			{		
				Trace.WriteLine(ex);
			}
		}
 protected virtual void OnPortDescriptorChanged(object sender, PortDescriptorEventArgs e)
 {
     try
     {
         if (this.PortDescriptorChanged != null)
         {
             this.PortDescriptorChanged(sender, e);
         }
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex);
     }
 }
		protected virtual void OnPortDescriptorChanged(object sender, PortDescriptorEventArgs e)
		{
			try
			{
				// recalculate the port for this descriptor
				e.Descriptor.Port = _basePort + e.Descriptor.Offset;
			}
			catch(Exception ex)
			{		
				Trace.WriteLine(ex);
			}
		}