Common SimpleTaskCommon_SimpleTask_CSharpSimpleTask_CSharp\ButtonTextEditorForm.cs
// Copyright 2007 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the use restrictions.
//
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SimpleTask_CSharp
{
public partial class ButtonTextEditorForm : Form
{
public ButtonTextEditorForm(string value)
{
InitializeComponent();
Value = value;
}
public string Value
{
get
{
return txtButtonText.Text;
}
set
{
if (value != null) txtButtonText.Text = value;
}
}
private void cmdOK_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Hide();
}
private void cmdCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Hide();
}
}
}