コード例 #1
0
ファイル: Program.cs プロジェクト: forkbomb/pikto
        private static ART1PaintForm BuildMainForm()
        {
            ART1PaintForm mainForm = new ART1PaintForm();

            PatternInputTranslator translator = new PatternInputTranslator(mainForm);
            PatternInputProcessor processor = new PatternInputProcessor(translator);
            PatternInputPresenter presenter = new PatternInputPresenter(processor);
            presenter.Renew(50, 50, 0.7f);
            OpenFileDialog openDialog = new OpenFileDialog();
            new ART1PaintPresenter(mainForm, presenter, openDialog);

            return mainForm;
        }
コード例 #2
0
        public PatternInputPresenter(PatternInputProcessor patternInputProcessor)
        {
            this.patternInputProcessor = patternInputProcessor;

            patternInputProcessor.PatternEntered += new EventHandler(patternInputProcessor_PatternEntered);
        }