Esempio n. 1
0
        protected virtual void OnButtonBrowseClicked(object sender, System.EventArgs e)
        {
            var dlg = new MonoDevelop.Components.SelectFolderDialog(GettextCatalog.GetString("Select target directory"));

            if (dlg.Run())
            {
                defaultPath = dlg.SelectedFile;
                AppendRelativePath();
            }
        }
Esempio n. 2
0
        protected virtual void OnButtonBrowseClicked(object sender, System.EventArgs e)
        {
            var dlg = new MonoDevelop.Components.SelectFolderDialog(GettextCatalog.GetString("Select target directory"));

            if (dlg.Run())
            {
                defaultPath = dlg.SelectedFile;
                VersionControlDefaultPath.Value = defaultPath;
                entryFolder.Text = defaultPath;
            }
        }
        private void OnLibPathBrowseButtonClick(object sender, EventArgs e)
        {
            var dialog = new MonoDevelop.Components.SelectFolderDialog(GettextCatalog.GetString("Add Path"))
            {
                TransientFor  = (Gtk.Window)Toplevel,
                CurrentFolder = DEFAULT_LIB_DIR,
            };

            if (dialog.Run())
            {
                libPathEntry.Text = dialog.SelectedFile;
            }
        }
Esempio n. 4
0
        protected override string ShowBrowseDialog(string name, string startIn)
        {
            var fd = new SelectFolderDialog(name);

            if (startIn != null)
            {
                fd.CurrentFolder = startIn;
            }

            fd.SetFilters(FileFilters);
            fd.TransientFor = GetTransientFor();

            if (fd.Run())
            {
                return(fd.SelectedFile);
            }
            return(null);
        }
Esempio n. 5
0
        protected override string ShowBrowseDialog(string name, string start_in)
        {
            SelectFolderDialog fd = new SelectFolderDialog(name);

            if (start_in != null)
            {
                fd.InitialFileName = start_in;
            }

            fd.TransientFor = GetTransientFor();

            if (fd.Run())
            {
                return(fd.SelectedFile);
            }
            else
            {
                return(null);
            }
        }
		protected virtual void OnButtonBrowseClicked(object sender, System.EventArgs e)
		{
			var dlg = new MonoDevelop.Components.SelectFolderDialog (GettextCatalog.GetString ("Select target directory"));
			if (dlg.Run ()) {
				defaultPath = dlg.SelectedFile;
				AppendRelativePath ();
			}
		}
Esempio n. 7
0
		private void OnLibPathBrowseButtonClick (object sender, EventArgs e)
		{
			var dialog = new MonoDevelop.Components.SelectFolderDialog (GettextCatalog.GetString ("Add Path")) {
				TransientFor = (Gtk.Window) Toplevel,
				CurrentFolder = DEFAULT_LIB_DIR,
			};
			
			if (dialog.Run ())
				libPathEntry.Text = dialog.SelectedFile;
		}