private void toolStripSave_Click(object sender, EventArgs e) { var allItems = GetSelecetedLists(); allItems.ContextName = SpContext.ContextName; allItems.ModelFoler = SpContext.ModelFolder; allItems.NamespaceString = SpContext.NamespaceString; if (saveFile.ShowDialog() == System.Windows.Forms.DialogResult.OK) { SaveUtils saveUtil = new SaveUtils(); saveUtil.SaveInfo(allItems, saveFile.FileName); } }