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); }
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); }
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); }