Exemplo n.º 1
0
        public Guid ShowPathBrowser(string headerText, bool enumerateFiles, bool showSystemResources, ResourcePath initialPath, ValidatePathDlgt validatePathDlgt)
        {
            ChoosenResourcePath = null;
            UpdateResourceProviderPathTree();
            HeaderText          = headerText;
            _dialogHandle       = Guid.NewGuid();
            _dialogAccepted     = false;
            _enumerateFiles     = enumerateFiles;
            _validatePathDlgt   = validatePathDlgt;
            ShowSystemResources = showSystemResources;

            IScreenManager screenManager    = ServiceRegistration.Get <IScreenManager>();
            Guid?          dialogInstanceId = screenManager.ShowDialog(Consts.DIALOG_PATH_BROWSER, OnDialogClosed);

            if (!dialogInstanceId.HasValue)
            {
                throw new InvalidDataException("File browser could not be shown");
            }
            _dialogInstanceId = dialogInstanceId.Value;
            return(_dialogHandle);
        }
Exemplo n.º 2
0
    public Guid ShowPathBrowser(string headerText, bool enumerateFiles, bool showSystemResources, ResourcePath initialPath, ValidatePathDlgt validatePathDlgt)
    {
      ChoosenResourcePath = null;
      UpdateResourceProviderPathTree();
      HeaderText = headerText;
      _dialogHandle = Guid.NewGuid();
      _dialogAccepted = false;
      _enumerateFiles = enumerateFiles;
      _validatePathDlgt = validatePathDlgt;
      ShowSystemResources = showSystemResources;

      IScreenManager screenManager = ServiceRegistration.Get<IScreenManager>();
      Guid? dialogInstanceId = screenManager.ShowDialog(Consts.DIALOG_PATH_BROWSER, OnDialogClosed);
      if (!dialogInstanceId.HasValue)
        throw new InvalidDataException("File browser could not be shown");
      _dialogInstanceId = dialogInstanceId.Value;
      return _dialogHandle;
    }
Exemplo n.º 3
0
 public Guid ShowPathBrowser(string headerText, bool enumerateFiles, bool showSystemResources, ValidatePathDlgt validatePathDlgt)
 {
     return(ShowPathBrowser(headerText, enumerateFiles, showSystemResources, null, validatePathDlgt));
 }
Exemplo n.º 4
0
 public Guid ShowPathBrowser(string headerText, bool enumerateFiles, bool showSystemResources, ValidatePathDlgt validatePathDlgt)
 {
   return ShowPathBrowser(headerText, enumerateFiles, showSystemResources, null, validatePathDlgt);
 }