void LookInBrowseButtonClicked(object sender, EventArgs e)
		{
			FolderDialog dlg = new FolderDialog();
			if (dlg.DisplayDialog("${res:Dialog.NewProject.SearchReplace.LookIn.SelectDirectory}") == DialogResult.OK) {
				Get<ComboBox>("lookIn").SelectedIndex = customDirectoryIndex;
				Get<ComboBox>("lookIn").Text = dlg.Path;
			}
		}
예제 #2
0
        void BrowseButtonClick(object sender, EventArgs e)
        {
            FolderDialog fdiag = new FolderDialog();

            if (fdiag.DisplayDialog("${res:Dialog.ProjectOptions.SelectFolderTitle}") == DialogResult.OK)
            {
                string path = fdiag.Path;
                if (!path.EndsWith("\\") && !path.EndsWith("/"))
                {
                    path += "\\";
                }
                editTextBox.Text = path;
                if (autoAddAfterBrowse)
                {
                    AddButtonClick(null, null);
                }
            }
        }
예제 #3
0
            public void Event(object sender, EventArgs e)
            {
                FolderDialog fdiag = new FolderDialog();

                if (fdiag.DisplayDialog(description) == DialogResult.OK)
                {
                    string path = fdiag.Path;
                    if (panel.baseDirectory != null)
                    {
                        path = FileUtility.GetRelativePath(panel.baseDirectory, path);
                    }
                    if (!path.EndsWith("\\") && !path.EndsWith("/"))
                    {
                        path += "\\";
                    }
                    panel.ControlDictionary[target].Text = path;
                }
            }
예제 #4
0
		void BrowseButtonClick(object sender, EventArgs e)
		{
			FolderDialog fdiag = new FolderDialog();
			if (fdiag.DisplayDialog("${res:Dialog.ProjectOptions.SelectFolderTitle}") == DialogResult.OK) {
				string path = fdiag.Path;
				if (!path.EndsWith("\\") && !path.EndsWith("/"))
					path += "\\";
				editTextBox.Text = path;
				if (autoAddAfterBrowse) {
					AddButtonClick(null, null);
				}
			}
		}
예제 #5
0
		void BrowseDirectories(object sender, EventArgs e)
		{
			FolderDialog fd = new FolderDialog();
			if (fd.DisplayDialog("${res:Dialog.NewProject.SelectDirectoryForProject}") == DialogResult.OK) {
				((TextBox)ControlDictionary["locationTextBox"]).Text = fd.Path;
			}
			// End
		}
			public void Event(object sender, EventArgs e)
			{
				FolderDialog fdiag = new FolderDialog();
				if (fdiag.DisplayDialog(description) == DialogResult.OK) {
					string path = fdiag.Path;
					if (panel.baseDirectory != null) {
						path = FileUtility.GetRelativePath(panel.baseDirectory, path);
					}
					if (!path.EndsWith("\\") && !path.EndsWith("/"))
						path += "\\";
					panel.ControlDictionary[target].Text = path;
				}
			}