Beispiel #1
0
        public PacDataNode(PacData data)
            : base(data.Name)
        {
            _PacData = data;

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