private void Open_Click(object sender, RoutedEventArgs e) { OpenFiles of = new OpenFiles(); if (!string.IsNullOrEmpty(SourceFileName)) { of.SourceFileName = SourceFileName; } if (!string.IsNullOrEmpty(TargetFileName)) { of.TargetFileName = TargetFileName; } if (!string.IsNullOrEmpty(ChangesFileName)) { of.ChangesFileName = ChangesFileName; } of.Owner = this; of.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; of.ShowDialog(); if (of.delta != null) { delta = of.delta; deltaVC = new DeltaViewController(delta); view.Source = deltaVC.View; } }