private void SaveAppSettings()
{
this.appSettings.left = this.Left;
this.appSettings.top = this.Top;
this.appSettings.width = this.Width;
this.appSettings.height = this.Height;
StreamWriter writer = null;
try
{
XmlSerializer serializer = new XmlSerializer(typeof(AppSettings));
writer = new StreamWriter(Application.StartupPath + MainForm.settingFileName);
serializer.Serialize(writer, this.appSettings);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
if(writer != null) writer.Close();
}
}//SaveAppSettings