Beispiel #1
0
        private void BrowseForExport()
        {
            var sfd = DialogsUtility.CreateSaveFileDialog("Export");

            DialogsUtility.AddExtension(sfd, "XML File", "*.xml");

            sfd.ShowDialog();

            ExportPath = sfd.FileName;
        }
Beispiel #2
0
        private void BrowseForImport()
        {
            var ofd = DialogsUtility.CreateOpenFileDialog("Import");

            DialogsUtility.AddExtension(ofd, "XML File", "*.xml");

            ofd.ShowDialog();

            ImportPath = ofd.FileName;
        }
        private void BrowseDestination()
        {
            var sfd = DialogsUtility.CreateFolderBrowser();

            sfd.ShowDialog();

            if (!string.IsNullOrEmpty(sfd.SelectedPath))
            {
                Destination = sfd.SelectedPath;
            }
        }
Beispiel #4
0
        private void BrowseForPath()
        {
            var fd = DialogsUtility.CreateFolderBrowser();

            fd.ShowDialog();

            if (!String.IsNullOrEmpty(fd.SelectedPath))
            {
                WorkspacePath = fd.SelectedPath;
            }
        }
        private void SelectDBFolder()
        {
            var dlg = DialogsUtility.CreateFolderBrowser();

            dlg.ShowDialog();

            if (dlg.SelectedPath != null)
            {
                DBFolder = dlg.SelectedPath;
            }
        }
        public void Browse()
        {
            var dlg = DialogsUtility.CreateSaveFileDialog("Select Database File");

            DialogsUtility.AddExtension(dlg, "SQLite Database", "*.db");
            dlg.ShowDialog();

            if (!string.IsNullOrEmpty(dlg.FileName))
            {
                DatabasePath = dlg.FileName;
            }
        }
Beispiel #7
0
        private void BrowseDBPath()
        {
            var dlg = DialogsUtility.CreateOpenFileDialog("Open Database", checkFileExists: false);

            DialogsUtility.AddExtension(dlg, "SQLite Database", "*.db");

            var res = dlg.ShowDialog();

            if (true == res.Value)
            {
                DbPath = dlg.FileName;
            }
        }
        private void AddPath()
        {
            var sfd = DialogsUtility.CreateFolderBrowser();

            sfd.ShowDialog();

            if (string.IsNullOrEmpty(sfd.SelectedPath))
            {
                return;
            }

            AddPath(sfd.SelectedPath);
        }
        private void Browse()
        {
            var dlg = DialogsUtility.CreateOpenFileDialog("Select an image");

            var    types     = from i in PostContent.GetSupportedTypes() select "*." + i;
            string supported = string.Join(";", types);

            DialogsUtility.AddExtension(dlg, "Images", supported);

            dlg.ShowDialog();

            if (!string.IsNullOrEmpty(dlg.FileName))
            {
                ImagePath = dlg.FileName;
            }
        }
Beispiel #10
0
        private void SelectDatabase()
        {
            try
            {
                var dlg = DialogsUtility.CreateOpenFileDialog("Select/Create Database", checkFileExists: false);

                dlg.ShowDialog(openDatabaseWindow);

                if (!string.IsNullOrEmpty(dlg.FileName))
                {
                    Path = dlg.FileName;
                }
            }
            catch (Exception e)
            {
                MessageBoxFactory.ShowError(e);
            }
        }
        private void BrowsePath()
        {
            try
            {
                var dlg = DialogsUtility.CreateSaveFileDialog("Set Database File", overwritePrompt: false);
                DialogsUtility.AddExtension(dlg, "ThingsDB", "*.tdb");

                dlg.ShowDialog();

                if (!string.IsNullOrEmpty(dlg.FileName))
                {
                    DBPath = dlg.FileName;
                }
            }
            catch (Exception e)
            {
                MessageBoxFactory.ShowError(e);
            }
        }