public MainWindow() { InitializeComponent(); SourceInitialized += (s, a) => { // We need to initialize the following once main window is ready. SetTitle(null); SetDisplayPosition(); RefreshRecentProjects(); RefreshProjectKinds(); OriginalTitle = Title; MdiContainer cw = ContainerWindow; cw.MdiChildTitleChanged += Container_MdiChildTitleChanged; DockPanel dp = FindName("ChildButtons") as DockPanel; dp.Children.Add(cw.GetChildButtons()); Status = new StatusInformationBar(StatusBox); Modules.StartApp(); }; }
public StatusThread(StatusInformationBar b) { Bar = b; Task = new Thread(new ThreadStart(Run)); Task.Name = "StatusThread"; }