Example #1
0
        /// <summary>
        /// Show the dialog
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>

        public static DialogResult ShowDialog(
            BarChartMsx v,
            SpotfireViewProps svp)
        {
            Instance = new BarChartPropertiesDialog();
            return(Instance.ShowDialog2(v, svp));
        }
Example #2
0
        /// <summary>
        /// Changes cancelled, restore state
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void CancelButton_Click(object sender, EventArgs e)
        {
            V = (BarChartMsx)SerializeMsx.DeserializeVisual(OriginalChartState, Analysis);

            //if (SVM.ConfigureCount != OriginalConfigureCount) // reconfigure if config changed
            //	SVM.ConfigureRenderingControl();

            //else if (SVM.RefreshCount != OriginalRefreshCount) // refresh if other change
            //	SVM.Refresh();

            DialogResult = DialogResult.Cancel;
            return;
        }
Example #3
0
        private DialogResult ShowDialog2(
            BarChartMsx v,
            SpotfireViewProps svp)
        {
            SVP = svp;
            V   = v;

            OriginalChartState = SerializeMsx.Serialize(v);

            SetupForm();

            DialogResult dr = ShowDialog(SessionManager.ActiveForm);

            return(dr);
        }
Example #4
0
        void ValidateViewInitialization()
        {
            if (SVP == null)
            {
                throw new Exception("ViewManager not defined");
            }

            //SVP.ValidateSpotfireViewPropsInitialization();

            if (V == null)
            {
                V = new BarChartMsx();
            }

            return;
        }