Esempio n. 1
0
 /// <summary>
 /// Helper function used whenever we need to save the current selections
 /// </summary>
 private void ForceClassificationUpdate()
 {
     if (this.ApplicationContext.SelectedDataSource != null && this.ApplicationContext.SelectedDataSource.ImageControl != null)
     {
         this.ApplicationContext.SelectedDataSource.ImageControl.UpdateClassifications(
             ClassificationCheckboxPanelHelper.CollectSelections(this.ClassificationTabSelectionPanel)
             );
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Called when ANY ToggleButton is changed for classification purposes.
        /// </summary>
        private void OnSelectionsChanged()
        {
            this.Item.CurrentSource.Classifications = ClassificationCheckboxPanelHelper.CollectSelections(this.ClassificationPanel);


            if (this.Item.CurrentSource.Classifications.Count == 0)
            {
                // Back to the original
                this.Item.CurrentSource.Classifications.Add(this.Source.CurrentContainerAsClassification);
            }

            this.Source.UpdateSourceFile(this.Item.CurrentSource);
        }