Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

GoalBook - A Hybrid Smart Client

, 25 Sep 2009 CPOL
A WPF hybrid smart client that synchronises your goals with the Toodledo online To-do service.
GoalBook.zip
GoalBook
Dependencies
CAG WPF 2
Microsoft.Practices.Composite.dll
Microsoft.Practices.Composite.Presentation.dll
Microsoft.Practices.Composite.UnityExtensions.dll
Microsoft.Practices.ObjectBuilder2.dll
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.Unity.dll
vssver2.scc
CSLA
Csla.dll
Csla.XmlSerializers.dll
vssver2.scc
Infragistics
Infragistics3.Wpf.DataPresenter.v9.1.Express.dll
Infragistics3.Wpf.Editors.v9.1.Express.dll
Infragistics3.Wpf.v9.1.Express.dll
vssver2.scc
WPFToolkit
vssver2.scc
WPFToolkit.dll
GoalBook.Controls
CheckedList
vssver2.scc
Properties
vssver2.scc
vssver2.scc
GoalBook.Goals
GoalBook.Goals.csproj.user
Properties
vssver2.scc
Views
vssver2.scc
vssver2.scc
GoalBook.Infrastructure
Comparers
vssver2.scc
Constants
vssver2.scc
Controls
Converters
vssver2.scc
Enums
vssver2.scc
Events
vssver2.scc
GoalBook.Infrastructure.csproj.user
Helpers
vssver2.scc
Interfaces
vssver2.scc
ObjectModel
vssver2.scc
Printing
vssver2.scc
Properties
vssver2.scc
vssver2.scc
GoalBook.Notes
GoalBook.Notes.csproj.user
Properties
vssver2.scc
Resources
arrow_redo.png
arrow_undo.png
cut.png
page_copy.png
paste_plain.png
text_bold.png
text_indent.png
text_indent_remove.png
text_italic.png
text_list_bullets.png
text_list_numbers.png
vssver2.scc
world_link.png
Views
vssver2.scc
vssver2.scc
GoalBook.Public
Encryption
vssver2.scc
HtmlConverter
vssver2.scc
HtmlParser
vssver2.scc
Misc
vssver2.scc
Properties
vssver2.scc
vssver2.scc
GoalBook.Shell
App.ico
Commands
vssver2.scc
GoalBook.Shell.csproj.user
Journal.ico
Journal48.ico
Misc
vssver2.scc
Modules
vssver2.scc
Properties
licenses.licx
vssver2.scc
Resources
arrow_refresh.png
arrow_undo.png
checked.gif
cross.png
disk.png
email.png
erase.png
error.png
exclamation.png
flag_red.png
group.png
help.png
information.png
magnifier.png
page_red.png
pencil.png
printer.png
user.png
vssver2.scc
Wave.jpg
world.png
world_link.png
Services
vssver2.scc
Splash.png
Views
vssver2.scc
vssver2.scc
Windows
vssver2.scc
GoalBook.snk
GoalBook.Synchronisation
Events
vssver2.scc
Properties
vssver2.scc
ToodleDo
vssver2.scc
vssver2.scc
GoalBook.Tasks
Controls
vssver2.scc
Properties
vssver2.scc
Views
vssver2.scc
vssver2.scc
vssver2.scc
// <copyright file="NotesDialogViewPresentationModel.cs" company="GoalBook"> 
//    Copyright © 2009 Mark Brownsword. All rights reserved.
//    This source code and supporting files are licensed under The Code Project  
//    Open License (CPOL) as detailed at http://www.codeproject.com/info/cpol10.aspx. 
// </copyright>
namespace GoalBook.Notes.Views
{
    #region Using Statements
    using System;
    using System.Collections.Generic;
    using System.Windows;
    using GoalBook.Infrastructure;
    using GoalBook.Infrastructure.ObjectModel;
    using Microsoft.Practices.Composite.Presentation.Commands;
    #endregion

    /// <summary>
    /// Notes Dialog View PresentationModel class.
    /// </summary>
    public class NotesDialogViewPresentationModel : DependencyObject
    {
        #region Constants and Enums
        #endregion

        #region Instance and Shared Fields
        /// <summary>
        /// Declaration for commands.
        /// </summary>
        private ModuleCommands commands;
        #endregion

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the NotesDialogViewPresentationModel class.
        /// </summary>
        /// <param name="commands">ModuleCommands parameter</param>
        public NotesDialogViewPresentationModel(ModuleCommands commands)
        {
            this.commands = commands;
        }
        #endregion

        #region Delegates and Events

        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets Edit Note.
        /// </summary>
        public Note EditNote { get; set; }

        /// <summary>
        /// Gets or sets FolderList. Folder Reference data.
        /// </summary>
        public Dictionary<Guid, string> FolderList { get; set; }

        /// <summary>
        /// Gets or sets CutCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> CutCommand
        {
            get { return this.commands.CutCommand; }
            set { this.commands.CutCommand = value; }
        }

        /// <summary>
        /// Gets CutCommandInfo for CutCommand.
        /// </summary>
        public CommandInfo CutCommandInfo
        {
            get { return ModuleCommandsInfo.CutCommandInfo; }
        }

