Ejemplo n.º 1
0
        private DialogResult ShowNoteDetailDialog(Annotation annotation)
        {
            using (var dlg = new NoteDetailDialog(annotation, _annotationEditorModelFactory))
            {
                dlg.LabelWritingSystem   = LabelWritingSystem;
                dlg.MessageWritingSystem = MessageWritingSystem;
                var result = dlg.ShowDialog();

                OnUpdateContent(null, null);
                _model.SaveNowIfNeeded(new NullProgress());
                Timer refreshTimer = new Timer()
                {
                    Interval = 500, Enabled = true
                };
                refreshTimer.Tick += OnRefreshTimer_Tick;
                components.Add(refreshTimer);

                return(result);
            }
        }
Ejemplo n.º 2
0
        private DialogResult ShowNoteDetailDialog(Annotation annotation)
        {
            using (var dlg = new NoteDetailDialog(annotation, _annotationEditorModelFactory))
            {
                dlg.LabelWritingSystem = LabelWritingSystem;
                dlg.MessageWritingSystem = MessageWritingSystem;
                var result = dlg.ShowDialog();

                OnUpdateContent(null, null);
                _model.SaveNowIfNeeded(new NullProgress());
                Timer refreshTimer = new Timer() { Interval = 500, Enabled = true };
                refreshTimer.Tick += OnRefreshTimer_Tick;
                components.Add(refreshTimer);

                return result;
            }
        }
Ejemplo n.º 3
0
 private void OnExistingAnnotationButtonClick(object sender, EventArgs e)
 {
     var annotation = (Annotation) ((Button)sender).Tag;
     var dlg = new NoteDetailDialog(annotation, _annotationEditorModelFactory);
     dlg.ShowDialog();
     OnUpdateContent(null,null);
     _model.SaveNowIfNeeded(new NullProgress());
     Timer refreshTimer = new Timer() {Interval = 500, Enabled = true};
     refreshTimer.Tick += new EventHandler(OnRefreshTimer_Tick);
     components.Add(refreshTimer);
 }