From 263de03914a3de5d55c4508c322e32d36caf2a87 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Mon, 7 Jun 2021 15:05:30 +0200 Subject: suggestion in IML editor, editor base classe for ShowCase and LogAnalyzer --- Samples/DebugLogAnalyzer/src/Extensions.cs | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 Samples/DebugLogAnalyzer/src/Extensions.cs (limited to 'Samples/DebugLogAnalyzer/src/Extensions.cs') diff --git a/Samples/DebugLogAnalyzer/src/Extensions.cs b/Samples/DebugLogAnalyzer/src/Extensions.cs deleted file mode 100644 index 58047aaa..00000000 --- a/Samples/DebugLogAnalyzer/src/Extensions.cs +++ /dev/null @@ -1,24 +0,0 @@ - - -using Crow; - -namespace DebugLogAnalyzer { - public static class Extensions { - - public static CommandGroup GetCommands (this System.IO.DirectoryInfo di) => - new CommandGroup( - new Command ("Set as root", ()=> {Program.CurrentProgramInstance.CurrentDir = di.FullName;}) - ); - public static CommandGroup GetCommands (this System.IO.FileInfo fi) => - new CommandGroup( - new Command ("Delete", (sender0) => { - MessageBox.ShowModal (Program.CurrentProgramInstance, MessageBox.Type.YesNo, $"Delete {fi.Name}?").Yes += (sender, e) => { - System.IO.File.Delete(fi.FullName); - Widget listContainer = ((sender0 as Widget).LogicalParent as Widget).DataSource as Widget; - (listContainer.Parent as Group).RemoveChild(listContainer); - }; - }) - ); - - } -} \ No newline at end of file -- cgit v1.3.1-4-g156e