diff --git a/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml b/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml index 6fa7feb..80be932 100644 --- a/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml +++ b/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml @@ -29,6 +29,7 @@ SelectionMode="Single" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Visible" + MouseDoubleClick="ProcessList_MouseDoubleClick" AlternationCount="2" Grid.ColumnSpan="2"> diff --git a/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml.cs b/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml.cs index cb78dcc..eda262a 100644 --- a/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml.cs +++ b/Windows/Libraries/OrbisLib2/Dialog/SelectProcess.xaml.cs @@ -1,6 +1,7 @@ using OrbisLib2.Targets; using SimpleUI.Dialogs; using System.Windows; +using System.Windows.Controls.Primitives; namespace OrbisLib2.Dialog { @@ -22,6 +23,14 @@ namespace OrbisLib2.Dialog { var dlg = new SelectProcess(Owner); dlg.ShowDialog(); + + var selectedProc = (ProcInfo)dlg.ProcessList.SelectedItem; + if(selectedProc != null) + { + // TODO: Handle Attach here. + Console.WriteLine($"Attaching to {selectedProc.Name}"); + } + return dlg.Result; } @@ -53,5 +62,15 @@ namespace OrbisLib2.Dialog { RefreshProcessList(); } + + private void ProcessList_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) + { + var item = ((FrameworkElement)e.OriginalSource).DataContext as ProcInfo; + if (item != null && ProcessList.SelectedItem != null) + { + Result = SimpleDialogResult.Button1; + Close(); + } + } } } diff --git a/Windows/OrbisLibraryManager/OrbisLibraryManager.csproj b/Windows/OrbisLibraryManager/OrbisLibraryManager.csproj index efbd63a..7296203 100644 --- a/Windows/OrbisLibraryManager/OrbisLibraryManager.csproj +++ b/Windows/OrbisLibraryManager/OrbisLibraryManager.csproj @@ -1,7 +1,7 @@  - WinExe + Exe net6.0-windows enable true diff --git a/Windows/OrbisNeighborHood/Resources/BuildNumber.txt b/Windows/OrbisNeighborHood/Resources/BuildNumber.txt index f52b3ac..d1003cf 100644 --- a/Windows/OrbisNeighborHood/Resources/BuildNumber.txt +++ b/Windows/OrbisNeighborHood/Resources/BuildNumber.txt @@ -1 +1 @@ -2176 +2183 diff --git a/Windows/OrbisNeighborHood/Resources/BuildString.txt b/Windows/OrbisNeighborHood/Resources/BuildString.txt index df87f3c..11eb38b 100644 --- a/Windows/OrbisNeighborHood/Resources/BuildString.txt +++ b/Windows/OrbisNeighborHood/Resources/BuildString.txt @@ -1 +1 @@ -Version 3.0.2176 Debug Build Friday December 30 2022 12:43 AM +Version 3.0.2183 Debug Build Friday December 30 2022 12:59 AM