Skip to content

Fixes #232: Subfolders can't be created in variables folder #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion DotNetSiemensPLCToolBoxLibrary.TIAV19/Step7ProjectV19Tia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,17 @@ public List<ITIAVarTab> TagTables
return retVal;
}
}


public override ProjectFolder CreateFolder(string name)
{
var gp = group.Groups.Create(name);
var newFld = new TIAOpennessVariablesFolder((Step7ProjectV19)Project, ControllerFolder, gp);
newFld.Name = gp.Name;
newFld.Parent = this;
this.SubItems.Add(newFld);
return newFld;
}

public override void ImportFile(FileInfo file, bool overwrite, bool importFromSource)
{
this.group.TagTables.Import(file, overwrite ? ImportOptions.Override : ImportOptions.None);
Expand Down
11 changes: 11 additions & 0 deletions DotNetSiemensPLCToolBoxLibrary.TIAV20/Step7ProjectV20Tia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,17 @@ public List<ITIAVarTab> TagTables
return retVal;
}
}

public override ProjectFolder CreateFolder(string name)
{
var gp = group.Groups.Create(name);
var newFld = new TIAOpennessVariablesFolder((Step7ProjectV20)Project, ControllerFolder, gp);
newFld.Name = gp.Name;
newFld.Parent = this;
this.SubItems.Add(newFld);
return newFld;
}

public override void ImportFile(FileInfo file, bool overwrite, bool importFromSource)
{
this.group.TagTables.Import(file, overwrite ? ImportOptions.Override : ImportOptions.None);
Expand Down
Loading