Exemplo n.º 1
0
        public PacDataNode(PacData data)
            : base(data.Name)
        {
            _PacData = data;

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