Example #1
0
 private void AutoConfigureRequestedEventHandler(object sender, EventArgs args)
 {
     if (_clickCanvasContainer != null)
     {
         BaseGrid.Children.Remove(_clickCanvasContainer);
         _clickCanvasContainer = null;
     }
     DisplayAutoConfigureSettings();
 }
Example #2
0
 private void DisplayClickCanvasContainer(ClickInputs clickInputs)
 {
     _clickCanvasContainer = new ClickCanvasContainer(_folderPath, clickInputs);
     _clickCanvasContainer.AllImagesProcessedEvent     += AllImagesProcessedHandler;
     _clickCanvasContainer.AutoConfigureRequestedEvent += AutoConfigureRequestedEventHandler;
     BaseGrid.Children.Add(_clickCanvasContainer);
     Grid.SetRow(_clickCanvasContainer, 1);
     CancelButton.Content    = "Cancel";
     CancelButton.Visibility = Visibility.Visible;
     HelpButton.Visibility   = Visibility.Visible;
     ScreenTypeStatusHelper.CurrentScreenTypesEnum = ScreenTypesEnum.ClickInputs;
 }
Example #3
0
        private void SetClickInputs(ClickInputs clickInputs)
        {
            _clickInputs = clickInputs;

            if (_clickCanvasContainer != null)
            {
                BaseGrid.Children.Remove(_clickCanvasContainer);
                _clickCanvasContainer = null;
            }

            //set new display
            DisplayModelSettingsContainer();
        }
Example #4
0
        private void Cancel(object sender, RoutedEventArgs e)
        {
            if (!ConfirmExit())
            {
                return;
            }

            if (_stripBackgroundContainer != null)
            {
                //remove existing display
                BaseGrid.Children.Remove(_stripBackgroundContainer);
                _stripBackgroundContainer = null;

                if (_backgroundStrippingParams != null)
                {
                    DisplayModelSettingsContainer();
                }
                else
                {
                    DisplaySelectFolderContainer();
                }
                return;
            }

            if (_processContainer != null)
            {
                _processContainer.Cancel();
                return;
            }

            if (_clickCanvasContainer != null)
            {
                //remove existing display
                BaseGrid.Children.Remove(_clickCanvasContainer);
                _clickCanvasContainer = null;

                if (_clickInputs != null)
                {
                    DisplayModelSettingsContainer();
                }
                else
                {
                    DisplaySelectFolderContainer();
                }

                return;
            }

            if (_modelSettingsContainer != null)
            {
                //remove existing display
                BaseGrid.Children.Remove(_modelSettingsContainer);
                _modelSettingsContainer = null;
                DisplaySelectFolderContainer();
                return;
            }

            if (_modelContainer != null)
            {
                BaseGrid.Children.Remove(_modelContainer);
                _modelContainer = null;
                DisplaySelectFolderContainer();
                return;
            }

            if (_autoConfigureSettingsContainer != null)
            {
                BaseGrid.Children.Remove(_autoConfigureSettingsContainer);
                _autoConfigureSettingsContainer = null;
                DisplayClickCanvasContainer(_clickInputs);
                return;
            }
        }