Ejemplo n.º 1
0
        private void LogWindowCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            // Force update of script interface
            LogWindowButton.Focus();

            LogDialog = new LogWindow {
                Owner = this
            };
            LogDialog.Show();
        }
Ejemplo n.º 2
0
        private void LogWindowCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            // Force update of script interface
            LogWindowButton.Focus();

            // Reset TaskBar progress state when build is not running
            if (Engine.WorkingEngine == null)
            {
                Global.MainViewModel.TaskBarProgressState = TaskbarItemProgressState.None;
            }

            // If last build ended with issue, show build log instead of system log
            int selectedTabIndex = Global.MainViewModel.BuildEndedWithIssue ? 1 : 0;

            Global.MainViewModel.BuildEndedWithIssue = false;

            LogDialog = new LogWindow(selectedTabIndex)
            {
                Owner = this
            };
            LogDialog.Show();
        }