58 lines
1.4 KiB
C#
58 lines
1.4 KiB
C#
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 OliviaAddInPro
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for ProWindowSaveFileName.xaml
|
|
/// </summary>
|
|
public partial class ProWindowSaveFileName : ArcGIS.Desktop.Framework.Controls.ProWindow
|
|
{
|
|
private bool ok = false;
|
|
public ProWindowSaveFileName()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
ok = true;
|
|
Close();
|
|
}
|
|
|
|
private void ProWindow_Closed(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void ProWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
|
{
|
|
if (ok)
|
|
DialogResult = true;
|
|
else
|
|
DialogResult = false;
|
|
}
|
|
|
|
private void TextBox_KeyUp(object sender, KeyEventArgs e)
|
|
{
|
|
if(e.Key==Key.Enter)
|
|
{
|
|
ok = true;
|
|
Close();
|
|
}
|
|
}
|
|
}
|
|
}
|