public ManageWindowsCredentialsViewModel(Instance instance, ManageWindowsCredentialsWindow owner) { _instance = instance; _owner = owner; CredentialsList = LoadCredentialsForInstance(instance); AddCredentialsCommand = new ProtectedCommand(OnAddCredentialsCommand); DeleteCredentialsCommand = new ProtectedCommand(OnDeleteCredentialsCommand, canExecuteCommand: false); ShowCredentialsCommand = new ProtectedCommand(OnShowCredentialsCommand, canExecuteCommand: false); }
public static void PromptUser(Instance instance) { var dialog = new ManageWindowsCredentialsWindow(instance); dialog.ShowModal(); }