Exemple #1
0
 public override bool Create(ITreeNode parent, string name)
 {
     if (name != null)
     {
         try
         {
             parent.CreateChildTextFile(name + ".sql", "");
             return(true);
         }
         catch (Exception e)
         {
             Errors.Report(e);
         }
     }
     return(false);
 }
Exemple #2
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);
 }
Exemple #3
0
 public override bool Create(ITreeNode parent, string name)
 {
     if (name != null)
     {
         try
         {
             Diagram dia   = Diagram.CreateNew();
             var     mfile = new InMemoryFile("tmp.dia");
             dia.Save(mfile);
             parent.CreateChildTextFile(name + ".dia", mfile.GetText());
             return(true);
         }
         catch (Exception e)
         {
             Errors.Report(e);
         }
     }
     return(false);
 }