aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Html/DefaultHtmlPresenter.cs
blob: eff8c98a0000b2a5303bf84577ffd71332ac9208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.BL.Entities;
using Tango.MachineStudio.Common.Html;
using Tango.MachineStudio.UI.Windows;

namespace Tango.MachineStudio.UI.Html
{
    public class DefaultHtmlPresenter : IHtmlPresenter
    {
        public bool DisplayHtml(HtmlPage html)
        {
            HtmlWindow dialog = new HtmlWindow(html);
            dialog.Owner = Application.Current.MainWindow;
            MainWindow.Instance.shadowGrid.Visibility = Visibility.Visible;
            var result = dialog.ShowDialog();
            MainWindow.Instance.shadowGrid.Visibility = Visibility.Hidden;
            return result.Value;
        }
    }
}
;&#916;"></Run> <Run Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=Resolution,FallbackValue=1}"></Run> </TextBlock> </Grid> <Button ToolTip="Decrease Delta Resolution" Click="OnResolutionDownClicked" Grid.Row="2" Style="{StaticResource MaterialDesignFlatButton}" Height="50" Padding="0" Foreground="#202020" VerticalAlignment="Top"> <materialDesign:PackIcon Kind="ArrowDown" Width="24" Height="24" /> </Button> </Grid> </Grid> </Grid> </UserControl>