-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update command line tab for alpha 0.0.0.2 (#2)
* Test hockey app * Remove old code * Remove old bindings * Rebuild CommandLine View * Update ReadMe * Add color change effect for status indicator. Color will change depending on progress of install/update/delete tasks. Current only yellow while downloading and green while unzipping. * Only listen to output event when needed. * Rebuild CommandLineTabView * Add generic Run command for sdkmangaer (not used yet) * Update for more colors * Hook up basic Method to run generic commands. Need to do somthing with the output... * Update Platform and Tool Tab vies to use a grid layout * Update ReadMe * Update tab views * Update Main View to grid system. Alter width in tab views to match new main window view. * Fix typos in ReadMe :/ * Signed for first alpha * Add Command Output Window * Udpate some doc comments * Adjust size of command line tab
- Loading branch information
1 parent
667afab
commit 564ecf8
Showing
10 changed files
with
181 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
SdkManager.UI/ViewModels/Windows/ConsoleOutputWindowViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Windows; | ||
using System.Windows.Input; | ||
|
||
namespace SdkManager.UI | ||
{ | ||
/// <summary> | ||
/// </summary> | ||
public class ConsoleOutputWindowViewModel : BaseViewModel | ||
{ | ||
|
||
private Window _win {get;set;} | ||
private SdkManagerBatViewModel sdkManagerbatVM; | ||
|
||
public SdkManagerBatViewModel SdkManagerBatVM | ||
{ | ||
get => sdkManagerbatVM; | ||
set | ||
{ | ||
if(sdkManagerbatVM != value) | ||
{ | ||
sdkManagerbatVM = value; | ||
NotifyPropertyChanged(); | ||
} | ||
} | ||
} | ||
|
||
public ICommand CancelCommand { get; set; } | ||
|
||
public ConsoleOutputWindowViewModel(Window win, SdkManagerBatViewModel information) | ||
{ | ||
_win = win; | ||
SdkManagerBatVM = information; | ||
|
||
CancelCommand = new RelayCommand(Cancel); | ||
} | ||
|
||
private void Cancel() | ||
{ | ||
_win.DialogResult = false; | ||
_win.Close(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<Window x:Class="SdkManager.UI.CommandLineOutputWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:SdkManager.UI" | ||
mc:Ignorable="d" | ||
Title="cmd output" Height="450" Width="800" | ||
Background="#3C3F41"> | ||
|
||
<Grid DataContext="{Binding}"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="10"/> | ||
<RowDefinition Height="auto"/> | ||
<RowDefinition Height="auto"/> | ||
<RowDefinition Height="*"/> | ||
<RowDefinition Height="10"/> | ||
</Grid.RowDefinitions> | ||
|
||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="10"/> | ||
<ColumnDefinition Width="auto"/> | ||
<ColumnDefinition Width="10"/> | ||
</Grid.ColumnDefinitions> | ||
|
||
<Border Grid.Row="1" Grid.Column="1" BorderBrush="#292B2D" BorderThickness="1" CornerRadius="4,4,0,0" HorizontalAlignment="Stretch" Margin="2,0"> | ||
<ScrollViewer VerticalScrollBarVisibility="Auto" MaxWidth="2000" MinWidth="760" Height="370"> | ||
<TextBlock Text="{Binding SdkManagerBatVM.ConsoleWindowOutput}"></TextBlock> | ||
</ScrollViewer> | ||
</Border> | ||
|
||
<StackPanel Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> | ||
<Button HorizontalAlignment="Center" Content="Close" Width="60" Margin="10,5,10,5" Command="{Binding CancelCommand}"/> | ||
</StackPanel> | ||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace SdkManager.UI | ||
{ | ||
/// <summary> | ||
/// Interaction logic for CommandLineOutputWindow.xaml | ||
/// </summary> | ||
public partial class CommandLineOutputWindow : Window | ||
{ | ||
public CommandLineOutputWindow(SdkManagerBatViewModel dataContext) | ||
{ | ||
this.DataContext = new ConsoleOutputWindowViewModel(this, dataContext); | ||
InitializeComponent(); | ||
} | ||
} | ||
} |