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");
}