System.Windows.Forms.FileDialogHelper.Show C# (CSharp) Méthode

Show() public méthode

public Show ( ) : void
Résultat void
		public void Show()
		{
			
			bool isComplete = false;
			this.RunModal();
			Host.DialogResult = DialogResult.OK;
			this.SelectionDidChange += delegate(object sender, EventArgs e) {
				if(Host is FileDialog)
				{
					FileDialog fileDialog = (FileDialog)Host;
					fileDialog.FileName = this.Url.Path;
				}
			};
			this.CancelEvent += delegate {
				Host.DialogResult = DialogResult.Cancel;
			};
			Console.WriteLine("complete");
			
		}
	

Usage Example

Exemple #1
0
 public DialogResult ShowDialog(IWin32Window owner)
 {
     //TODO:
     m_helper.Show();
     return(DialogResult);
 }