Exemple #1
0
        private void OnChangeStepExecute(object obj)
        {
            var groupDesc      = obj as DoubleGroupDescription;
            var settingsWindow = new StepSettingsWindow(groupDesc.Step);

            settingsWindow.Closed += (s, e) =>
            {
                if (e.DialogResult == true)
                {
                    groupDesc.Step = int.Parse(e.PromptResult);

                    if (!this.Pivot.DataProvider.DeferUpdates)
                    {
                        this.Pivot.DataProvider.Refresh();
                    }
                }
            };

            settingsWindow.ShowDialog();
        }
        private void OnChangeStepExecute(object obj)
        {
            var groupDesc = obj as DoubleGroupDescription;
            var settingsWindow = new StepSettingsWindow(groupDesc.Step);
            
            settingsWindow.Closed += (s, e) =>
            {
                if (e.DialogResult == true)
                {
                    groupDesc.Step = int.Parse(e.PromptResult);

                    if (!this.Pivot.DataProvider.DeferUpdates)
                    {
                        this.Pivot.DataProvider.Refresh();
                    }
                }
            };

            settingsWindow.ShowDialog();
        }