示例#1
0
 public DataVaultBrowserForm(IVaultFormat format, String uri)
 {
     Initialize();
     DeferredVaultInitialization = () =>
     {
         var fmt = format ?? VaultFormats.Default;
         if (uri == null)
         {
             if (!_browser.Ctx.Execute(new VaultOpenCommand(_browser.Ctx)))
             {
                 DialogResult = DialogResult.Cancel;
                 Close();
             }
         }
         else
         {
             var vault = fmt.OpenCore(uri);
             _browser.Ctx.SetVault(vault, false);
         }
     };
 }
示例#2
0
 public DataVaultBrowserForm(IVaultFormat format, String uri)
 {
     Initialize();
     DeferredVaultInitialization = () =>
     {
         var fmt = format ?? VaultFormats.Default;
         if (uri == null)
         {
             if (!_browser.Ctx.Execute(new VaultOpenCommand(_browser.Ctx)))
             {
                 DialogResult = DialogResult.Cancel;
                 Close();
             }
         }
         else
         {
             var vault = fmt.OpenCore(uri);
             _browser.Ctx.SetVault(vault, false);
         }
     };
 }
示例#3
0
 public DataVaultBrowserForm(IVaultFormat format)
     : this(format, null)
 {
 }
示例#4
0
 public DataVaultBrowserForm(IVaultFormat format)
     : this(format, null)
 {
 }