我刚刚开始使用TrueCrypt,我想知道我是否可以编写一个控制台/表单应用程序,允许我与truecrypt进行交互.它将在Windows 7的Visual Studio 2010中使用C#.我只是想知道我是否可以这样做.如果有人以前做过或知道是否有可能我会感激一些意见.
谢谢,
斯图尔特.
可能重复:
何时在C#中使用struct?
嗨,我正在创建一个在C#中有一个纯粹用于保存变量的类的应用程序,除了设置和获取这些变量之外别无其他.我想知道,为了提高效率和良好的编码实践,我是否应该将此类转换为结构,以便正确使用它.我之前从未使用过结构但是一直在研究它们但是我在使用它时遇到了一些麻烦.任何意见,将不胜感激!
谢谢,斯图尔特
我有一个我正在处理的应用程序,并且需要根据发生的事件更改视图.此事件意味着必须使用相同的ViewModel,但使用不同的View.我目前不知道这是否可能与Caliburn有关,但我想它应该是.我遇到的主要问题是Caliburn配置元素的约定.例:
我有一个ViewModel"MainViewModel",它通过约定绑定到"MainView".当事件发生时,我希望应用程序显示"MainView2"而不是"MainView".我可以想象有一种程序化的设置方法,但我对Caliburn的经验不足是一个问题.
我目前正在为我的项目编写一个Edit函数,我似乎无法使View Model正确,允许它从View传回Controller.视图模型的结构如下:
public class CreateUserViewModel : ICreateUserViewModel
{
#region Properties
public string UserName { get; set; }
public string Password { get; set; }
public string Email { get; set; }
public string SelectedUserType { get; set; }
public List<ICreateUserItemViewModel> UserTypes { get; set; }
public List<ICreateUserItemViewModel> Products { get; set; }
public List<ICreateUserItemViewModel> Languages { get; set; }
#endregion
#region Constructor
public CreateUserViewModel()
{
}
public CreateUserViewModel(List<Product> products, List<Language> languages)
{
Products = new List<ICreateUserItemViewModel>();
foreach (var prod in …Run Code Online (Sandbox Code Playgroud)