void FrameOnViewChanged(object sender, ViewChangedEventArgs viewChangedEventArgs) { if (Frame.View != null) { if (Frame.View.IsControlCreated) BringViewControlToFront(Frame.View.Control as Control); else Frame.View.ControlsCreated += View_ControlsCreated; } }
void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { if (person != null && View.CurrentObject != null && View.CurrentObject.GetType() == typeof(Person)) { Person current = (Person)View.CurrentObject; current.FirstName = person.FirstName; current.LastName = person.LastName; person = null; } }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { if (this.model == null || this.model.ViewModel != this.ActiveSceneViewModel) { this.model = this.ActiveSceneViewModel == null ? new DataPanelModel((SceneViewModel)null, false) : this.ActiveSceneViewModel.DataPanelModel; this.model.AddDataSourceMenuHost = this.menuHost; this.DataContext = (object)this.model; } this.UpdatePaneVisibility(); }
void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { if (View != null && View.IsControlCreated) { var control = (View.Control) as GridControl; if (control != null) { control.BringToFront(); } } }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs args) { if (this.pausedTool == null) { return; } Tool tool = this.pausedTool; this.pausedTool = (Tool)null; this.ActiveTool = tool; }
private void OnDataProviderViewChanged(object sender, ViewChangedEventArgs e) { if (!this.IsDataReady) { this.View.UpdateService.RegisterUpdate((int)UpdateFlags.All); return; } if (e.Action == CollectionChange.Reset) { this.View.UpdateService.RegisterUpdate((int)UpdateFlags.All); } else if (e.Action == CollectionChange.ItemChanged) { this.View.UpdateService.RegisterUpdate((int)UpdateFlags.AffectsContent); this.dataChangeFlags |= DataChangeFlags.PropertyChanged; } else { var changes = e.Changes; for (int i = 0; i < changes.Count; i++) { var change = changes[i]; object changedItem = change.ChangedCoordinate.RowGroup; object addRemoveItem = change.AddedOrRemovedCoordinate.RowGroup; // We use only RowGroupIndex for RowLayout and ColumnGroupIndex for ColumnLayout. // For now only rowLayout is updated. int index = change.AddRemoveRowGroupIndex; AddRemoveLayoutResult result; switch (e.Action) { case CollectionChange.ItemInserted: result = this.layoutController.AddItem(changedItem, addRemoveItem, index); this.View.UpdateService.RegisterUpdate((int)UpdateFlags.AffectsContent); break; case CollectionChange.ItemRemoved: result = this.layoutController.RemoveItem(changedItem, addRemoveItem, index); this.View.UpdateService.RegisterUpdate((int)UpdateFlags.AffectsContent); break; default: System.Diagnostics.Debug.Assert(true, "Not expected action. Only Add, Remove or Reset are supported"); break; } } } this.View.CurrencyService.OnRefreshData(); }
void OnActiveViewChanged(object sender, ViewChangedEventArgs e) { if (m_oldWindow != null) m_oldWindow.KeyDown -= OnKeyDown; m_oldWindow = CurrentWindow; View = e.NewView as WPFSceneView; OnViewChanged(); if (CurrentWindow != null) CurrentWindow.KeyDown += OnKeyDown; }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { if (e.NewView == null) { return; } ViewBridge.LinkedView linkedView = this.FindLinkedView(e.NewView); if (linkedView.IsSelected) { return; } linkedView.ShowInFront(); }
private void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { ActionContainerBarItem printActionContainer = PrintActionContainer; ObjectView objectView = Frame.View as ObjectView; if (printActionContainer != null && objectView != null) { PrintActionContainer.Manager.Items[printingSettingsStorageSelector.Caption].PaintStyle = BarItemPaintStyle.CaptionGlyph; Type objectType = objectView.ObjectTypeInfo.Type; bool barVisible = (objectType == typeof(EventDemoObject) || objectType == typeof(GridDemoObject) || objectType == typeof(LayoutDemoObject) || objectType == typeof(TreeListDemoObject)); GetOwnToolbarForBarItemContainer(PrintActionContainer).Visible = barVisible; } }
void FrameOnViewChanged(object sender, ViewChangedEventArgs viewChangedEventArgs) { if (Frame.View != null) { if (Frame.View.IsControlCreated) { BringViewControlToFront(Frame.View.Control as Control); } else { Frame.View.ControlsCreated += View_ControlsCreated; } } }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { if (e.OldView != null && e.NewView == null) { this.Detach(); } else if (e.OldView == null && e.NewView != null) { this.Attach(); } else { this.UpdateModel(); } }
void NotifyViewChanged(GridQuery gridQuery, ViewChangedEventArgs e) { if (e.ChangeType == YamsterViewChangeType.StatisticsChanged) { ctlQueriesGrid.QueueDraw(); } else { // For all other events, rebuild everything if (gridQuery == focusedGridQuery) { showFocusedGridQueryLagger.RequestAction(); } } }
private void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { if (_link != null) { if (_previousView is ListView) { _link.ListView = null; } _previousView = null; _link = null; OnLinkChanged(); } View view = Frame.View; var listView = view as ListView; if (listView != null) { _link = new Link(listView); OnLinkChanged(); } }
void OnActiveViewChanged(object sender, ViewChangedEventArgs e) { if (m_oldWindow != null) { m_oldWindow.KeyDown -= OnKeyDown; } m_oldWindow = CurrentWindow; View = e.NewView as WPFSceneView; OnViewChanged(); if (CurrentWindow != null) { CurrentWindow.KeyDown += OnKeyDown; } }
private void OnView_Changed(object sender, ViewChangedEventArgs e) { if (Frame != null && Frame.View != null) { if (!Frame.View.Id.Contains("DetailView")) { IObjectSpace os = Application.CreateObjectSpace(); AccessLog acl = os.CreateObject <AccessLog>(); acl.AccessDate = DateTime.Now; acl.Employee = os.GetObjectByKey <Employee>(os.GetKeyValue(SecuritySystem.CurrentUser)); acl.ViewId = Frame.View.Id; acl.ActionDescription = Window.View.Caption; acl.Save(); os.CommitChanges(); } } }
private void ViewService_ActiveViewChanging(object sender, ViewChangedEventArgs args) { Tool activeTool = this.ActiveTool; this.ActiveTool = (Tool)null; this.pausedTool = activeTool; if (args.NewView != null) { return; } this.overrideTool = (Tool)null; this.candidateOverrideTool = (Tool)null; if (this.dispatcherTimer == null) { return; } this.dispatcherTimer.Stop(); }
private void AssociatedObject_ViewChanged(object sender, ViewChangedEventArgs e) { blackOutDates.Clear(); for (int i = -4; i < 3; i++) { blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(-2)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(2)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(6)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(10)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(14)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(18)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(22)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(26)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(30)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(34)); } this.AssociatedObject.BlackoutDates = blackOutDates; }
private void MapViewViewChanged(object sender, ViewChangedEventArgs e) { foreach (MapPin mapPin in _mapPins) { if (DataSource.FocusedLocationId != null && DataSource.FocusedLocationId.Value.Equals(mapPin.ID)) { _focusedMapPin = mapPin; UpdateMapFolderList(DataSource.FocusedLocationId.Value); //DataSource.SelectedStorageFolders = new List<StorageFolder>(); mapPin.Focus(); DefaultViewModel["Focused"] = true; DataSource.FocusedLocationId = null; } mapPin.Mark(); } MapView.ViewChanged -= MapViewViewChanged; }
void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { if (estoria != null && View.CurrentObject != null && View.CurrentObject.GetType() == typeof(Estoria)) { Estoria current = (Estoria)View.CurrentObject; if (estoria.ComoUmBeneficiado != null) { current.ComoUmBeneficiado = current.Session.GetObjectByKey <Beneficiado>(estoria.ComoUmBeneficiado.Oid); } current.ProjetoParteInteressada = current.Session.GetObjectByKey <ProjetoParteInteressada>(estoria.ProjetoParteInteressada.Oid); current.Modulo = current.Session.GetObjectByKey <Modulo>(estoria.Modulo.Oid); if (estoria.EstoriaPai != null) { current.EstoriaPai = current.Session.GetObjectByKey <Estoria>(estoria.EstoriaPai.Oid); } estoria = null; } }
private void HandleElementValueChanged(VSConstants.VSSELELEMID elementId, object oldValue, object newValue) { switch (elementId) { case VSConstants.VSSELELEMID.SEID_DocumentFrame: var viewChanged = ViewChanged; if (viewChanged != null) { ITextView oldView = GetTextView((IVsWindowFrame)oldValue); ITextView newView = GetTextView((IVsWindowFrame)newValue); ViewChangedEventArgs e = new ViewChangedEventArgs(oldView, newView); viewChanged(this, e); } return; case VSConstants.VSSELELEMID.SEID_LastWindowFrame: break; case VSConstants.VSSELELEMID.SEID_PropertyBrowserSID: break; case VSConstants.VSSELELEMID.SEID_ResultList: break; case VSConstants.VSSELELEMID.SEID_StartupProject: break; case VSConstants.VSSELELEMID.SEID_UndoManager: break; case VSConstants.VSSELELEMID.SEID_UserContext: break; case VSConstants.VSSELELEMID.SEID_WindowFrame: break; default: break; } }
private void HandleElementValueChanged(VSConstants.VSSELELEMID elementId, object oldValue, object newValue) { switch (elementId) { case VSConstants.VSSELELEMID.SEID_DocumentFrame: var viewChanged = ViewChanged; if (viewChanged != null) { ITextView oldView = GetTextView((IVsWindowFrame)oldValue); ITextView newView = GetTextView((IVsWindowFrame)newValue); ViewChangedEventArgs e = new ViewChangedEventArgs(oldView, newView); viewChanged(this, e); } return; case VSConstants.VSSELELEMID.SEID_LastWindowFrame: break; case VSConstants.VSSELELEMID.SEID_PropertyBrowserSID: break; case VSConstants.VSSELELEMID.SEID_ResultList: break; case VSConstants.VSSELELEMID.SEID_StartupProject: break; case VSConstants.VSSELELEMID.SEID_UndoManager: break; case VSConstants.VSSELELEMID.SEID_UserContext: break; case VSConstants.VSSELELEMID.SEID_WindowFrame: break; default: break; } }
private void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { if (_link != null) { if (_previousView is ListView) { _link.ListView = null; } _previousView = null; _link = null; OnLinkChanged(); } View view = Frame.View; var listView = view as ListView; if (listView != null) { _link = new Link(listView); OnLinkChanged(); } }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { this.activeDocumentWrapper.Update(this.designerContext.ActiveSceneViewModel); if (this.activeDocumentWrapper.IsEnabled && !this.wrapperList.Contains(this.activeDocumentWrapper)) { this.wrapperList.Add(this.activeDocumentWrapper); } else if (!this.activeDocumentWrapper.IsEnabled && this.wrapperList.Contains(this.activeDocumentWrapper)) { this.wrapperList.Remove(this.activeDocumentWrapper); } if (this.IsPaneEnabled != this.resourceContainersEnabled) { this.RefreshResourceContainers(); this.OnPropertyChanged("IsPaneEnabled"); } if (this.DesignerContext.ActiveSceneViewModel != null) { this.UpdateResourcePaneSupported(); } this.OnPropertyChanged("IsEnabledNewDictionary"); }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { this.elementSelectionSetChangeStamp = 0U; this.textSelectionSetChangeStamp = 0U; this.selectedNodes = (SceneNode[])null; this.secondarySelectedNodes = (SceneNode[])null; SceneView sceneView = e.NewView as SceneView; this.viewModel = sceneView == null || !sceneView.IsDesignSurfaceVisible ? (SceneViewModel)null : sceneView.ViewModel; if (this.ActiveSceneSwitched != null) { this.ActiveSceneSwitched((object)this, EventArgs.Empty); } if (this.viewModel == null) { this.FireEarlyActiveSceneUpdatePhase(new SceneUpdatePhaseEventArgs((SceneViewModel)null, true, false)); this.FireLateActiveSceneUpdatePhase(new SceneUpdatePhaseEventArgs((SceneViewModel)null, true, false)); } else { this.viewModel.SchedulePipelineTasks(true, false); } }
/// <summary> /// Obsługa zmiany bieżącego widoku /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">EventArgs.</param> private void ViewManager_CurrentViewChanged(object sender, ViewChangedEventArgs e) { if (e.CurrentView != null) { if (CurrentView is BaseListWindow) { ResetRibbonBar(); SetListWindowMode(); } else if (CurrentView is BaseDetailsWindow) { managementContextualTabGroup.Visibility = ElementVisibility.Collapsed; ResetRibbonBar(); } } else { managementContextualTabGroup.Visibility = ElementVisibility.Collapsed; ResetRibbonBar(); } }
private void AssociatedObject_ViewChanged(object sender, ViewChangedEventArgs e) { blackOutDates.Clear(); for (int i = -2; i < 3; i++) { blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(2)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(3)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(4)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(5)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(6)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(7)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(8)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(9)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(10)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(11)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(12)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(13)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(14)); blackOutDates.Add(DateTime.Now.Date.AddMonths(i).AddDays(15)); } this.AssociatedObject.MonthViewSettings.BlackoutDates = blackOutDates; }
private void OnViewChanged(object sender, ViewChangedEventArgs e) { BackgroundParser = null; if (e.NewView != null) { var backgroundParser = BackgroundParserFactoryService.GetBackgroundParser(e.NewView.TextBuffer); BackgroundParser = backgroundParser; if (backgroundParser != null) { ToolWindowPane.Caption = "Markdown Preview - "; backgroundParser.ParseComplete += WeakEvents.AsWeak <ParseResultEventArgs>(HandleBackgroundParseComplete, eh => backgroundParser.ParseComplete -= eh); backgroundParser.RequestParse(false); } } CurrentView = e.NewView; if (BackgroundParser == null) { ToolWindowPane.Caption = "Markdown Preview"; Browser.NavigateToString(EmptyWindowHtml); } }
void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { Frame.ViewChanged -= Frame_ViewChanged; _dataSourceRefreshTimer.Start(); RefreshReminders(); }
private void OnViewChanged(ViewChangedEventArgs e) { if(!BlockViewChangedEvent) { _viewChangedEvent(this, e); } }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { this.TryChangeWorkingProject(); }
private void MapViewViewChanged(object sender, ViewChangedEventArgs e) { foreach (MapPin mapPin in _mapPins) { if (DataSource.FocusedLocationId != null && DataSource.FocusedLocationId.Value.Equals(mapPin.ID)) { _focusedMapPin = mapPin; UpdateMapFolderList(DataSource.FocusedLocationId.Value); //DataSource.SelectedStorageFolders = new List<StorageFolder>(); mapPin.Focus(); DefaultViewModel["Focused"] = true; DataSource.FocusedLocationId = null; } mapPin.Mark(); } MapView.ViewChanged -= MapViewViewChanged; }
void Window_ViewChanged(object sender, ViewChangedEventArgs e) { if (Window.View is ObjectView) { Window.View.ObjectSpace.ModifiedChanged += ObjectSpace_ModifiedChanged; Window.View.ObjectSpace.Reloaded += ObjectSpace_Reloaded; } }
private void OnViewSizeChanged() { ViewChangedEventArgs e=new ViewChangedEventArgs(); e.SizeChange = true; OnViewChanged(e); }
void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { Frame.ViewChanged -= Frame_ViewChanged; _dataSourceRefreshTimer.Start(); RefreshReminders(); }
private void OnViewLocationChanged() { ViewChangedEventArgs e=new ViewChangedEventArgs(); e.LocationChange = true; OnViewChanged(e); }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { this.SetDocumentErrors(this.GetDocumentErrorsFromContext()); this.SetCurrentErrors(); }
private void OnMapControlViewChanged(object sender, ViewChangedEventArgs e) { UpdateZoomControls(); }
private void window_ViewChanged(object sender, ViewChangedEventArgs e) { if (Window.View.ObjectTypeInfo.Type == typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemTypePermissionObject) | Window.View.ObjectTypeInfo.Type == typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole) | Window.View.ObjectTypeInfo.Type == typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser)) { navigateBackAction.Active.SetItemValue("noNeed", false); navigateForwardAction.Active.SetItemValue("noNeed", false); } else { AddToHistory(Window.View); if (Window.View is ObjectView) { Window.View.Closed += new EventHandler(view_Closed); objectSpace = Window.View.ObjectSpace; objectSpace.Committing += new EventHandler<CancelEventArgs>(objectSpace_Committing); objectSpace.Committed += new EventHandler(objectSpace_Committed); objectSpace.Disposed += new EventHandler(objectSpace_Disposed); if (Window.View is DetailView) { Window.View.CurrentObjectChanged += new EventHandler(view_CurrentObjectChanged); } } } }
private void Frame_ViewChanged(object sender, ViewChangedEventArgs e) { BindMergeAction(pswMerger); BindMergeAction(pswMergerContextMenu); }
private void OnViewChanged() { ViewChangedEventArgs e=new ViewChangedEventArgs(); OnViewChanged(e); }
// Handler function called when the active map's view changes private void Map_ViewChanged(object o, ViewChangedEventArgs e) { // Get the map MapInfo.Mapping.Map map = (MapInfo.Mapping.Map) o; // Display the zoom level Double dblZoom = System.Convert.ToDouble(String.Format("{0:E2}", mapControl1.Map.Zoom.Value)); statusBar1.Text = "Zoom: " + dblZoom.ToString() + " " + mapControl1.Map.Zoom.Unit.ToString(); }
internal void vViewChanged() { if (ViewChanged != null) { ViewChangedEventArgs e = new ViewChangedEventArgs(); e.ThumbnailSize = ContentOptions.ThumbnailSize; e.View = ContentOptions.ViewMode; ViewChanged.Invoke(this, e); } }
private void map_ViewChanged(object sender, ViewChangedEventArgs e) { double level = (sender as Bing.Maps.Map).ZoomLevel; foreach (TextBlock tb in list) tb.Opacity = GetOpacityByZoomLevel(level); }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs args) { this.OnPropertyChanged("IsExpanded"); this.RefreshBreadcrumbTrail(); }
private void ViewService_ActiveViewChanged(object sender, ViewChangedEventArgs e) { this.UpdateIsSearchEnabled(e.NewView as SceneView); }
private void Map_ViewChanged(object sender, ViewChangedEventArgs e) { if (isDragging) { //Reset the map center to the stored center value. //This prevents the map from panning when we drag across it. _map.Center = _center; } }