private void Callback(FileModel file) { if (null != _callback) { _callback(file); } this.DialogResult = true; }
private void Open(FileModel file) { if (file.IsDirectory) { _path += "\\" + file.Name.Trim('\\'); _backCommand.RaiseCanExecuteChanged(); Refresh(); } else { //System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(file.Url, UriKind.RelativeOrAbsolute), "_blank"); if (null != _callback) { _callback(file); //_window.DialogResult = true; //_window.Close(); } } }