Exemplo n.º 1
0
        public MonthDetail(DateTime date, Appointment appointment)
        {
            InitializeComponent();
            _date        = date;
            _appointment = appointment;
            InitializeDisplay();

            SpellChecking.HandleSpellChecking(subjectEdit);
        }
Exemplo n.º 2
0
        public NotesPeekContent()
        {
            InitializeComponent();

            SpellChecking.HandleSpellChecking(titleTextBox);
            SpellChecking.HandleSpellChecking(contentTextBox);

            contentTextBox.Document.Blocks.Clear();
        }
Exemplo n.º 3
0
        public TasksPeekContent()
        {
            InitializeComponent();

            _showCompleted = Settings.ShowCompletedTasks;
            SpellChecking.HandleSpellChecking(newTaskTextBox);

            Loaded   += TasksPeekContent_Loaded;
            Unloaded += TasksPeekContent_Unloaded;
        }
        public AppointmentEditor(Grid crossZoom, Appointment appointment)
        {
            InitializeComponent();
            editDetails.Document.Blocks.Clear();

            Appointment = appointment;
            _crossZoom  = crossZoom;

            SpellChecking.HandleSpellChecking(editSubject);
            SpellChecking.HandleSpellChecking(editDetails);

            Unloaded += AppointmentEditor_Unloaded;
        }
Exemplo n.º 5
0
        public MonthDetail(DateTime date)
        {
            InitializeComponent();
            _date = date;

            _appointment           = new Appointment();
            _appointment.StartDate = date;
            _appointment.EndDate   = date < DateTime.MaxValue.Date ? date.AddDays(1) : DateTime.MaxValue;

            InitializeDisplay();

            SpellChecking.HandleSpellChecking(subjectEdit);
        }
Exemplo n.º 6
0
        public NotesView()
        {
            InitializeComponent();

            Loaded += NotesView_Loaded;

            SpellChecking.HandleSpellChecking(pageTitleBox);
            SpellChecking.HandleSpellChecking(document);

            ColumnDefinitions[0].Width = Settings.NotesColumn0Width;
            ColumnDefinitions[1].Width = Settings.NotesColumn1Width;
            ColumnDefinitions[2].Width = Settings.NotesColumn2Width;

            document.Document.Blocks.Clear();
        }
Exemplo n.º 7
0
        /// <summary>
        /// Create a new Feedback window with extra text added to the message.
        /// </summary>
        /// <param name="type"></param>
        /// <param name="addend">the text to append to the end of the message</param>
        public Feedback(FeedbackType type, string addend)
        {
            InitializeComponent();

            _type   = type;
            _addend = addend;

            if (type == FeedbackType.Smile)
            {
                header.Text            = "We appreciate your feedback. What did you like?";
                detailsTip.Description = "Tell us what you liked about Daytimer.";
            }
            else if (type == FeedbackType.Error)
            {
                header.Text            = "We're extremely sorry this happened. Can you give us more information about the problem?";
                detailsTip.Description = "Tell us what you were doing when the error occurred.";
            }

            SpellChecking.HandleSpellChecking(details);
        }
Exemplo n.º 8
0
        public NotesAppBar()
        {
            InitializeComponent();

            Width = Settings.NotesAppBarWidth;

            Loaded   += NotesAppBar_Loaded;
            Unloaded += NotesAppBar_Unloaded;

            document.Document.Blocks.Clear();

            SpellChecking.HandleSpellChecking(document, false);

            Window main = Application.Current.MainWindow;

            if (main.WindowState == WindowState.Normal)
            {
                MainWindowWidth    = main.ActualWidth;
                MainWindowLocation = new Point(main.Left, main.Top);
            }
        }