        /// <summary>
        /// Gets or sets CopyCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> CopyCommand
        {
            get { return this.commands.CopyCommand; }
            set { this.commands.CopyCommand = value; }
        }

        /// <summary>
        /// Gets CopyCommandInfo for CopyCommand.
        /// </summary>
        public CommandInfo CopyCommandInfo
        {
            get { return ModuleCommandsInfo.CopyCommandInfo; }
        }

        /// <summary>
        /// Gets or sets PasteCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> PasteCommand
        {
            get { return this.commands.PasteCommand; }
            set { this.commands.PasteCommand = value; }
        }

        /// <summary>
        /// Gets PasteCommandInfo for PasteCommand.
        /// </summary>
        public CommandInfo PasteCommandInfo
        {
            get { return ModuleCommandsInfo.PasteCommandInfo; }
        }

        /// <summary>
        /// Gets or sets UndoCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> UndoCommand
        {
            get { return this.commands.UndoCommand; }
            set { this.commands.UndoCommand = value; }
        }

        /// <summary>
        /// Gets UndoCommandInfo for UndoCommand.
        /// </summary>
        public CommandInfo UndoCommandInfo
        {
            get { return ModuleCommandsInfo.UndoCommandInfo; }
        }

        /// <summary>
        /// Gets or sets RedoCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> RedoCommand
        {
            get { return this.commands.RedoCommand; }
            set { this.commands.RedoCommand = value; }
        }

        /// <summary>
        /// Gets RedoCommandInfo for RedoCommand.
        /// </summary>
        public CommandInfo RedoCommandInfo
        {
            get { return ModuleCommandsInfo.RedoCommandInfo; }
        }

        /// <summary>
        /// Gets or sets BoldCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> BoldCommand
        {
            get { return this.commands.BoldCommand; }
            set { this.commands.BoldCommand = value; }
        }

        /// <summary>
        /// Gets BoldCommandInfo for BoldCommand.
        /// </summary>
        public CommandInfo BoldCommandInfo
        {
            get { return ModuleCommandsInfo.BoldCommandInfo; }
        }

        /// <summary>
        /// Gets or sets ItalicCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> ItalicCommand
        {
            get { return this.commands.ItalicCommand; }
            set { this.commands.ItalicCommand = value; }
        }

        /// <summary>
        /// Gets ItalicCommandInfo for ItalicCommand.
        /// </summary>
        public CommandInfo ItalicCommandInfo
        {
            get { return ModuleCommandsInfo.ItalicCommandInfo; }
        }

        /// <summary>
        /// Gets or sets LinkCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> LinkCommand
        {
            get { return this.commands.LinkCommand; }
            set { this.commands.LinkCommand = value; }
        }

        /// <summary>
        /// Gets LinkCommandInfo for LinkCommand.
        /// </summary>
        public CommandInfo LinkCommandInfo
        {
            get { return ModuleCommandsInfo.LinkCommandInfo; }
        }

        /// <summary>
        /// Gets or sets OrderedListCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> OrderedListCommand
        {
            get { return this.commands.OrderedListCommand; }
            set { this.commands.OrderedListCommand = value; }
        }

        /// <summary>
        /// Gets OrderedListCommandInfo for OrderedListCommand.
        /// </summary>
        public CommandInfo OrderedListCommandInfo
        {
            get { return ModuleCommandsInfo.OrderedListCommandInfo; }
        }

        /// <summary>
        /// Gets or sets UnorderedListCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> UnorderedListCommand
        {
            get { return this.commands.UnorderedListCommand; }
            set { this.commands.UnorderedListCommand = value; }
        }

        /// <summary>
        /// Gets UnorderedListCommandInfo for UnorderedListCommand.
        /// </summary>
        public CommandInfo UnorderedListCommandInfo
        {
            get { return ModuleCommandsInfo.UnorderedListCommandInfo; }
        }

        /// <summary>
        /// Gets or sets IndentCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> IndentCommand
        {
            get { return this.commands.IndentCommand; }
            set { this.commands.IndentCommand = value; }
        }

        /// <summary>
        /// Gets IndentCommandInfo for IndentCommand.
        /// </summary>
        public CommandInfo IndentCommandInfo
        {
            get { return ModuleCommandsInfo.IndentCommandInfo; }
        }

        /// <summary>
        /// Gets or sets OutdentCommand.
        /// </summary>
        public DelegateCommand<CommandInfo> OutdentCommand
        {
            get { return this.commands.OutdentCommand; }
            set { this.commands.OutdentCommand = value; }
        }

        /// <summary>
        /// Gets OutdentCommandInfo for OutdentCommand.
        /// </summary>
        public CommandInfo OutdentCommandInfo
        {
            get { return ModuleCommandsInfo.OutdentCommandInfo; }
        }

        #endregion

        #region Public and internal Methods
        #endregion

        #region Base Class Overrides
        #endregion

        #region Private and Protected Methods
        #endregion

        #region Event Handlers
        #endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Mark Brownsword
Software Developer (Senior)
Australia Australia
I've been working as a software developer since 2000 and hold a Bachelor of Business degree from The Open Polytechnic of New Zealand. Computers are for people and I aim to build applications for people that they would want to use.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 25 Sep 2009
Article Copyright 2009 by Mark Brownsword
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid