Exemple #1
0
        /// <summary>
        /// Retrieve and apply any pending marker color/shape changes
        /// </summary>

        void ApplyPendingChanges()
        {
            GetFormValues();
            string serializedText = SerializeMsx.Serialize(V);                          // serialize

            VisualMsx visMx = SerializeMsx.DeserializeVisual(serializedText, Analysis); // debug

            Api.SetVisualProperties(V.Id, serializedText);
        }
Exemple #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;
        }