Example #1
0
 private void tsbSaveInfo_Click(object sender, EventArgs e)
 {
     if (curApp != null)
     {
         curApp.应用名称 = tbAppName.Text;
     }
     AppInfoMgr.SaveAppInfo();
 }
Example #2
0
 private void FrmAppInfoMgr_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (curApp != null)
     {
         curApp.应用名称 = tbAppName.Text;
     }
     AppInfoMgr.SaveAppInfo();
 }
Example #3
0
        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();
        }