Esempio n. 1
0
        private void InitializeSubWindowsAndControls()
        {
            _progressBarWindow = new ProgressBarWindow();
            _progressBarWindow.Visibility = System.Windows.Visibility.Hidden;
            _progressBarWindow.Owner = this;

            _runtimeStorageWindow = new RuntimeStorageBrowser();
            _runtimeStorageWindow.Owner = this;
            _runtimeStorageWindow.IsVisibleChanged +=_runtimeStorageWindow_IsVisibleChanged;
            _runtimeStorageWindow.SearchButton.Click += SearchButton_Click;

            _prototypeBrowserWindow = new PrototypeBrowserWindow();
            _prototypeBrowserWindow.Owner = this;
            _prototypeBrowserWindow.BrowserPane.PrototypeDeleteClicked += BrowserPane_PrototypeDeleteClicked;
            _prototypeBrowserWindow.BrowserPane.AddPositiveClicked += BrowserPane_AddPositiveClicked;
            _prototypeBrowserWindow.BrowserPane.DeleteNegativeClicked += BrowserPane_DeleteNegativeClicked;
            _prototypeBrowserWindow.BrowserPane.DeletePositiveClicked += BrowserPane_DeletePositiveClicked;
            
            _prototypeBrowserWindow.IsVisibleChanged +=_prototypeBrowserWindow_IsVisibleChanged;
            AddEmptyRectangles(200);
            string selectorstr = null;
            switch (_studyCondition)
            {
                case StudyCondition.Single:
                case StudyCondition.Layers:
                case StudyCondition.Debug:
                    selectorstr = "is_text = true";
                    break;
            }
            Color color =  System.Windows.Media.Color.FromArgb(80, 254, 162, 254);
            Selector s = new Selector(color, selectorstr);
            SelectorPanelControl.Selectors.Add(s);

            TreeBrowserControl.ItemMouseUp += TreeBrowserControl_ItemMouseUp;

            ShowBubbleCursor.IsChecked = false;
            ShowAnnotationOverlays.IsChecked = false;

            _currInspection = GetNewRectangle(null, Brushes.Transparent, Brushes.Red);
            _currInspection.CreationType = SelectableBoundingBox.WithTreeNode.Type.FromClick;
            
        }
Esempio n. 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Selector s = new Selector();
     Selectors.Add(s);
 }