2014年1月30日
摘要: using Nini.Ini;using Nini.Config;IniDocument doc = new IniDocument("Settings.ini", IniFileType.WindowsStyle);IniConfigSource source = new IniConfigSource(doc);source.Configs["[System]"].Set("InstallDirectory", acmInstallDirTextbox.Text);source.Save();=>Try following 阅读全文
posted @ 2014-01-30 16:00 武胜-阿伟 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Using Nini .NET Configuration LibraryTweetWhen developing a desktop application, there will be times when you want to store settings for your program. A database is one option, but on Windows, you might just wish to have your settings stored in an INI file. One way to work with an INI file in C# is 阅读全文
posted @ 2014-01-30 15:52 武胜-阿伟 阅读(463) 评论(0) 推荐(0) 编辑
摘要: Add an ImageCollection to yout form and add some icons 16x16 to it.Add a column to the Grid for the icons.Set the column's fieldName to image (whatever you like).Set the column's UnboundType to Object.Add a repositoryItemPictureEdit to the column's columnEdit.All the above can be done in 阅读全文
posted @ 2014-01-30 09:41 武胜-阿伟 阅读(1385) 评论(0) 推荐(0) 编辑