Ejemplo n.º 1
0
        public void SelectFile(TextBox pText, string pTitle, List <string> pExtensions, string pDescription)
        {
            string path = CParameterSetter.SelectFile(pTitle, pExtensions, pDescription);

            if (path.Length == 0)
            {
                CDebug.Warning("no path selected");
                return;
            }
            pText.Clear();             //necessary?
            pText.Text = path;
        }
Ejemplo n.º 2
0
        public void SelectFolder(TextBox pText)
        {
            string folder = CParameterSetter.SelectFolder();

            if (folder.Length == 0)
            {
                CDebug.Warning("no folder selected");
                return;
            }
            pText.Clear();
            pText.Text = folder;
        }
Ejemplo n.º 3
0
        public void SelectFile(TextBox pFolder, TextBox pName, TextBox pExtension, string pTitle, List <string> pExtensions, string pDescription)
        {
            string path = CParameterSetter.SelectFile(pTitle, pExtensions, pDescription);

            if (path.Length == 0)
            {
                CDebug.Warning("no path selected");
                return;
            }
            pFolder.Text    = Path.GetDirectoryName(path);
            pName.Text      = Path.GetFileNameWithoutExtension(path);
            pExtension.Text = Path.GetExtension(path);
        }