|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace HostApp
{
public partial class frmEditInfo : Form
{
#region User Defined variable
string tagValue = String.Empty;
string nameValue = String.Empty;
#endregion
#region user Defined Property
public string TagValue
{
get { return tagValue; }
set { tagValue = value; }
}
public string NameValue
{
get { return nameValue; }
set { nameValue = value; }
}
#endregion
public frmEditInfo()
{
InitializeComponent();
}
private void frmEditInfo_Load(object sender, EventArgs e)
{
txtname.Text = nameValue;
txtTag.Text = tagValue;
}
private void btnOk_Click(object sender, EventArgs e)
{
nameValue = txtname.Text;
tagValue = txtTag.Text;
this.DialogResult = DialogResult.OK;
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.No;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Sid loves programming and has technical experience developing desktop based solutions using C#.Net, Winforms, WPF.
He has experience of Software services, I-Banks and Product development environments.
He also has a deep understanding of Product Development Lifecycle and Agile methodology of developing softwares.
Besides programming he is also fond of music, photography and cooking.
He lives in Bangalore.