示例#1
0
 /// <summary>
 /// The UserControl is not used any more. Release resources used by the UserControl.
 /// </summary>
 public override void ReleaseUserControl()
 {
     if (_userControl != null)
     {
         _userControl.ConfigurationChangedByUser -= new EventHandler(ConfigurationChangedByUserHandler);
         _userControl = null;
     }
 }
示例#2
0
 /// <summary>
 /// Generate the UserControl for configuring a type of item that this ItemManager manages.
 /// </summary>
 /// <returns></returns>
 public override UserControl GenerateDetailUserControl()
 {
     _userControl = new SensorMonitorUserControl("Controller");
     _userControl.ConfigurationChangedByUser += new EventHandler(ConfigurationChangedByUserHandler);
     return(_userControl);
 }