예제 #1
0
        private void Init(bool oneWaySync)
        {
            InitializeComponent();
            this.oneWaySync = oneWaySync;
            var service = NoteApp.Application.NoteApplication.GetService(oneWaySync);

            presenter                     = new NoteAppPresenter(this, service);
            bookCreatedBtn.Click         += new System.EventHandler(this.onAddBook);
            this.newBookNameTxt.KeyPress += new System.Windows.Forms.KeyPressEventHandler(CheckEnterKeyPress);
            removeCreateBookPanel();
            handleZeroBook();
            addBookBtn.Text      = "\u002B";
            addNoteBtn.Text      = "\u002B";
            bookCreatedBtn.Text  = "\uD83D\uDCBE";
            closeBookCreate.Text = "\u2715";
            searchBtn.Text       = "\uD83D\uDD0D";
            notebookViewControl1.setObserver(this);
            bookCount = 0;
            noteCount = 0;
            setMode(oneWaySync);
        }
예제 #2
0
 public TestView(NoteAppPresenter presenter)
 {
     this.presenter = presenter;
 }