diff --git a/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml b/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml index b2b18fd38..9fc6ba082 100644 --- a/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml +++ b/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml @@ -1,4 +1,4 @@ - diff --git a/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml.cs b/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml.cs index aea5df945..4fe07a8df 100644 --- a/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml.cs +++ b/Source/ChocolateyGui.Common.Windows/Views/LocalSourceView.xaml.cs @@ -5,7 +5,10 @@ // // -------------------------------------------------------------------------------------------------------------------- +using System.Collections; +using System.Runtime.Remoting.Channels; using System.Windows; +using System.Windows.Controls; using System.Windows.Input; using ChocolateyGui.Common.ViewModels.Items; @@ -25,6 +28,19 @@ public LocalSourceView() this.Loaded += LocalSourceViewOnLoaded; } + public IList SelectedItems { get; private set; } + + /// + /// This is an event handler for on selection change made on the list of the local packages, it will have the list of selected packages items which can be used + /// later on to pass to the command. + /// + /// sender + /// eventParameter + private void DgPackages_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + this.SelectedItems = ((System.Windows.Controls.Primitives.MultiSelector) e.OriginalSource).SelectedItems; + } + private void LocalSourceViewOnLoaded(object sender, RoutedEventArgs e) { this.SearchTextBox.Focus(); diff --git a/Source/ChocolateyGui.sln b/Source/ChocolateyGui.sln index 10261561b..a14b0cc02 100644 --- a/Source/ChocolateyGui.sln +++ b/Source/ChocolateyGui.sln @@ -1,12 +1,10 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27004.2002 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29806.167 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChocolateyGui", "ChocolateyGui\ChocolateyGui.csproj", "{851FC2F6-AFB0-4153-8520-BF68E1BEA3CB}" EndProject -Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "ChocolateyGui.Install", "ChocolateyGui.Install\ChocolateyGui.Install.wixproj", "{411C7212-286F-4F26-994A-568E943D0E60}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{C6760D8F-E01B-4F26-9B0C-4E2D825509D2}" ProjectSection(SolutionItems) = preProject ..\.editorconfig = ..\.editorconfig @@ -23,6 +21,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChocolateyGui.Common", "Cho EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChocolateyGui.Common.Windows", "ChocolateyGui.Common.Windows\ChocolateyGui.Common.Windows.csproj", "{4C2E05FE-3F4D-40BE-873C-5D07C8729741}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "justConsole", "justConsole\justConsole.csproj", "{2213023A-2A00-4DF5-8772-31F1D45F387F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -41,16 +41,6 @@ Global {851FC2F6-AFB0-4153-8520-BF68E1BEA3CB}.Release|x86.ActiveCfg = Release|x86 {851FC2F6-AFB0-4153-8520-BF68E1BEA3CB}.WIX|Any CPU.ActiveCfg = Release|Any CPU {851FC2F6-AFB0-4153-8520-BF68E1BEA3CB}.WIX|x86.ActiveCfg = Release|Any CPU - {411C7212-286F-4F26-994A-568E943D0E60}.Debug|Any CPU.ActiveCfg = Debug|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.Debug|x86.ActiveCfg = Debug|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.Debug|x86.Build.0 = Debug|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.Release|Any CPU.ActiveCfg = Release|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.Release|x86.ActiveCfg = Release|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.Release|x86.Build.0 = Release|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.WIX|Any CPU.ActiveCfg = Release|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.WIX|Any CPU.Build.0 = Release|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.WIX|x86.ActiveCfg = Release|x86 - {411C7212-286F-4F26-994A-568E943D0E60}.WIX|x86.Build.0 = Release|x86 {C69DCF4D-F412-4344-83CD-26A46D515DF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C69DCF4D-F412-4344-83CD-26A46D515DF2}.Debug|Any CPU.Build.0 = Debug|Any CPU {C69DCF4D-F412-4344-83CD-26A46D515DF2}.Debug|x86.ActiveCfg = Debug|Any CPU @@ -87,6 +77,18 @@ Global {4C2E05FE-3F4D-40BE-873C-5D07C8729741}.WIX|Any CPU.Build.0 = Release|Any CPU {4C2E05FE-3F4D-40BE-873C-5D07C8729741}.WIX|x86.ActiveCfg = Release|Any CPU {4C2E05FE-3F4D-40BE-873C-5D07C8729741}.WIX|x86.Build.0 = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Debug|x86.ActiveCfg = Debug|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Debug|x86.Build.0 = Debug|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Release|Any CPU.Build.0 = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Release|x86.ActiveCfg = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.Release|x86.Build.0 = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.WIX|Any CPU.ActiveCfg = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.WIX|Any CPU.Build.0 = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.WIX|x86.ActiveCfg = Release|Any CPU + {2213023A-2A00-4DF5-8772-31F1D45F387F}.WIX|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Source/justConsole/App.config b/Source/justConsole/App.config new file mode 100644 index 000000000..3916e0e4b --- /dev/null +++ b/Source/justConsole/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Source/justConsole/Program.cs b/Source/justConsole/Program.cs new file mode 100644 index 000000000..148a2d612 --- /dev/null +++ b/Source/justConsole/Program.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace justConsole +{ + class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/Source/justConsole/Properties/AssemblyInfo.cs b/Source/justConsole/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..e7af1999a --- /dev/null +++ b/Source/justConsole/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("justConsole")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("justConsole")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("2213023a-2a00-4df5-8772-31f1d45f387f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Source/justConsole/justConsole.csproj b/Source/justConsole/justConsole.csproj new file mode 100644 index 000000000..eb7ce6ebe --- /dev/null +++ b/Source/justConsole/justConsole.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {2213023A-2A00-4DF5-8772-31F1D45F387F} + Exe + justConsole + justConsole + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file