public PacDataNode(PacData data) : base(data.Name) { _PacData = data; _SurrogateObject = new SurrogateDataObject(this); ContextMenuStrip.Items["Import"].Visible = false; }
public static PacFileNode FromPacFile(string path) { PacData[] pacData = PacData.FromFile(path); return(FromPacFileData(Path.GetFileName(path), pacData)); }
public static PacDataNode FromPacFileData(PacData data) { return(new PacDataNode(data)); }
protected override byte[] ToFile() { PacData[] pacData = Nodes.OfType <FileDataNode>().Select(x => new PacData(x.Text, x.Export())).ToArray(); return(PacData.ToFile(pacData)); }