diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-14 15:31:28 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-14 15:31:28 +0300 |
| commit | a282f06d5060617af3ba3b4c4ea6b9f03372df3d (patch) | |
| tree | fa76ceb90dc7e5ef7bfb0f6e6382dc9b3a34cbc1 /Software/Visual_Studio/PPC/Tango.PPC.Updater | |
| parent | 638606d27758a62c3369d4e0f335e12555334cc2 (diff) | |
| download | Tango-a282f06d5060617af3ba3b4c4ea6b9f03372df3d.tar.gz Tango-a282f06d5060617af3ba3b4c4ea6b9f03372df3d.zip | |
Fixed some issues with Machine Setup.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Updater')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml | 4 | ||||
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml index 77a87d224..a5e63477f 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml @@ -10,8 +10,8 @@ <Grid> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <Image Source="/Images/package.png" Width="200" /> - <TextBlock x:Name="txtStatus" Margin="0 100 0 0" FontSize="22" Text="Updating Tango..." HorizontalAlignment="Center"></TextBlock> - <ProgressBar x:Name="prog" Margin="0 30 0 0" Width="500" Height="10" Maximum="100" Value="50" BorderThickness="0" Foreground="#1c63ea"></ProgressBar> + <TextBlock x:Name="txtStatus" Margin="0 100 0 0" FontSize="16" Text="Updating Tango..." HorizontalAlignment="Center"></TextBlock> + <ProgressBar x:Name="prog" Margin="0 30 0 0" Width="500" Height="10" Maximum="100" Value="0" BorderThickness="0" Foreground="#1c63ea"></ProgressBar> </StackPanel> </Grid> </Window> diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs index 34e32a306..394d3292f 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Updater/MainWindow.xaml.cs @@ -30,12 +30,12 @@ namespace Tango.PPC.Updater public MainWindow() { //Launch debugger.. -#if DEBUG - if (!Debugger.IsAttached) - { - Debugger.Launch(); - } -#endif +//#if DEBUG +// if (!Debugger.IsAttached) +// { +// Debugger.Launch(); +// } +//#endif if (!Directory.Exists(_sourceFolder)) { @@ -76,7 +76,11 @@ namespace Tango.PPC.Updater { Debug.WriteLine(ex.ToString()); ShowError(ex.Message); - StartTango(); + Process p = new Process(); + p.StartInfo.FileName = _appPath + "\\" + _msProcessName + ".exe"; + p.StartInfo.LoadUserProfile = true; + p.StartInfo.UseShellExecute = true; + p.Start(); Environment.Exit(0); } } |
