/*7.27public FormAnnotationOld(SketchPlayer sketchPl,int index)
         * {
         *  this.sketchPl = sketchPl;
         *  selectIndex = index;
         *  this.Loaded += new RoutedEventHandler(FormAnnotationOld_Loaded);
         *  this.Loaded += new RoutedEventHandler(FormAnnotationOld_Load);
         *  InitializeComponent();
         * }*/

        public FormAnnotationOld(InkFrame inkF, int index)
        {
            this.inkFrame = inkF;
            selectIndex   = index;
            this.Loaded  += new RoutedEventHandler(FormAnnotationOld_Loaded);
            this.Loaded  += new RoutedEventHandler(FormAnnotationOld_Load);
            InitializeComponent();
        }
Exemplo n.º 2
0
 private void InitApp()
 {
     Title_InkFrame = _scrollInkFrame._inkFrame;
     //将controlpanel和inkframe关联
     Title_ControlPanel.Height = 20;
     Title_ControlPanel.MinButton.Visibility = Visibility.Collapsed;
     Title_ControlPanel.MaxButton.Visibility = Visibility.Visible;
     Title_InkFrame.rectangle1.Visibility    = Visibility.Collapsed;
     Title_ControlPanel.setInkFrame(Title_InkFrame);
     Title_InkFrame._inkCanvas.DefaultDrawingAttributes.Color  = Colors.Blue;
     Title_InkFrame._inkCanvas.DefaultDrawingAttributes.Width  = 5;
     Title_InkFrame._inkCanvas.DefaultDrawingAttributes.Height = 5;
     _inkCollector = Title_InkFrame.InkCollector;
     loadSketchBook();
 }
Exemplo n.º 3
0
        private void InitApp()
        {
            KeyWordsImagesInkFrame = _scrollInkFrame._inkFrame;
            _videoAnnotation.setThumbInk(_thumbInk, _titleInk);
            _videoAnnotation.setVideoOperation(this);
            _titleInk.Title_InkFrame.InkCollector.Mode = InkMode.None;
            _thumbInk.ButtonScreen.Click += new RoutedEventHandler(ButtonScreenThumb_Click);
            WPFInk.PersistenceManager.PersistenceManager.getInstance().setVideoOperation(this);
            _videoAnnotation.Annotation_InkFrame.GotFocus += new RoutedEventHandler(_videoAnnotation_GotFocus);
            _thumbInk.Thumb_InkFrame.GotFocus             += new RoutedEventHandler(Thumb_InkFrame_GotFocus);
            _titleInk.Title_InkFrame.GotFocus             += new RoutedEventHandler(Title_InkFrame_GotFocus);
            _thumbInk.Thumb_ControlPanel._titleInk         = _titleInk;
            _thumbInk.Thumb_ControlPanel._videoAnnotation  = _videoAnnotation;
            _thumbInk.Thumb_ControlPanel._videoOperation   = this;
            _titleInk.setVideoOperation(this);
            KeyWordsImagesControlPanel.setInkFrame(KeyWordsImagesInkFrame);
            KeyWordsImagesControlPanel.Height = 330;
            _thumbInk.Thumb_ControlPanel.setVideoList(_videoList);

            _searchInkCanvas.DefaultDrawingAttributes.Width  = 4;
            _searchInkCanvas.DefaultDrawingAttributes.Height = 4;
            _searchInkCanvas.DefaultDrawingAttributes.Color  = Colors.Red;
        }
Exemplo n.º 4
0
 /*7.27public PanelVideo(SketchPlayer SPlayer)
  * {
  *  this.SPlayer = SPlayer;
  *  InitializeComponent();
  * }*/
 public void SetInkFrame(InkFrame inkF)
 {
     inkFrame = inkF;
 }
 public void setInkFrame(InkFrame inkFrame)
 {
     this._inkFrame = inkFrame;
 }