private void OpenFileName(string filenameStr) { if (filenameStr != null) { //String fileStr = File.ReadAllText(filenameStr); Console.WriteLine($"Opening {filenameStr}"); DashboardUC.OpenFileName(filenameStr); } }
public MainWindow() { InitializeComponent(); DataContext = this; // load a dashboard in the view space DashboardConfig dashboardConfig = new DashboardConfig("Dashboard"); DashboardUC_ = new DashboardUC(dashboardConfig); MainContainer.Content = DashboardUC_; //this.Title = DashboardUC_.DashboardConfig_.DashboardName_; DashboardUC_.PropertyChanged += DashboardUC__PropertyChanged; //AddSeedCells(); String fileNameStr = (String)((App)Application.Current).Properties["FilePathArgName"]; DashboardUC_.OpenFileName(fileNameStr); }