Пример #1
0
        public override bool ViewOkClicked()
        {
            string layerName = _view.LayerName;

            if (string.IsNullOrWhiteSpace(layerName))
            {
                MessageService.Current.Info("Please enter a name of the new layer.");
                return(false);
            }

            if (!View.MemoryLayer)
            {
                string path = Directory.GetDirectoryRoot(Assembly.GetExecutingAssembly().Location);
                if (!_fileDialogService.ChooseFolder(path, out path))
                {
                    return(false);
                }

                Model.Filename = GetFilename(path);
            }
            else
            {
                Model.Filename = View.LayerName;
            }

            Model.GeometryType = View.GeometryType;
            Model.ZValueType   = View.ZValueType;
            Model.MemoryLayer  = View.MemoryLayer;

            return(true);
        }
        private void OnSaveClick(object sender, EventArgs e)
        {
            string filename;

            if (_dialogService.ChooseFolder(Directory.GetCurrentDirectory(), out filename))
            {
                txtPath.Text = filename;
            }
        }
Пример #3
0
        public void AddFolderLink()
        {
            Logger.Current.Trace("In AddFolderLink");
            string path;

            if (_fileDialogService.ChooseFolder(string.Empty, out path))
            {
                AddFolderLink(path);
            }
        }