Common_SimpleServerTask_CSharp\ButtonTextEditorForm.cs
// Copyright 2010 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. // namespace SimpleServerTask_CSharp { public partial class ButtonTextEditorForm : System.Windows.Forms.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, System.EventArgs e) { DialogResult = System.Windows.Forms.DialogResult.OK; Hide(); } private void cmdCancel_Click(object sender, System.EventArgs e) { DialogResult = System.Windows.Forms.DialogResult.Cancel; Hide(); } } }