private void tsbSaveInfo_Click(object sender, EventArgs e) { if (curApp != null) { curApp.应用名称 = tbAppName.Text; } AppInfoMgr.SaveAppInfo(); }
private void FrmAppInfoMgr_FormClosing(object sender, FormClosingEventArgs e) { if (curApp != null) { curApp.应用名称 = tbAppName.Text; } AppInfoMgr.SaveAppInfo(); }
private void TsmiChangeSetting_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { AppSetting appSetting = e.ClickedItem.Tag as AppSetting; AppInfo app = dataGridView1.CurrentRow.DataBoundItem as AppInfo; if (app != null && appSetting != null) { app.ChangeTo(appSetting); AppInfoMgr.SaveAppInfo(); } dataGridView1.Refresh(); }