This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/ref/xcad/samples/SwAddIn/WpfWindow.xaml.cs
2022-10-15 19:16:08 +02:00

48 lines
1.1 KiB
C#

//*********************************************************************
//xCAD
//Copyright(C) 2020 Xarial Pty Limited
//Product URL: https://www.xcad.net
//License: https://xcad.xarial.com/license/
//*********************************************************************
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.Navigation;
using System.Windows.Shapes;
namespace SwAddInExample
{
public partial class WpfWindow : Window
{
public bool? IsOk { get; private set; }
public WpfWindow()
{
InitializeComponent();
IsOk = null;
}
private void OnOk(object sender, RoutedEventArgs e)
{
IsOk = true;
this.Close();
}
private void OnCancel(object sender, RoutedEventArgs e)
{
IsOk = false;
this.Close();
}
}
}