/// <summary> /// The locate. /// </summary> /// <param name="xamlClrRef"> /// The xaml clr ref. /// </param> private void Locate(XamlClrRef xamlClrRef) { this.Status = string.Format("Locate referenced assembly {0}", xamlClrRef.CodeBase); var openFileDialog = new OpenFileDialog { FileName = xamlClrRef.CodeBase, CheckFileExists = true, Filter = "Assemblies (*.dll;*.exe)|*.dll;*.exe|All Files|*.*", Title = this.Status }; if (openFileDialog.ShowDialog(Application.Current.MainWindow).Value) { if (!xamlClrRef.Load(openFileDialog.FileName)) { MessageBox.Show("Error loading assembly"); } } }
private void Locate(XamlClrRef xamlClrRef) { this.Status = string.Format("Locate referenced assembly {0}", xamlClrRef.CodeBase); var openFileDialog = new OpenFileDialog { FileName = xamlClrRef.CodeBase, CheckFileExists = true, Filter = "Assemblies (*.dll;*.exe)|*.dll;*.exe|All Files|*.*", Title = this.Status }; if (openFileDialog.ShowDialog(Application.Current.MainWindow).Value) { if (!xamlClrRef.Load(openFileDialog.FileName)) { MessageBox.Show("Error loading assembly"); } } }