public AndroidLogcat(AndroidLogcat rhs) { AdbFullPath = rhs.AdbFullPath; SelectedDevice = rhs.SelectedDevice; CaptureOutputToFile = rhs.CaptureOutputToFile; AppendOutputFile = rhs.AppendOutputFile; LogBuffers = rhs.LogBuffers.Dup(); FilterSpecs = rhs.FilterSpecs.Dup(); LogFormat = rhs.LogFormat; ConnectionType = rhs.ConnectionType; IPAddressHistory = rhs.IPAddressHistory.Dup(); ConnectionPort = rhs.ConnectionPort; }
public AndroidLogcat(XElement node) { AdbFullPath = node.Element(XmlTag.ADBPath).As <string>(); SelectedDevice = node.Element(XmlTag.Device).As <string>(); CaptureOutputToFile = node.Element(XmlTag.CaptureOutput).As <bool>(); AppendOutputFile = node.Element(XmlTag.AppendOutput).As <bool>(); LogBuffers = node.Element(XmlTag.LogBuffers).As <ELogBuffer[]>(); FilterSpecs = node.Element(XmlTag.FilterSpecs).As <FilterSpec[]>(); LogFormat = node.Element(XmlTag.LogFormat).As <ELogFormat>(); ConnectionType = node.Element(XmlTag.ConnType).As <EConnectionType>(); IPAddressHistory = node.Element(XmlTag.IPAddrHistory).As <string[]>(); ConnectionPort = node.Element(XmlTag.Port).As <int>(); }