コード例 #1
0
ファイル: Sharpen.cs プロジェクト: visualcshape/ImageProcess
 public SharpenForm(VideoModel videoModel,VideoProcessorPresentationModel presentaionModel)
 {
     _videoModel = videoModel;
     _presentationModel = presentaionModel;
     InitializeComponent();
     BindData();
 }
コード例 #2
0
 public VideoControlPanelForm(VideoModel videoModel)
 {
     _videoModel = videoModel;
     _presentationModel = new VideoControlPanelFormPresentationModel(_videoModel);
     InitializeComponent();
     BindData();
 }
コード例 #3
0
        public VideoProcessorForm()
        {
            _videoModel = new VideoModel();
            _presentationModel = new VideoProcessorPresentationModel();
            InitializeComponent();
            VideoControlPanelForm controlPanel = new VideoControlPanelForm(_videoModel);
            controlPanel.Show();
            BindData();

            BasicOperationForm basicOperationForm = new BasicOperationForm(_videoModel, _presentationModel);
            basicOperationForm.TopLevel = false;
            basicOperationForm.Dock = DockStyle.Fill;
            _basicOperationTabPage.Controls.Add(basicOperationForm);
            basicOperationForm.Show();

            MosaicForm mosaicForm = new MosaicForm(_videoModel, _presentationModel);
            mosaicForm.TopLevel = false;
            mosaicForm.Dock = DockStyle.Fill;
            _mosaicTabPage.Controls.Add(mosaicForm);
            mosaicForm.Show();

            AveragingForm averagingForm = new AveragingForm(_videoModel, _presentationModel);
            averagingForm.TopLevel = false;
            averagingForm.Dock = DockStyle.Fill;
            _averagingTabPage.Controls.Add(averagingForm);
            averagingForm.Show();

            SharpenForm sharpenForm = new SharpenForm(_videoModel, _presentationModel);
            sharpenForm.TopLevel = false;
            sharpenForm.Dock = DockStyle.Fill;
            _sharpenTabPage.Controls.Add(sharpenForm);
            sharpenForm.Show();

            EdgeDetectionForm edgeDetectionForm = new EdgeDetectionForm(_videoModel, _presentationModel);
            edgeDetectionForm.TopLevel = false;
            edgeDetectionForm.Dock = DockStyle.Fill;
            _edgeDetectiontabPage.Controls.Add(edgeDetectionForm);
            edgeDetectionForm.Show();
        }