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="ModuleCommandsInfo.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
{
    #region Using Statements    
    using System;
    using System.Windows.Input;
    using GoalBook.Infrastructure;
    using GoalBook.Notes.Properties;
    #endregion

    /// <summary>
    /// ModuleCommandsInfo class.
    /// </summary>
    public static class ModuleCommandsInfo
    {
        #region Constants and Enums
        #endregion

        #region Instance and Shared Fields        
        /// <summary>
        /// Declaration for CutCommandInfo.
        /// </summary>
        private static CommandInfo cutCommandInfo = new CommandInfo(
            Resources.ToolBarCutText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/cut.png", UriKind.Relative),
            new KeyGesture(Key.X, ModifierKeys.Control, Resources.ToolBarCutInputGestureText));
        
        /// <summary>
        /// Declaration for CopyCommandInfo.
        /// </summary>
        private static CommandInfo copyCommandInfo = new CommandInfo(
            Resources.ToolBarCopyText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/page_copy.png", UriKind.Relative),
            new KeyGesture(Key.C, ModifierKeys.Control, Resources.ToolBarCopyInputGestureText));
        
        /// <summary>
        /// Declaration for PasteCommandInfo.
        /// </summary>
        private static CommandInfo pasteCommandInfo = new CommandInfo(
            Resources.ToolBarPasteText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/paste_plain.png", UriKind.Relative),
            new KeyGesture(Key.V, ModifierKeys.Control, Resources.ToolBarPasteInputGestureText));
        
        /// <summary>
        /// Declaration for UndoCommandInfo.
        /// </summary>
        private static CommandInfo undoCommandInfo = new CommandInfo(
            Resources.ToolBarUndoText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/arrow_undo.png", UriKind.Relative),
            new KeyGesture(Key.Z, ModifierKeys.Control, Resources.ToolBarUndoInputGestureText));
        
        /// <summary>
        /// Declaration for RedoCommandInfo.
        /// </summary>
        private static CommandInfo redoCommandInfo = new CommandInfo(
            Resources.ToolBarRedoText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/arrow_redo.png", UriKind.Relative),
            new KeyGesture(Key.Y, ModifierKeys.Control, Resources.ToolBarRedoInputGestureText));
        
        /// <summary>
        /// Declaration for BoldCommandInfo.
        /// </summary>
        private static CommandInfo boldCommandInfo = new CommandInfo(
            Resources.ToolBarBoldText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/text_bold.png", UriKind.Relative),
            new KeyGesture(Key.B, ModifierKeys.Control, Resources.ToolBarBoldInputGestureText));

        /// <summary>
        /// Declaration for ItalicCommandInfo.
        /// </summary>
        private static CommandInfo italicCommandInfo = new CommandInfo(
            Resources.ToolBarItalicText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/text_italic.png", UriKind.Relative),
            new KeyGesture(Key.I, ModifierKeys.Control, Resources.ToolBarItalicInputGestureText));
        
        /// <summary>
        /// Declaration for LinkCommandInfo.
        /// </summary>
        private static CommandInfo linkCommandInfo = new CommandInfo(
            Resources.ToolBarLinkText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/world_link.png", UriKind.Relative),
            new KeyGesture(Key.K, ModifierKeys.Control, Resources.ToolBarLinkInputGestureText));
        
        /// <summary>
        /// Declaration for OrderedListCommandInfo.
        /// </summary>
        private static CommandInfo orderedListCommandInfo = new CommandInfo(
            Resources.ToolBarOrderedListText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/text_list_numbers.png", UriKind.Relative),
            null);
        
        /// <summary>
        /// Declaration for UnorderedListCommandInfo.
        /// </summary>
        private static CommandInfo unorderedListCommandInfo = new CommandInfo(
            Resources.ToolBarUnorderedListText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/text_list_bullets.png", UriKind.Relative),
            null);
        
        /// <summary>
        /// Declaration for indentCommandInfo.
        /// </summary>
        private static CommandInfo indentCommandInfo = new CommandInfo(
            Resources.ToolBarIndentText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/text_indent.png", UriKind.Relative),
            null);
        
        /// <summary>
        /// Declaration for outdentCommandInfo.
        /// </summary>
        private static CommandInfo outdentCommandInfo = new CommandInfo(
            Resources.ToolBarOutdentText,
            0,
            0,
            new Uri(@"/GoalBook.Notes;component/Resources/text_indent_remove.png", UriKind.Relative),
            null);        
        #endregion

        #region Constructors
        #endregion

        #region Delegates and Events
        #endregion

        #region Properties
        /// <summary>
        /// Gets CutCommandInfo.
        /// </summary>
        public static CommandInfo CutCommandInfo
        {
            get { return cutCommandInfo; }
        }

        /// <summary>
        /// Gets CopyCommandInfo.
        /// </summary>
        public static CommandInfo CopyCommandInfo
        {
            get { return copyCommandInfo; }
        }

        /// <summary>
        /// Gets PasteCommandInfo.
        /// </summary>
        public static CommandInfo PasteCommandInfo
        {
            get { return pasteCommandInfo; }
        }

        /// <summary>
        /// Gets UndoCommandInfo.
        /// </summary>
        public static CommandInfo UndoCommandInfo
        {
            get { return undoCommandInfo; }
        }

        /// <summary>
        /// Gets RedoCommandInfo.
        /// </summary>
        public static CommandInfo RedoCommandInfo
        {
            get { return redoCommandInfo; }
        }

        /// <summary>
        /// Gets BoldCommandInfo.
        /// </summary>
        public static CommandInfo BoldCommandInfo
        {
            get { return boldCommandInfo; }
        }

        /// <summary>
        /// Gets ItalicCommandInfo.
        /// </summary>
        public static CommandInfo ItalicCommandInfo
        {
            get { return italicCommandInfo; }
        }

        /// <summary>
        /// Gets LinkCommandInfo.
        /// </summary>
        public static CommandInfo LinkCommandInfo
        {
            get { return linkCommandInfo; }
        }

        /// <summary>
        /// Gets OrderListCommandInfo.
        /// </summary>
        public static CommandInfo OrderedListCommandInfo
        {
            get { return orderedListCommandInfo; }
        }

        /// <summary>
        /// Gets UnorderedListCommandInfo.
        /// </summary>
        public static CommandInfo UnorderedListCommandInfo
        {
            get { return ModuleCommandsInfo.unorderedListCommandInfo; }
        }

        /// <summary>
        /// Gets IndentCommandInfo.
        /// </summary>
        public static CommandInfo IndentCommandInfo
        {
            get { return indentCommandInfo; }
        }

        /// <summary>
        /// Gets OutdentCommandInfo.
        /// </summary>
        public static CommandInfo OutdentCommandInfo
        {
            get { return 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
Web04 | 2.8.141220.1 | Last Updated 25 Sep 2009
Article Copyright 2009 by Mark Brownsword
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid