//============================================================ // <T>按照选中保存。</T> //============================================================ public void SaveSelect() { FObjects <TreeNode> checkeds = tvwCatalog.FetchCheckedNodes(); foreach (TreeNode node in checkeds) { FCfgFolder folder = node.Tag as FCfgFolder; if (null != folder) { FDrTexture texture = folder.Tag as FDrTexture; if (null != texture) { texture.Store(); } } } }
//============================================================ // <T>保存资源设置。</T> //============================================================ private void tspSave_Click(object sender, EventArgs e) { _texture.Store(); MessageBox.Show("已经保存成功。", "信息", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); }