Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (46 sloc) 1.053 kB
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 Instant.VisualStudio
{
/// <summary>
/// Interaction logic for TestCodeWindow.xaml
/// </summary>
public partial class TestCodeWindow : Window
{
public TestCodeWindow()
{
InitializeComponent();
code.Focus();
}
public string ShowForTestCode (string example)
{
this.code.Text = example;
bool? accepted = ShowDialog();
if (accepted == null || !accepted.Value)
return null;
return this.code.Text;
}
private void OnClickOk (object sender, RoutedEventArgs e)
{
DialogResult = true;
Close();
}
private void OnClickCancel (object sender, RoutedEventArgs e)
{
DialogResult = false;
Close();
}
}
}
Jump to Line
Something went wrong with that request. Please try again.