Example #1
0
        private async void Tile_Restart_Click(object sender, RoutedEventArgs e)
        {
            MessageDialogResult result = await this.ShowMessageAsync("提示", "确定重启终端吗?", MessageDialogStyle.AffirmativeAndNegative);

            if (result == MessageDialogResult.Affirmative)
            {
                if (isLoading == true)
                {
                    await this.ShowMessageAsync("错误", "终端已在重启", MessageDialogStyle.Affirmative);

                    return;
                }
                Funtion.ConsoleInit(Console);
            }
        }
Example #2
0
 private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
 {
     Funtion.ConsoleInit(Console);
 }