public SrcpPower GetSrcpPower()
        {
            if (srcpPower == null)
            {
                Control control = null;
                try
                {
                    control = selectBus;
                    int bus = selectBus.Bus;

                    control = null;

                    if (current == null)
                    {
                        current = new SrcpPower(serverConnection);
                    }
                    current.Init(bus);
                    srcpPower = current;
                }
                catch
                {
                    if (control != null)
                    {
                        control.Focus();
                    }
                    throw;
                }
            }
            return(srcpPower);
        }
 void Initialize(ServerConnection connection, SrcpPower current)
 {
     serverConnection = connection;
     selectBus.SetServer(connection);
     if (current != null)
     {
         this.current  = current;
         selectBus.Bus = current.Bus;
     }
     else
     {
         selectBus.Bus = 1;
     }
 }
 public void Initialize(SrcpPower current)
 {
     Initialize(current.Connection, current);
 }
 public NewAndUpdatePower(SrcpPower current) : this()
 {
     Initialize(current);
 }