Пример #1
0
 private void OnEditMeasureCancelHandler()
 {
     IsEditMeasureWindowOpen = false;
     WebsiteEditMeasureViewModel.MeasureSaved         -= OnEditMeasureSaveHandler;
     WebsiteEditMeasureViewModel.MeasureEditCancelled -= OnEditMeasureCancelHandler;
     WebsiteEditMeasureViewModel.SetViewMode(WebsiteEditMeasureViewModeEnum.Normal);
     WebsitePagesEditView.ShowEditors();
 }
Пример #2
0
        private void OnEditMeasureSaveHandler()
        {
            //MeasureColumns.FirstOrDefault(mc => mc.WebsiteMeasure.ReportMeasure.Name == WebsiteEditMeasureViewModel.SelectedMeasure.Measure.Name).SubmitPropertyChanged();
            activeMeasureColumn.SubmitPropertyChanged();
            activeMeasureColumn = null;

            IsEditMeasureWindowOpen = false;
            WebsiteEditMeasureViewModel.MeasureSaved         -= OnEditMeasureSaveHandler;
            WebsiteEditMeasureViewModel.MeasureEditCancelled -= OnEditMeasureCancelHandler;
            WebsiteEditMeasureViewModel.SetViewMode(WebsiteEditMeasureViewModeEnum.Normal);
            WebsitePagesEditView.ShowEditors();
        }
Пример #3
0
        public void EditColumn(MeasureColumn measureColumn)
        {
            IsEditMeasureWindowOpen = true;
            activeMeasureColumn     = measureColumn;
            WebsiteEditMeasureViewModel.AssignSelectedMeasure(measureColumn.WebsiteMeasure);
            WebsiteEditMeasureViewModel.MeasureSaved         -= OnEditMeasureSaveHandler;
            WebsiteEditMeasureViewModel.MeasureEditCancelled -= OnEditMeasureCancelHandler;
            WebsiteEditMeasureViewModel.MeasureSaved         += OnEditMeasureSaveHandler;
            WebsiteEditMeasureViewModel.MeasureEditCancelled += OnEditMeasureCancelHandler;
            WebsiteEditMeasureViewModel.SetViewMode(WebsiteEditMeasureViewModeEnum.TitleOnly);

            WebsitePagesEditView.HideEditors();
        }