protected void finishBuildingChildWindow(Moderator aMod) { NVcad2dViewWindow wndow = null; double wndowwidth = 0.0; this.myParentWindow.Dispatcher.BeginInvoke(new Action(() => { wndow = aMod.cadViews.Children[0] as NVcad2dViewWindow; aMod.t.Stop(); aMod.t.Interval = 5; wndowwidth = wndow.ActualWidth; if (wndowwidth > 0.0) { aMod.t.Enabled = false; // Code Documentation Tag 20140603_06 aMod.establishAllViewTransforms(); this.Model.WorldMouse.PropertyChanged += WorldMouse_PropertyChanged; } })); if (wndowwidth == 0.0) { return; } }
private void MainWindowContainer_Loaded(object sender, RoutedEventArgs e) { Moderators = new List<Moderator>(); activeModerator = new Moderator(this, this.MainWindowContainer); Moderators.Add(activeModerator); }
protected void finishBuildingChildWindow(Moderator aMod) { NVcad2dViewWindow wndow = null; double wndowwidth = 0.0; this.myParentWindow.Dispatcher.BeginInvoke(new Action(() => { wndow = aMod.cadViews.Children[0] as NVcad2dViewWindow; aMod.t.Stop(); aMod.t.Interval = 5; wndowwidth = wndow.ActualWidth; if (wndowwidth > 0.0) { aMod.t.Enabled = false; // Code Documentation Tag 20140603_06 aMod.establishAllViewTransforms(); this.Model.WorldMouse.PropertyChanged +=WorldMouse_PropertyChanged; } })); if (wndowwidth == 0.0) return; }