Beispiel #1
0
 public override bool Create(ITreeNode parent, string name)
 {
     if (name != null)
     {
         try
         {
             var vdv   = new VariantDef();
             var mfile = new InMemoryFile("tmp.vdv");
             vdv.Save(mfile);
             parent.CreateChildTextFile(name + ".vdv", mfile.GetText());
             return(true);
         }
         catch (Exception e)
         {
             Errors.Report(e);
         }
     }
     return(false);
 }
Beispiel #2
0
 public override void OnSaveContent()
 {
     m_vdef.Save(m_file);
 }