Exemple #1
0
        private void BtnSalvar_Click(object sender, System.EventArgs e)
        {
            var _objNote = new Note
            {
                Annotation = TxtNote.Text.Trim(),
                Agenda     = agenda
            };

            var _bolSaved = new NoteController().Save(_objNote);

            if (_bolSaved)
            {
                MessageBox.Show("Anotações salvas com sucesso!");
            }
            else
            {
                Clipboard.SetText(TxtNote.Text);
                MessageBox.Show("Infelizmente não foi possível salvar suas anotações, mas as copiamos e você pode colá-las em qualquer lugar.");
            }

            Hide();
            FrmAgenda _objFrmAgenda = new FrmAgenda();

            _objFrmAgenda.Show();
        }
Exemple #2
0
        private void BtnVoltar_Click(object sender, System.EventArgs e)
        {
            Hide();
            FrmAgenda _objFrmAgenda = new FrmAgenda();

            _objFrmAgenda.Show();
        }