private void FinishSOP(SOPViewModel vm, bool IsCancle = false) { // VlcContext.CloseAll(); this.Publish(new ClearAllNotificationLayer() { MessageId = vm.MessageId, IsCancle = IsCancle }); this.Publish(new ShowAllLayers()); this.Publish(new ShowNotificationBox()); if (!IsCancle) { if (vm._currentMessage.GeneralType == SOPSources.WantedCar || vm._currentMessage.GeneralType == SOPSources.TruckViolation) this.Publish(new UnregisterLiveTrackingDependency()); this.Publish(new FinishEvent() { EventId = vm.MessageId }); } //radExpanderSOP.IsExpanded = false; //radExpanderSOP.IsEnabled = false; vm.IsExpanded = false; vm.IsEnabled = false; PopupCanvas.Children.Clear(); ReturnToDefaultScaleGridBasicInfo(); ReturnToDefaultScaleSOP(); }
public SOPList() { _sopActiveStepIndex = 0; Properties.Resources.Culture = new CultureInfo(Utility.GetLang()); InitializeComponent(); sopViewModel = new SOPViewModel(); sopViewModel.LoadSteps += sopViewModel_LoadSteps; DataContext = sopViewModel; if (SopListPanel.Items.Count > 0) SopListPanel.SelectedIndex = 0; SetDimentionsForMediaCanvas(); this.Unloaded += SOPList_Unloaded; }