diff --git a/Components/Repository/Tests/UITests/White.Repository.UITests.csproj b/Components/Repository/Tests/UITests/White.Repository.UITests.csproj
index d5bdfae6..84703be5 100644
--- a/Components/Repository/Tests/UITests/White.Repository.UITests.csproj
+++ b/Components/Repository/Tests/UITests/White.Repository.UITests.csproj
@@ -120,6 +120,14 @@
{6D03B0F7-5FE2-45A0-996A-D0B45F6FB23B}
White.Core.UITests
+
+ {bdd325ef-d400-4a37-b4c6-d7bf150587c7}
+ WinFormsTestApp
+
+
+ {eac2eaa3-9c17-4f59-bc5b-89c2601d38ac}
+ ComponentWPFTestApp
+
{FCD3E92F-FEE9-414D-A460-09F7F685B83E}
Repository
diff --git a/Spikes/Archive/HotKey.cs b/Spikes/Archive/HotKey.cs
deleted file mode 100644
index b3898303..00000000
--- a/Spikes/Archive/HotKey.cs
+++ /dev/null
@@ -1,1178 +0,0 @@
-// Copyright (c) 2007 Joel Bennett
-
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-// SOFTWARE.
-
-// *****************************************************************************
-// NOTE: YOU MAY *ALSO* DISTRIBUTE THIS FILE UNDER ANY OF THE FOLLOWING LICENSES:
-// BSD: http://www.opensource.org/licenses/bsd-license.php
-// MIT: http://www.opensource.org/licenses/mit-license.html
-// Ms-PL: http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx
-// Ms-CL: http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx
-// GPL 2: http://www.gnu.org/copyleft/gpl.html
-
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.Drawing.Design;
-using System.Runtime.InteropServices;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Windows;
-using System.Windows.Input;
-using System.Windows.Interop;
-
-// WPF based
-
-namespace Mercury {
- [Serializable]
- public struct Hotkey {
- public ModifierKeys Modifiers;
- public Keys Key;
- internal int Id;
-
- ///
- /// Parses a hotkey from a string representation, like:
- ///
- /// - win|ctrl|A
- /// - win+shift+B
- /// - ctrl+alt|OemTilde
- ///
- ///
- /// The key.
- ///
- public static Hotkey Parse(string key) {
- Regex rx =
- new Regex(
- @"(?:(?:(?win)|(?ctrl|control|ctl)|(?alt)|(?shift))\s*(?:[\|+-])\s*)+(?.*)",
- RegexOptions.IgnoreCase);
-
- ModifierKeys mods = ModifierKeys.None;
-
- Match m = rx.Match(key);
-
- if (!m.Success) return new Hotkey();
-
- if (m.Groups["win"].Success)
- mods |= ModifierKeys.Windows;
- if (m.Groups["ctrl"].Success)
- mods |= ModifierKeys.Control;
- if (m.Groups["alt"].Success)
- mods |= ModifierKeys.Alt;
- if (m.Groups["shift"].Success)
- mods |= ModifierKeys.Shift;
-
- return new Hotkey(mods, (Keys) Enum.Parse(typeof (Keys), m.Groups["key"].Value, true));
- }
-
- ///
- /// Returns a that represents the current .
- ///
- ///
- /// A that represents the current .
- ///
- public override string ToString() {
- StringBuilder key = new StringBuilder();
-
- if ((ModifierKeys.Windows & Modifiers) == ModifierKeys.Windows)
- key.Append("WIN + ");
- if ((ModifierKeys.Control & Modifiers) == ModifierKeys.Control)
- key.Append("CTRL + ");
- if ((ModifierKeys.Alt & Modifiers) == ModifierKeys.Alt)
- key.Append("ALT + ");
- if ((ModifierKeys.Shift & Modifiers) == ModifierKeys.Shift)
- key.Append("SHIFT + ");
- key.Append(Key);
-
- return key.ToString();
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The modifiers.
- /// The key.
- public Hotkey(ModifierKeys Modifiers, Keys Key) {
- this.Modifiers = Modifiers;
- this.Key = Key;
- Id = -1;
- }
-
- ///
- /// Determines whether the specified is equal to the current .
- ///
- /// The to compare with the current .
- ///
- /// true if the specified is equal to the current ; otherwise, false.
- ///
- public override bool Equals(object obj) {
- if (obj is Hotkey)
- return Equals((Hotkey) obj);
- return false;
- }
-
- ///
- /// Determines if the specified is equal to this one.
- ///
- /// The .
- /// True if the key and modifiers are the same
- public bool Equals(Hotkey key) {
- return (key.Modifiers == Modifiers && key.Key == Key);
- }
-
- ///
- /// Calls the base hashcode
- ///
- ///
- /// A hash code for the current .
- ///
- public override int GetHashCode() {
- return ToString().GetHashCode();
- }
- }
-
- ///
- /// The Hotkey manager
- ///
- public class WPFHotkeyManager : IDisposable {
- private Dictionary Hotkeys;
- private ObservableCollection observableHotkeys;
- private IntPtr handle;
- private int id = 0;
-
- public delegate void HotkeyPressedEvent(Window window, Hotkey hotkey);
-
- public event HotkeyPressedEvent HotkeyPressed;
-
- protected WindowInteropHelper window;
- private Window actualWindow;
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The window that will receive notifications when the Hotkeys are pressed.
- public WPFHotkeyManager(Window TopLevelWindow) {
- actualWindow = TopLevelWindow;
-
- if (!actualWindow.IsArrangeValid)
- actualWindow.SourceInitialized += new EventHandler(OnSourceInitialized);
- else OnSourceInitialized(actualWindow, null);
- }
-
- private void OnSourceInitialized(object sender, EventArgs e) {
- window = new WindowInteropHelper(actualWindow);
- handle = window.Handle;
-
- HwndSource.FromHwnd(handle).AddHook(new HwndSourceHook(WndProc));
-
- Hotkeys = new Dictionary();
- observableHotkeys = new ObservableCollection();
- // AssignHandle(handle);
- }
-
-
- public ReadOnlyCollection ReadOnlyHotkeys {
- get {
- Hotkey[] hotkeys = new Hotkey[Hotkeys.Count];
- Hotkeys.Values.CopyTo(hotkeys, 0);
- return new ReadOnlyCollection(hotkeys);
- }
- }
-
- public ObservableCollection ObservableHotkeys {
- get { return observableHotkeys; }
- }
-
- ///
- /// Gets the hotkey from the Id sent by Windows in the WM.HOTKEY message
- ///
- /// The id.
- ///
- public Hotkey GetKey(int Id) {
- return Hotkeys[Id];
- }
-
- /// Register a new hotkey, and add it to our collection
- ///
- /// A reference to the Hotkey.
- /// True if the hotkey was set successfully.
- public void Register(Hotkey key) {
- if (handle == IntPtr.Zero)
- throw new InvalidOperationException("You can't register hotkeys until your Window is loaded.");
- if (NativeMethods.RegisterHotKey(handle, ++id, key.Modifiers, key.Key)) {
- key.Id = id;
- Hotkeys.Add(id, key);
- observableHotkeys.Add(key);
- }
- else {
- int lastError = Marshal.GetLastWin32Error();
- Marshal.ThrowExceptionForHR(Marshal.GetLastWin32Error());
- }
- }
-
- /// Unregister the specified hotkey if it's in our collection
- ///
- /// The key.
- /// True if we successfully unregister the hotkey.
- public bool Unregister(Hotkey key) {
- int id = IndexOf(key);
- if (id > 0) {
- if (NativeMethods.UnregisterHotKey(handle, id)) {
- Hotkeys.Remove(id);
- observableHotkeys.Remove(key);
- return true;
- }
- else {
- int lastError = Marshal.GetLastWin32Error();
- Marshal.ThrowExceptionForHR(Marshal.GetLastWin32Error());
- return false;
- }
- }
- else return false;
- }
-
- /// Clears the hotkey collection
- ///
- public void Clear() {
- foreach (KeyValuePair key in Hotkeys)
- NativeMethods.UnregisterHotKey(handle, key.Key);
- // clear afterward so we don't break our enumeration
- Hotkeys.Clear();
- }
-
- /// Free all hotkey resources...
- ///
- public void Dispose() {
- Clear();
- // ReleaseHandle();
- handle = IntPtr.Zero;
- }
-
- ///
- /// Override the base WndProc ... but in WPF it's the old-fashioned multi-parameter WndProc
- ///
- /// The .Net Framework is starting to feel ridiculously cobbled together ... why on earth
- /// should WPF apps need to register WndProc's any differently than Windows.Forms apps?
- ///
- ///
- /// The window handle.
- /// The message.
- /// The high word
- /// The low word
- /// true if the message was already handled.
- /// IntPtr.Zero - I have no idea what this is supposed to return.
- private IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) {
- if (WM.Hotkey == msg) {
- if (Hotkeys.ContainsKey(wParam.ToInt32())) {
- HotkeyPressed(actualWindow, Hotkeys[wParam.ToInt32()]);
- handled = true;
- }
- }
- return IntPtr.Zero;
- }
-
- #region ICollection Members
-
- public void Add(Hotkey item) {
- if (Hotkeys.ContainsValue(item))
- throw new ArgumentException("That Hotkey is already registered.");
- Register(item);
- }
-
- public bool Contains(Hotkey item) {
- return Hotkeys.ContainsValue(item);
- }
-
- public void CopyTo(Hotkey[] array, int arrayIndex) {
- Hotkeys.Values.CopyTo(array, arrayIndex);
- }
-
- public int Count {
- get { return Hotkeys.Count; }
- }
-
- public bool IsReadOnly {
- get { return false; }
- }
-
- public bool Remove(Hotkey item) {
- return Unregister(item);
- }
-
- #endregion
-
- #region IEnumerable Members
-
- public IEnumerator GetEnumerator() {
- return Hotkeys.Values.GetEnumerator();
- }
-
- #endregion
-
- #region IList Members
-
- public int IndexOf(Hotkey item) {
- if (item.Id > 0 && Hotkeys.ContainsKey(item.Id))
- return item.Id;
- else if (Hotkeys.ContainsValue(item)) {
- foreach (KeyValuePair k in Hotkeys) {
- if (item.Equals(k.Value)) {
- item.Id = k.Value.Id;
- return item.Id;
- }
- }
- }
-
- throw new ArgumentOutOfRangeException("The hotkey \"{0}\" is not in this hotkey manager.");
- }
-
- public void Insert(int index, Hotkey item) {
- throw new Exception("The method or operation is not implemented.");
- }
-
- public void RemoveAt(int index) {
- Remove(Hotkeys[index]);
- }
-
- public Hotkey this[int index] {
- get { return Hotkeys[index]; }
- set { throw new Exception("The method or operation is not implemented."); }
- }
-
- #endregion
- }
-
- [Flags]
- [ComVisible(true)]
- [Editor(
- "System.Windows.Forms.Design.ShortcutKeysEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
- , typeof (UITypeEditor))]
- [TypeConverter("System.Windows.Forms.KeysConverter")]
- public enum Keys {
- // Summary:
- // The bitmask to extract modifiers from a key value.
- Modifiers = -65536,
- //
- // Summary:
- // No key pressed.
- None = 0,
- //
- // Summary:
- // The left mouse button.
- LButton = 1,
- //
- // Summary:
- // The right mouse button.
- RButton = 2,
- //
- // Summary:
- // The CANCEL key.
- Cancel = 3,
- //
- // Summary:
- // The middle mouse button (three-button mouse).
- MButton = 4,
- //
- // Summary:
- // The first x mouse button (five-button mouse).
- XButton1 = 5,
- //
- // Summary:
- // The second x mouse button (five-button mouse).
- XButton2 = 6,
- //
- // Summary:
- // The BACKSPACE key.
- Back = 8,
- //
- // Summary:
- // The TAB key.
- Tab = 9,
- //
- // Summary:
- // The LINEFEED key.
- LineFeed = 10,
- //
- // Summary:
- // The CLEAR key.
- Clear = 12,
- //
- // Summary:
- // The ENTER key.
- Enter = 13,
- //
- // Summary:
- // The RETURN key.
- Return = 13,
- //
- // Summary:
- // The SHIFT key.
- ShiftKey = 16,
- //
- // Summary:
- // The CTRL key.
- ControlKey = 17,
- //
- // Summary:
- // The ALT key.
- Menu = 18,
- //
- // Summary:
- // The PAUSE key.
- Pause = 19,
- //
- // Summary:
- // The CAPS LOCK key.
- CapsLock = 20,
- //
- // Summary:
- // The CAPS LOCK key.
- Capital = 20,
- //
- // Summary:
- // The IME Kana mode key.
- KanaMode = 21,
- //
- // Summary:
- // The IME Hanguel mode key. (maintained for compatibility; use HangulMode)
- HanguelMode = 21,
- //
- // Summary:
- // The IME Hangul mode key.
- HangulMode = 21,
- //
- // Summary:
- // The IME Junja mode key.
- JunjaMode = 23,
- //
- // Summary:
- // The IME final mode key.
- FinalMode = 24,
- //
- // Summary:
- // The IME Kanji mode key.
- KanjiMode = 25,
- //
- // Summary:
- // The IME Hanja mode key.
- HanjaMode = 25,
- //
- // Summary:
- // The ESC key.
- Escape = 27,
- //
- // Summary:
- // The IME convert key.
- IMEConvert = 28,
- //
- // Summary:
- // The IME nonconvert key.
- IMENonconvert = 29,
- //
- // Summary:
- // The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead.
- IMEAceept = 30,
- //
- // Summary:
- // The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept.
- IMEAccept = 30,
- //
- // Summary:
- // The IME mode change key.
- IMEModeChange = 31,
- //
- // Summary:
- // The SPACEBAR key.
- Space = 32,
- //
- // Summary:
- // The PAGE UP key.
- Prior = 33,
- //
- // Summary:
- // The PAGE UP key.
- PageUp = 33,
- //
- // Summary:
- // The PAGE DOWN key.
- Next = 34,
- //
- // Summary:
- // The PAGE DOWN key.
- PageDown = 34,
- //
- // Summary:
- // The END key.
- End = 35,
- //
- // Summary:
- // The HOME key.
- Home = 36,
- //
- // Summary:
- // The LEFT ARROW key.
- Left = 37,
- //
- // Summary:
- // The UP ARROW key.
- Up = 38,
- //
- // Summary:
- // The RIGHT ARROW key.
- Right = 39,
- //
- // Summary:
- // The DOWN ARROW key.
- Down = 40,
- //
- // Summary:
- // The SELECT key.
- Select = 41,
- //
- // Summary:
- // The PRINT key.
- Print = 42,
- //
- // Summary:
- // The EXECUTE key.
- Execute = 43,
- //
- // Summary:
- // The PRINT SCREEN key.
- PrintScreen = 44,
- //
- // Summary:
- // The PRINT SCREEN key.
- Snapshot = 44,
- //
- // Summary:
- // The INS key.
- Insert = 45,
- //
- // Summary:
- // The DEL key.
- Delete = 46,
- //
- // Summary:
- // The HELP key.
- Help = 47,
- //
- // Summary:
- // The 0 key.
- D0 = 48,
- //
- // Summary:
- // The 1 key.
- D1 = 49,
- //
- // Summary:
- // The 2 key.
- D2 = 50,
- //
- // Summary:
- // The 3 key.
- D3 = 51,
- //
- // Summary:
- // The 4 key.
- D4 = 52,
- //
- // Summary:
- // The 5 key.
- D5 = 53,
- //
- // Summary:
- // The 6 key.
- D6 = 54,
- //
- // Summary:
- // The 7 key.
- D7 = 55,
- //
- // Summary:
- // The 8 key.
- D8 = 56,
- //
- // Summary:
- // The 9 key.
- D9 = 57,
- //
- // Summary:
- // The A key.
- A = 65,
- //
- // Summary:
- // The B key.
- B = 66,
- //
- // Summary:
- // The C key.
- C = 67,
- //
- // Summary:
- // The D key.
- D = 68,
- //
- // Summary:
- // The E key.
- E = 69,
- //
- // Summary:
- // The F key.
- F = 70,
- //
- // Summary:
- // The G key.
- G = 71,
- //
- // Summary:
- // The H key.
- H = 72,
- //
- // Summary:
- // The I key.
- I = 73,
- //
- // Summary:
- // The J key.
- J = 74,
- //
- // Summary:
- // The K key.
- K = 75,
- //
- // Summary:
- // The L key.
- L = 76,
- //
- // Summary:
- // The M key.
- M = 77,
- //
- // Summary:
- // The N key.
- N = 78,
- //
- // Summary:
- // The O key.
- O = 79,
- //
- // Summary:
- // The P key.
- P = 80,
- //
- // Summary:
- // The Q key.
- Q = 81,
- //
- // Summary:
- // The R key.
- R = 82,
- //
- // Summary:
- // The S key.
- S = 83,
- //
- // Summary:
- // The T key.
- T = 84,
- //
- // Summary:
- // The U key.
- U = 85,
- //
- // Summary:
- // The V key.
- V = 86,
- //
- // Summary:
- // The W key.
- W = 87,
- //
- // Summary:
- // The X key.
- X = 88,
- //
- // Summary:
- // The Y key.
- Y = 89,
- //
- // Summary:
- // The Z key.
- Z = 90,
- //
- // Summary:
- // The left Windows logo key (Microsoft Natural Keyboard).
- LWin = 91,
- //
- // Summary:
- // The right Windows logo key (Microsoft Natural Keyboard).
- RWin = 92,
- //
- // Summary:
- // The application key (Microsoft Natural Keyboard).
- Apps = 93,
- //
- // Summary:
- // The computer sleep key.
- Sleep = 95,
- //
- // Summary:
- // The 0 key on the numeric keypad.
- NumPad0 = 96,
- //
- // Summary:
- // The 1 key on the numeric keypad.
- NumPad1 = 97,
- //
- // Summary:
- // The 2 key on the numeric keypad.
- NumPad2 = 98,
- //
- // Summary:
- // The 3 key on the numeric keypad.
- NumPad3 = 99,
- //
- // Summary:
- // The 4 key on the numeric keypad.
- NumPad4 = 100,
- //
- // Summary:
- // The 5 key on the numeric keypad.
- NumPad5 = 101,
- //
- // Summary:
- // The 6 key on the numeric keypad.
- NumPad6 = 102,
- //
- // Summary:
- // The 7 key on the numeric keypad.
- NumPad7 = 103,
- //
- // Summary:
- // The 8 key on the numeric keypad.
- NumPad8 = 104,
- //
- // Summary:
- // The 9 key on the numeric keypad.
- NumPad9 = 105,
- //
- // Summary:
- // The multiply key.
- Multiply = 106,
- //
- // Summary:
- // The add key.
- Add = 107,
- //
- // Summary:
- // The separator key.
- Separator = 108,
- //
- // Summary:
- // The subtract key.
- Subtract = 109,
- //
- // Summary:
- // The decimal key.
- Decimal = 110,
- //
- // Summary:
- // The divide key.
- Divide = 111,
- //
- // Summary:
- // The F1 key.
- F1 = 112,
- //
- // Summary:
- // The F2 key.
- F2 = 113,
- //
- // Summary:
- // The F3 key.
- F3 = 114,
- //
- // Summary:
- // The F4 key.
- F4 = 115,
- //
- // Summary:
- // The F5 key.
- F5 = 116,
- //
- // Summary:
- // The F6 key.
- F6 = 117,
- //
- // Summary:
- // The F7 key.
- F7 = 118,
- //
- // Summary:
- // The F8 key.
- F8 = 119,
- //
- // Summary:
- // The F9 key.
- F9 = 120,
- //
- // Summary:
- // The F10 key.
- F10 = 121,
- //
- // Summary:
- // The F11 key.
- F11 = 122,
- //
- // Summary:
- // The F12 key.
- F12 = 123,
- //
- // Summary:
- // The F13 key.
- F13 = 124,
- //
- // Summary:
- // The F14 key.
- F14 = 125,
- //
- // Summary:
- // The F15 key.
- F15 = 126,
- //
- // Summary:
- // The F16 key.
- F16 = 127,
- //
- // Summary:
- // The F17 key.
- F17 = 128,
- //
- // Summary:
- // The F18 key.
- F18 = 129,
- //
- // Summary:
- // The F19 key.
- F19 = 130,
- //
- // Summary:
- // The F20 key.
- F20 = 131,
- //
- // Summary:
- // The F21 key.
- F21 = 132,
- //
- // Summary:
- // The F22 key.
- F22 = 133,
- //
- // Summary:
- // The F23 key.
- F23 = 134,
- //
- // Summary:
- // The F24 key.
- F24 = 135,
- //
- // Summary:
- // The NUM LOCK key.
- NumLock = 144,
- //
- // Summary:
- // The SCROLL LOCK key.
- Scroll = 145,
- //
- // Summary:
- // The left SHIFT key.
- LShiftKey = 160,
- //
- // Summary:
- // The right SHIFT key.
- RShiftKey = 161,
- //
- // Summary:
- // The left CTRL key.
- LControlKey = 162,
- //
- // Summary:
- // The right CTRL key.
- RControlKey = 163,
- //
- // Summary:
- // The left ALT key.
- LMenu = 164,
- //
- // Summary:
- // The right ALT key.
- RMenu = 165,
- //
- // Summary:
- // The browser back key (Windows 2000 or later).
- BrowserBack = 166,
- //
- // Summary:
- // The browser forward key (Windows 2000 or later).
- BrowserForward = 167,
- //
- // Summary:
- // The browser refresh key (Windows 2000 or later).
- BrowserRefresh = 168,
- //
- // Summary:
- // The browser stop key (Windows 2000 or later).
- BrowserStop = 169,
- //
- // Summary:
- // The browser search key (Windows 2000 or later).
- BrowserSearch = 170,
- //
- // Summary:
- // The browser favorites key (Windows 2000 or later).
- BrowserFavorites = 171,
- //
- // Summary:
- // The browser home key (Windows 2000 or later).
- BrowserHome = 172,
- //
- // Summary:
- // The volume mute key (Windows 2000 or later).
- VolumeMute = 173,
- //
- // Summary:
- // The volume down key (Windows 2000 or later).
- VolumeDown = 174,
- //
- // Summary:
- // The volume up key (Windows 2000 or later).
- VolumeUp = 175,
- //
- // Summary:
- // The media next track key (Windows 2000 or later).
- MediaNextTrack = 176,
- //
- // Summary:
- // The media previous track key (Windows 2000 or later).
- MediaPreviousTrack = 177,
- //
- // Summary:
- // The media Stop key (Windows 2000 or later).
- MediaStop = 178,
- //
- // Summary:
- // The media play pause key (Windows 2000 or later).
- MediaPlayPause = 179,
- //
- // Summary:
- // The launch mail key (Windows 2000 or later).
- LaunchMail = 180,
- //
- // Summary:
- // The select media key (Windows 2000 or later).
- SelectMedia = 181,
- //
- // Summary:
- // The start application one key (Windows 2000 or later).
- LaunchApplication1 = 182,
- //
- // Summary:
- // The start application two key (Windows 2000 or later).
- LaunchApplication2 = 183,
- //
- // Summary:
- // The OEM 1 key.
- Oem1 = 186,
- //
- // Summary:
- // The OEM Semicolon key on a US standard keyboard (Windows 2000 or later).
- OemSemicolon = 186,
- //
- // Summary:
- // The OEM plus key on any country/region keyboard (Windows 2000 or later).
- Oemplus = 187,
- //
- // Summary:
- // The OEM comma key on any country/region keyboard (Windows 2000 or later).
- Oemcomma = 188,
- //
- // Summary:
- // The OEM minus key on any country/region keyboard (Windows 2000 or later).
- OemMinus = 189,
- //
- // Summary:
- // The OEM period key on any country/region keyboard (Windows 2000 or later).
- OemPeriod = 190,
- //
- // Summary:
- // The OEM question mark key on a US standard keyboard (Windows 2000 or later).
- OemQuestion = 191,
- //
- // Summary:
- // The OEM 2 key.
- Oem2 = 191,
- //
- // Summary:
- // The OEM tilde key on a US standard keyboard (Windows 2000 or later).
- Oemtilde = 192,
- //
- // Summary:
- // The OEM 3 key.
- Oem3 = 192,
- //
- // Summary:
- // The OEM 4 key.
- Oem4 = 219,
- //
- // Summary:
- // The OEM open bracket key on a US standard keyboard (Windows 2000 or later).
- OemOpenBrackets = 219,
- //
- // Summary:
- // The OEM pipe key on a US standard keyboard (Windows 2000 or later).
- OemPipe = 220,
- //
- // Summary:
- // The OEM 5 key.
- Oem5 = 220,
- //
- // Summary:
- // The OEM 6 key.
- Oem6 = 221,
- //
- // Summary:
- // The OEM close bracket key on a US standard keyboard (Windows 2000 or later).
- OemCloseBrackets = 221,
- //
- // Summary:
- // The OEM 7 key.
- Oem7 = 222,
- //
- // Summary:
- // The OEM singled/double quote key on a US standard keyboard (Windows 2000
- // or later).
- OemQuotes = 222,
- //
- // Summary:
- // The OEM 8 key.
- Oem8 = 223,
- //
- // Summary:
- // The OEM 102 key.
- Oem102 = 226,
- //
- // Summary:
- // The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows
- // 2000 or later).
- OemBackslash = 226,
- //
- // Summary:
- // The PROCESS KEY key.
- ProcessKey = 229,
- //
- // Summary:
- // Used to pass Unicode characters as if they were keystrokes. The Packet key
- // value is the low word of a 32-bit virtual-key value used for non-keyboard
- // input methods.
- Packet = 231,
- //
- // Summary:
- // The ATTN key.
- Attn = 246,
- //
- // Summary:
- // The CRSEL key.
- Crsel = 247,
- //
- // Summary:
- // The EXSEL key.
- Exsel = 248,
- //
- // Summary:
- // The ERASE EOF key.
- EraseEof = 249,
- //
- // Summary:
- // The PLAY key.
- Play = 250,
- //
- // Summary:
- // The ZOOM key.
- Zoom = 251,
- //
- // Summary:
- // A constant reserved for future use.
- NoName = 252,
- //
- // Summary:
- // The PA1 key.
- Pa1 = 253,
- //
- // Summary:
- // The CLEAR key.
- OemClear = 254,
- //
- // Summary:
- // The bitmask to extract a key code from a key value.
- KeyCode = 65535,
- //
- // Summary:
- // The SHIFT modifier key.
- Shift = 65536,
- //
- // Summary:
- // The CTRL modifier key.
- Control = 131072,
- //
- // Summary:
- // The ALT modifier key.
- Alt = 262144,
- }
-
- public partial struct WM {
- internal const int Hotkey = 0x312;
- internal const int SetHotkey = 0x0032;
- internal const int GetHotkey = 0x33;
- }
-
- public partial class NativeMethods {
- ///
- /// The RegisterHotKey function defines a system-wide hot key
- ///
- /// Handle to the window that will receive WM_HOTKEY messages generated by the hot key. If this parameter is NULL, WM_HOTKEY messages are posted to the message queue of the calling thread and must be processed in the message loop.
- /// Specifies the identifier of the hot key. No other hot key in the calling thread should have the same identifier. An application must specify a value in the range 0x0000 through 0xBFFF. A shared dynamic-link library (DLL) must specify a value in the range 0xC000 through 0xFFFF (the range returned by the GlobalAddAtom function). To avoid conflicts with hot-key identifiers defined by other shared DLLs, a DLL should use the GlobalAddAtom function to obtain the hot-key identifier.
- /// Specifies keys that must be pressed in combination with the key specified by the uVirtKey parameter in order to generate the WM_HOTKEY message.
- /// Specifies the virtual-key code of the hot key.
- /// If the function succeeds, the return value is nonzero.
- [DllImport("User32", SetLastError = true)]
- [return : MarshalAs(UnmanagedType.Bool)]
- public static extern bool RegisterHotKey(IntPtr hWnd, int id, ModifierKeys fsModifiers, Keys uVirtKey);
-
- ///
- /// The UnregisterHotKey function frees a hot key previously registered by the calling thread.
- ///
- /// Handle to the window associated with the hot key to be freed. This parameter should be NULL if the hot key is not associated with a window.
- /// Specifies the identifier of the hot key to be freed.
- /// If the function succeeds, the return value is nonzero.
- [DllImport("User32", SetLastError = true)]
- [return : MarshalAs(UnmanagedType.Bool)]
- public static extern bool UnregisterHotKey(IntPtr hWnd, int id);
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/ApplicationContext.cs b/Spikes/DocumentationApps/SampleApplication/ApplicationContext.cs
deleted file mode 100644
index f91fed01..00000000
--- a/Spikes/DocumentationApps/SampleApplication/ApplicationContext.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using SampleApplication.Domain;
-
-namespace SampleApplication
-{
- public class ApplicationContext
- {
- private static Movie selectedMovie;
-
- public static Movie SelectedMovie
- {
- get { return selectedMovie; }
- set { selectedMovie = value; }
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.Designer.cs b/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.Designer.cs
deleted file mode 100644
index a397517c..00000000
--- a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.Designer.cs
+++ /dev/null
@@ -1,129 +0,0 @@
-namespace SampleApplication
-{
- partial class CreateCustomerStep1
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.nameLabel = new System.Windows.Forms.Label();
- this.nameTextBox = new System.Windows.Forms.TextBox();
- this.ageTextBox = new System.Windows.Forms.TextBox();
- this.ageLabel = new System.Windows.Forms.Label();
- this.nextButton = new System.Windows.Forms.Button();
- this.messageLabel = new System.Windows.Forms.Label();
- this.cancelButton = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // nameLabel
- //
- this.nameLabel.AutoSize = true;
- this.nameLabel.Location = new System.Drawing.Point(27, 48);
- this.nameLabel.Name = "nameLabel";
- this.nameLabel.Size = new System.Drawing.Size(35, 13);
- this.nameLabel.TabIndex = 8;
- this.nameLabel.Text = "Name";
- //
- // nameTextBox
- //
- this.nameTextBox.Location = new System.Drawing.Point(95, 48);
- this.nameTextBox.Name = "nameTextBox";
- this.nameTextBox.Size = new System.Drawing.Size(100, 20);
- this.nameTextBox.TabIndex = 0;
- //
- // ageTextBox
- //
- this.ageTextBox.Location = new System.Drawing.Point(95, 86);
- this.ageTextBox.Name = "ageTextBox";
- this.ageTextBox.Size = new System.Drawing.Size(100, 20);
- this.ageTextBox.TabIndex = 1;
- //
- // ageLabel
- //
- this.ageLabel.AutoSize = true;
- this.ageLabel.Location = new System.Drawing.Point(27, 86);
- this.ageLabel.Name = "ageLabel";
- this.ageLabel.Size = new System.Drawing.Size(26, 13);
- this.ageLabel.TabIndex = 10;
- this.ageLabel.Text = "Age";
- //
- // nextButton
- //
- this.nextButton.Location = new System.Drawing.Point(260, 186);
- this.nextButton.Name = "nextButton";
- this.nextButton.Size = new System.Drawing.Size(75, 23);
- this.nextButton.TabIndex = 2;
- this.nextButton.Text = "&Next";
- this.nextButton.UseVisualStyleBackColor = true;
- //
- // messageLabel
- //
- this.messageLabel.AutoSize = true;
- this.messageLabel.ForeColor = System.Drawing.Color.Red;
- this.messageLabel.Location = new System.Drawing.Point(30, 134);
- this.messageLabel.Name = "messageLabel";
- this.messageLabel.Size = new System.Drawing.Size(0, 13);
- this.messageLabel.TabIndex = 13;
- //
- // cancelButton
- //
- this.cancelButton.Location = new System.Drawing.Point(341, 186);
- this.cancelButton.Name = "cancelButton";
- this.cancelButton.Size = new System.Drawing.Size(75, 23);
- this.cancelButton.TabIndex = 3;
- this.cancelButton.Text = "Cancel";
- this.cancelButton.UseVisualStyleBackColor = true;
- //
- // CreateCustomerStep1
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(437, 221);
- this.Controls.Add(this.cancelButton);
- this.Controls.Add(this.messageLabel);
- this.Controls.Add(this.nextButton);
- this.Controls.Add(this.ageTextBox);
- this.Controls.Add(this.ageLabel);
- this.Controls.Add(this.nameTextBox);
- this.Controls.Add(this.nameLabel);
- this.Name = "CreateCustomerStep1";
- this.Text = "Create Customer Step1";
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label nameLabel;
- private System.Windows.Forms.TextBox nameTextBox;
- private System.Windows.Forms.TextBox ageTextBox;
- private System.Windows.Forms.Label ageLabel;
- private System.Windows.Forms.Button nextButton;
- private System.Windows.Forms.Label messageLabel;
- private System.Windows.Forms.Button cancelButton;
- }
-}
-
diff --git a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.cs b/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.cs
deleted file mode 100644
index e1077d30..00000000
--- a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Windows.Forms;
-using SampleApplication.Domain;
-
-namespace SampleApplication
-{
- //TODO: Currency can be used to add complexity to app
- public partial class CreateCustomerStep1 : Form
- {
- public CreateCustomerStep1()
- {
- InitializeComponent();
- nextButton.Click += NextButtonClicked;
- }
-
- private void NextButtonClicked(object sender, EventArgs e)
- {
- messageLabel.Text = string.Empty;
- int age;
- if (string.IsNullOrEmpty(nameTextBox.Text))
- {
- messageLabel.Text = "/Name cannot be empty";
- }
- if (!int.TryParse(ageTextBox.Text, out age))
- {
- messageLabel.Text += "/Age should be a valid number";
- }
-
- if (!string.IsNullOrEmpty(messageLabel.Text)) return;
-
- Customer customer = new Customer();
- customer.Name = nameTextBox.Text;
- customer.Age = int.Parse(ageTextBox.Text);
- Close();
- CreateCustomerStep2 step2 = new CreateCustomerStep2(customer);
- step2.StartPosition = FormStartPosition.CenterParent;
- step2.Show();
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.resx b/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.resx
deleted file mode 100644
index a57c32aa..00000000
--- a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.resx
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.Designer.cs b/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.Designer.cs
deleted file mode 100644
index 3e56d4ed..00000000
--- a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.Designer.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-namespace SampleApplication
-{
- partial class CreateCustomerStep2
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.phoneNumberTextBox = new System.Windows.Forms.TextBox();
- this.phoneNumberLabel = new System.Windows.Forms.Label();
- this.submitButton = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // phoneNumberTextBox
- //
- this.phoneNumberTextBox.Location = new System.Drawing.Point(100, 14);
- this.phoneNumberTextBox.Name = "phoneNumberTextBox";
- this.phoneNumberTextBox.Size = new System.Drawing.Size(100, 20);
- this.phoneNumberTextBox.TabIndex = 0;
- //
- // phoneNumberLabel
- //
- this.phoneNumberLabel.AutoSize = true;
- this.phoneNumberLabel.Location = new System.Drawing.Point(12, 17);
- this.phoneNumberLabel.Name = "phoneNumberLabel";
- this.phoneNumberLabel.Size = new System.Drawing.Size(78, 13);
- this.phoneNumberLabel.TabIndex = 1;
- this.phoneNumberLabel.Text = "Phone Number";
- //
- // submitButton
- //
- this.submitButton.Location = new System.Drawing.Point(29, 78);
- this.submitButton.Name = "submitButton";
- this.submitButton.Size = new System.Drawing.Size(75, 23);
- this.submitButton.TabIndex = 1;
- this.submitButton.Text = "&Submit";
- this.submitButton.UseVisualStyleBackColor = true;
- //
- // CreateCustomerStep2
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(292, 273);
- this.Controls.Add(this.submitButton);
- this.Controls.Add(this.phoneNumberLabel);
- this.Controls.Add(this.phoneNumberTextBox);
- this.Name = "CreateCustomerStep2";
- this.Text = "Create Customer Step2";
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.TextBox phoneNumberTextBox;
- private System.Windows.Forms.Label phoneNumberLabel;
- private System.Windows.Forms.Button submitButton;
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.cs b/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.cs
deleted file mode 100644
index 1dc9883e..00000000
--- a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Windows.Forms;
-using SampleApplication.Domain;
-
-namespace SampleApplication
-{
- public partial class CreateCustomerStep2 : Form
- {
- private readonly Customer customer;
-
- public CreateCustomerStep2()
- {
- InitializeComponent();
- submitButton.Click += SubmitButtonClicked;
- }
-
- public CreateCustomerStep2(Customer customer) : this()
- {
- this.customer = customer;
- }
-
- private void SubmitButtonClicked(object sender, EventArgs e)
- {
- customer.PhoneNumber = phoneNumberTextBox.Text;
- DataStore.Customers.Add(customer);
- Close();
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.resx b/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.resx
deleted file mode 100644
index a57c32aa..00000000
--- a/Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.resx
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Dashboard.Designer.cs b/Spikes/DocumentationApps/SampleApplication/Dashboard.Designer.cs
deleted file mode 100644
index 1282ddd4..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Dashboard.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace SampleApplication
-{
- partial class Dashboard
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.createCustomer = new System.Windows.Forms.LinkLabel();
- this.searchCustomer = new System.Windows.Forms.LinkLabel();
- this.searchMovies = new System.Windows.Forms.LinkLabel();
- this.SuspendLayout();
- //
- // createCustomer
- //
- this.createCustomer.AutoSize = true;
- this.createCustomer.Location = new System.Drawing.Point(30, 48);
- this.createCustomer.Name = "createCustomer";
- this.createCustomer.Size = new System.Drawing.Size(85, 13);
- this.createCustomer.TabIndex = 0;
- this.createCustomer.TabStop = true;
- this.createCustomer.Text = "Create Customer";
- //
- // searchCustomer
- //
- this.searchCustomer.AutoSize = true;
- this.searchCustomer.Location = new System.Drawing.Point(30, 81);
- this.searchCustomer.Name = "searchCustomer";
- this.searchCustomer.Size = new System.Drawing.Size(88, 13);
- this.searchCustomer.TabIndex = 1;
- this.searchCustomer.TabStop = true;
- this.searchCustomer.Text = "Search Customer";
- //
- // searchMovies
- //
- this.searchMovies.AutoSize = true;
- this.searchMovies.Location = new System.Drawing.Point(30, 123);
- this.searchMovies.Name = "searchMovies";
- this.searchMovies.Size = new System.Drawing.Size(78, 13);
- this.searchMovies.TabIndex = 8;
- this.searchMovies.TabStop = true;
- this.searchMovies.Text = "Search Movies";
- //
- // Dashboard
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(675, 433);
- this.Controls.Add(this.searchMovies);
- this.Controls.Add(this.searchCustomer);
- this.Controls.Add(this.createCustomer);
- this.Name = "Dashboard";
- this.Text = "Dashboard";
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.LinkLabel createCustomer;
- private System.Windows.Forms.LinkLabel searchCustomer;
- private System.Windows.Forms.LinkLabel searchMovies;
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Dashboard.cs b/Spikes/DocumentationApps/SampleApplication/Dashboard.cs
deleted file mode 100644
index 8c667ea1..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Dashboard.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System.Windows.Forms;
-
-namespace SampleApplication
-{
- public partial class Dashboard : Form
- {
- public Dashboard()
- {
- InitializeComponent();
- createCustomer.LinkClicked += CreateCustomerClicked;
- searchCustomer.LinkClicked += SearchCustomers;
- searchMovies.LinkClicked += SearchMovies_OnLinkClicked;
- }
-
- private void SearchMovies_OnLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- new SearchMovies().ShowDialog();
- }
-
- private void CreateCustomerClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- CreateCustomerStep1 step1 = new CreateCustomerStep1();
- step1.StartPosition = FormStartPosition.CenterParent;
- step1.Show();
- }
-
- private void SearchCustomers(object sender, LinkLabelLinkClickedEventArgs e)
- {
- new SearchCustomer().ShowDialog();
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Dashboard.resx b/Spikes/DocumentationApps/SampleApplication/Dashboard.resx
deleted file mode 100644
index a57c32aa..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Dashboard.resx
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Domain/Customer.cs b/Spikes/DocumentationApps/SampleApplication/Domain/Customer.cs
deleted file mode 100644
index 70bc8660..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Domain/Customer.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-namespace SampleApplication.Domain
-{
- public class Customer
- {
- private string name;
- private int age;
- private int id;
- private string phoneNumber;
-
- public Customer(int id, string name, int age, string phoneNumber)
- {
- this.name = name;
- this.phoneNumber = phoneNumber;
- this.age = age;
- this.id = id;
- }
-
- public Customer() {}
-
- public string PhoneNumber
- {
- get { return phoneNumber; }
- set { phoneNumber = value; }
- }
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
-
- public int Age
- {
- get { return age; }
- set { age = value; }
- }
-
- public int Id
- {
- get { return id; }
- set { id = value; }
- }
-
- protected bool Equals(Customer customer)
- {
- if (customer == null) return false;
- return id == customer.id;
- }
-
- public override bool Equals(object obj)
- {
- if (ReferenceEquals(this, obj)) return true;
- return Equals(obj as Customer);
- }
-
- public override int GetHashCode()
- {
- return id;
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Domain/Customers.cs b/Spikes/DocumentationApps/SampleApplication/Domain/Customers.cs
deleted file mode 100644
index e32770c9..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Domain/Customers.cs
+++ /dev/null
@@ -1,6 +0,0 @@
-using System.Collections.Generic;
-
-namespace SampleApplication.Domain
-{
- public class Customers : List {}
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Domain/DataStore.cs b/Spikes/DocumentationApps/SampleApplication/Domain/DataStore.cs
deleted file mode 100644
index 80fb3851..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Domain/DataStore.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System.Collections.Generic;
-
-namespace SampleApplication.Domain
-{
- public class DataStore
- {
- private static readonly Customers customers = new Customers();
- private static readonly List movies = new List();
-
- static DataStore()
- {
- customers.Add(new Customer(1, "Anil", 25, "988435743"));
- customers.Add(new Customer(2, "Suman", 20, "435435345"));
- customers.Add(new Customer(3, "Raghav", 30, "4534534"));
-
- movies.Add(new Movie("Sholay", false, "Ramesh Sippy"));
- movies.Add(new Movie("Fire", false, "Deepa Mehta"));
- movies.Add(new Movie("Blue Umbrella", true, "Vishal Bharadwaj"));
- movies.Add(new Movie("Taare Zameen Par", true, "Aamir Khan"));
- }
-
- public static Customers Customers
- {
- get { return customers; }
- }
-
- public static List Movies
- {
- get { return movies; }
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Domain/Movie.cs b/Spikes/DocumentationApps/SampleApplication/Domain/Movie.cs
deleted file mode 100644
index d8d46763..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Domain/Movie.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-namespace SampleApplication.Domain
-{
- public class Movie
- {
- private string name;
- private string director;
- private bool forMinors;
-
- public Movie(string name, bool forMinors, string director)
- {
- this.name = name;
- this.director = director;
- this.forMinors = forMinors;
- }
-
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
-
- public bool ForMinors
- {
- get { return forMinors; }
- set { forMinors = value; }
- }
-
- public string Director
- {
- get { return director; }
- set { director = value; }
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Program.cs b/Spikes/DocumentationApps/SampleApplication/Program.cs
deleted file mode 100644
index ef0211bd..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Program.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Windows.Forms;
-
-namespace SampleApplication
-{
- static class Program
- {
- ///
- /// The main entry point for the application.
- ///
- [STAThread]
- static void Main()
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Dashboard dashboard = new Dashboard();
- dashboard.StartPosition = FormStartPosition.CenterScreen;
- Application.Run(dashboard);
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Properties/Resources.Designer.cs b/Spikes/DocumentationApps/SampleApplication/Properties/Resources.Designer.cs
deleted file mode 100644
index ca3c5322..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.3053
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace SampleApplication.Properties {
- using System;
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SampleApplication.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/Spikes/DocumentationApps/SampleApplication/Properties/Resources.resx b/Spikes/DocumentationApps/SampleApplication/Properties/Resources.resx
deleted file mode 100644
index 6dc4f43f..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Properties/Resources.resx
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/Properties/Settings.Designer.cs b/Spikes/DocumentationApps/SampleApplication/Properties/Settings.Designer.cs
deleted file mode 100644
index 3d9ea49e..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.3053
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace SampleApplication.Properties {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/Spikes/DocumentationApps/SampleApplication/Properties/Settings.settings b/Spikes/DocumentationApps/SampleApplication/Properties/Settings.settings
deleted file mode 100644
index abf36c5d..00000000
--- a/Spikes/DocumentationApps/SampleApplication/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/Spikes/DocumentationApps/SampleApplication/SampleApplication.csproj b/Spikes/DocumentationApps/SampleApplication/SampleApplication.csproj
deleted file mode 100644
index fd9a35d0..00000000
--- a/Spikes/DocumentationApps/SampleApplication/SampleApplication.csproj
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
- Debug
- AnyCPU
- 8.0.50727
- 2.0
- {A9BD11E0-E107-48BA-AA2F-E81C4F77DCBF}
- WinExe
- Properties
- SampleApplication
- SampleApplication
-
-
- 2.0
-
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- false
- 1591
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
- AssemblyInfo.cs
-
-
-
- Form
-
-
- CreateCustomerStep2.cs
-
-
- Form
-
-
- Dashboard.cs
-
-
-
-
-
-
- Form
-
-
- SearchCustomer.cs
-
-
- Form
-
-
- CreateCustomerStep1.cs
-
-
-
- Designer
- CreateCustomerStep2.cs
-
-
- Designer
- Dashboard.cs
-
-
- Designer
- SearchCustomer.cs
-
-
- Designer
- CreateCustomerStep1.cs
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
- Designer
-
-
- Designer
- SearchMovies.cs
-
-
- True
- Resources.resx
- True
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
- True
- Settings.settings
- True
-
-
- Form
-
-
- SearchMovies.cs
-
-
-
-
-
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/SearchCustomer.Designer.cs b/Spikes/DocumentationApps/SampleApplication/SearchCustomer.Designer.cs
deleted file mode 100644
index 7ce811c7..00000000
--- a/Spikes/DocumentationApps/SampleApplication/SearchCustomer.Designer.cs
+++ /dev/null
@@ -1,203 +0,0 @@
-namespace SampleApplication
-{
- partial class SearchCustomer
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.nameLabel = new System.Windows.Forms.Label();
- this.nameTextBox = new System.Windows.Forms.TextBox();
- this.ageTextBox = new System.Windows.Forms.TextBox();
- this.ageLabel = new System.Windows.Forms.Label();
- this.search = new System.Windows.Forms.Button();
- this.foundCustomers = new System.Windows.Forms.DataGridView();
- this.nameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.ageColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.phoneNumberColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.deleteButton = new System.Windows.Forms.Button();
- this.searchMovies = new System.Windows.Forms.LinkLabel();
- this.selectedMovie = new System.Windows.Forms.Label();
- this.selectedMovieLabel = new System.Windows.Forms.Label();
- this.ok = new System.Windows.Forms.Button();
- ((System.ComponentModel.ISupportInitialize)(this.foundCustomers)).BeginInit();
- this.SuspendLayout();
- //
- // nameLabel
- //
- this.nameLabel.AutoSize = true;
- this.nameLabel.Location = new System.Drawing.Point(13, 28);
- this.nameLabel.Name = "nameLabel";
- this.nameLabel.Size = new System.Drawing.Size(35, 13);
- this.nameLabel.TabIndex = 0;
- this.nameLabel.Text = "Name";
- //
- // nameTextBox
- //
- this.nameTextBox.Location = new System.Drawing.Point(55, 28);
- this.nameTextBox.Name = "nameTextBox";
- this.nameTextBox.Size = new System.Drawing.Size(100, 20);
- this.nameTextBox.TabIndex = 1;
- //
- // ageTextBox
- //
- this.ageTextBox.Location = new System.Drawing.Point(55, 66);
- this.ageTextBox.Name = "ageTextBox";
- this.ageTextBox.Size = new System.Drawing.Size(100, 20);
- this.ageTextBox.TabIndex = 3;
- //
- // ageLabel
- //
- this.ageLabel.AutoSize = true;
- this.ageLabel.Location = new System.Drawing.Point(13, 69);
- this.ageLabel.Name = "ageLabel";
- this.ageLabel.Size = new System.Drawing.Size(26, 13);
- this.ageLabel.TabIndex = 2;
- this.ageLabel.Text = "Age";
- //
- // search
- //
- this.search.Location = new System.Drawing.Point(206, 26);
- this.search.Name = "search";
- this.search.Size = new System.Drawing.Size(75, 23);
- this.search.TabIndex = 4;
- this.search.Text = "&Search";
- this.search.UseVisualStyleBackColor = true;
- //
- // foundCustomers
- //
- this.foundCustomers.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.foundCustomers.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.nameColumn,
- this.ageColumn,
- this.phoneNumberColumn});
- this.foundCustomers.Location = new System.Drawing.Point(16, 130);
- this.foundCustomers.Name = "foundCustomers";
- this.foundCustomers.Size = new System.Drawing.Size(472, 150);
- this.foundCustomers.TabIndex = 5;
- //
- // nameColumn
- //
- this.nameColumn.HeaderText = "Name";
- this.nameColumn.Name = "nameColumn";
- //
- // ageColumn
- //
- this.ageColumn.HeaderText = "Age";
- this.ageColumn.Name = "ageColumn";
- //
- // phoneNumberColumn
- //
- this.phoneNumberColumn.HeaderText = "PhoneNumber";
- this.phoneNumberColumn.Name = "phoneNumberColumn";
- //
- // deleteButton
- //
- this.deleteButton.Location = new System.Drawing.Point(413, 286);
- this.deleteButton.Name = "deleteButton";
- this.deleteButton.Size = new System.Drawing.Size(75, 23);
- this.deleteButton.TabIndex = 6;
- this.deleteButton.Text = "&Delete";
- this.deleteButton.UseVisualStyleBackColor = true;
- //
- // searchMovies
- //
- this.searchMovies.AutoSize = true;
- this.searchMovies.Location = new System.Drawing.Point(13, 376);
- this.searchMovies.Name = "searchMovies";
- this.searchMovies.Size = new System.Drawing.Size(78, 13);
- this.searchMovies.TabIndex = 7;
- this.searchMovies.TabStop = true;
- this.searchMovies.Text = "Search Movies";
- //
- // selectedMovie
- //
- this.selectedMovie.AutoSize = true;
- this.selectedMovie.Location = new System.Drawing.Point(82, 405);
- this.selectedMovie.Name = "selectedMovie";
- this.selectedMovie.Size = new System.Drawing.Size(0, 13);
- this.selectedMovie.TabIndex = 8;
- //
- // selectedMovieLabel
- //
- this.selectedMovieLabel.AutoSize = true;
- this.selectedMovieLabel.Location = new System.Drawing.Point(13, 405);
- this.selectedMovieLabel.Name = "selectedMovieLabel";
- this.selectedMovieLabel.Size = new System.Drawing.Size(49, 13);
- this.selectedMovieLabel.TabIndex = 9;
- this.selectedMovieLabel.Text = "Selected";
- //
- // ok
- //
- this.ok.Location = new System.Drawing.Point(412, 478);
- this.ok.Name = "ok";
- this.ok.Size = new System.Drawing.Size(75, 23);
- this.ok.TabIndex = 10;
- this.ok.Text = "&OK";
- this.ok.UseVisualStyleBackColor = true;
- //
- // SearchCustomer
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(499, 513);
- this.Controls.Add(this.ok);
- this.Controls.Add(this.selectedMovieLabel);
- this.Controls.Add(this.selectedMovie);
- this.Controls.Add(this.searchMovies);
- this.Controls.Add(this.deleteButton);
- this.Controls.Add(this.foundCustomers);
- this.Controls.Add(this.search);
- this.Controls.Add(this.ageTextBox);
- this.Controls.Add(this.ageLabel);
- this.Controls.Add(this.nameTextBox);
- this.Controls.Add(this.nameLabel);
- this.Name = "SearchCustomer";
- this.Text = "Search Customer";
- ((System.ComponentModel.ISupportInitialize)(this.foundCustomers)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label nameLabel;
- private System.Windows.Forms.TextBox nameTextBox;
- private System.Windows.Forms.TextBox ageTextBox;
- private System.Windows.Forms.Label ageLabel;
- private System.Windows.Forms.Button search;
- private System.Windows.Forms.DataGridView foundCustomers;
- private System.Windows.Forms.DataGridViewTextBoxColumn nameColumn;
- private System.Windows.Forms.DataGridViewTextBoxColumn ageColumn;
- private System.Windows.Forms.DataGridViewTextBoxColumn phoneNumberColumn;
- private System.Windows.Forms.Button deleteButton;
- private System.Windows.Forms.LinkLabel searchMovies;
- private System.Windows.Forms.Label selectedMovie;
- private System.Windows.Forms.Label selectedMovieLabel;
- private System.Windows.Forms.Button ok;
-
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/SearchCustomer.cs b/Spikes/DocumentationApps/SampleApplication/SearchCustomer.cs
deleted file mode 100644
index d2e53184..00000000
--- a/Spikes/DocumentationApps/SampleApplication/SearchCustomer.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Windows.Forms;
-using SampleApplication.Domain;
-
-namespace SampleApplication
-{
- public partial class SearchCustomer : Form
- {
- public SearchCustomer()
- {
- InitializeComponent();
- foundCustomers.ReadOnly = true;
- foundCustomers.AllowUserToAddRows = false;
- search.Click += SearchClicked;
- deleteButton.Click += DeleteButton_OnClick;
- searchMovies.LinkClicked += SearchMovies_OnLinkClicked;
- }
-
- private void DeleteButton_OnClick(object sender, EventArgs e)
- {
- if (foundCustomers.SelectedRows.Count == 0) return;
-
- Customer selectedCustomer = (Customer) foundCustomers.SelectedRows[0].Tag;
- DataStore.Customers.Remove(selectedCustomer);
- }
-
- private void SearchClicked(object sender, EventArgs e)
- {
- string nameCriteria = nameTextBox.Text;
- int enteredAge;
- bool ageEntered = int.TryParse(ageTextBox.Text, out enteredAge);
- List customers = DataStore.Customers.FindAll(delegate(Customer obj)
- {
- return ageEntered && enteredAge.Equals(obj.Age) ||
- (!string.IsNullOrEmpty(nameCriteria) && obj.Name.Contains(nameCriteria));
- });
- DisplayCustomers(customers);
- }
-
- private void DisplayCustomers(List customers)
- {
- foundCustomers.Rows.Clear();
- customers.ForEach(delegate(Customer obj)
- {
- foundCustomers.Rows.Add(obj.Name, obj.Age, obj.PhoneNumber);
- foundCustomers.Rows[foundCustomers.Rows.Count - 1].Tag = obj;
- });
- }
-
- private void SearchMovies_OnLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- new SearchMovies().ShowDialog();
- if (ApplicationContext.SelectedMovie != null)
- selectedMovie.Text = ApplicationContext.SelectedMovie.Name;
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/SearchCustomer.resx b/Spikes/DocumentationApps/SampleApplication/SearchCustomer.resx
deleted file mode 100644
index 7ce5cba2..00000000
--- a/Spikes/DocumentationApps/SampleApplication/SearchCustomer.resx
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- True
-
-
- True
-
-
- True
-
-
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/SearchMovies.Designer.cs b/Spikes/DocumentationApps/SampleApplication/SearchMovies.Designer.cs
deleted file mode 100644
index fbfb583c..00000000
--- a/Spikes/DocumentationApps/SampleApplication/SearchMovies.Designer.cs
+++ /dev/null
@@ -1,154 +0,0 @@
-namespace SampleApplication
-{
- partial class SearchMovies
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.nameLabel = new System.Windows.Forms.Label();
- this.nameTextbox = new System.Windows.Forms.TextBox();
- this.directorTextbox = new System.Windows.Forms.TextBox();
- this.directorLabel = new System.Windows.Forms.Label();
- this.search = new System.Windows.Forms.Button();
- this.foundMovies = new System.Windows.Forms.DataGridView();
- this.nameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.ageColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.phoneNumberColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.select = new System.Windows.Forms.Button();
- ((System.ComponentModel.ISupportInitialize)(this.foundMovies)).BeginInit();
- this.SuspendLayout();
- //
- // nameLabel
- //
- this.nameLabel.AutoSize = true;
- this.nameLabel.Location = new System.Drawing.Point(13, 22);
- this.nameLabel.Name = "nameLabel";
- this.nameLabel.Size = new System.Drawing.Size(35, 13);
- this.nameLabel.TabIndex = 0;
- this.nameLabel.Text = "Name";
- //
- // nameTextbox
- //
- this.nameTextbox.Location = new System.Drawing.Point(63, 19);
- this.nameTextbox.Name = "nameTextbox";
- this.nameTextbox.Size = new System.Drawing.Size(129, 20);
- this.nameTextbox.TabIndex = 1;
- //
- // directorTextbox
- //
- this.directorTextbox.Location = new System.Drawing.Point(63, 57);
- this.directorTextbox.Name = "directorTextbox";
- this.directorTextbox.Size = new System.Drawing.Size(129, 20);
- this.directorTextbox.TabIndex = 3;
- //
- // directorLabel
- //
- this.directorLabel.AutoSize = true;
- this.directorLabel.Location = new System.Drawing.Point(13, 60);
- this.directorLabel.Name = "directorLabel";
- this.directorLabel.Size = new System.Drawing.Size(44, 13);
- this.directorLabel.TabIndex = 2;
- this.directorLabel.Text = "Director";
- //
- // search
- //
- this.search.Location = new System.Drawing.Point(116, 84);
- this.search.Name = "search";
- this.search.Size = new System.Drawing.Size(75, 23);
- this.search.TabIndex = 4;
- this.search.Text = "Sea&rch";
- this.search.UseVisualStyleBackColor = true;
- //
- // foundMovies
- //
- this.foundMovies.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.foundMovies.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.nameColumn,
- this.ageColumn,
- this.phoneNumberColumn});
- this.foundMovies.Location = new System.Drawing.Point(16, 123);
- this.foundMovies.Name = "foundMovies";
- this.foundMovies.Size = new System.Drawing.Size(472, 150);
- this.foundMovies.TabIndex = 6;
- //
- // nameColumn
- //
- this.nameColumn.HeaderText = "Name";
- this.nameColumn.Name = "nameColumn";
- //
- // ageColumn
- //
- this.ageColumn.HeaderText = "Director";
- this.ageColumn.Name = "ageColumn";
- //
- // phoneNumberColumn
- //
- this.phoneNumberColumn.HeaderText = "For Minors";
- this.phoneNumberColumn.Name = "phoneNumberColumn";
- //
- // select
- //
- this.select.Location = new System.Drawing.Point(412, 290);
- this.select.Name = "select";
- this.select.Size = new System.Drawing.Size(75, 23);
- this.select.TabIndex = 7;
- this.select.Text = "&Select";
- this.select.UseVisualStyleBackColor = true;
- //
- // SearchMovies
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(499, 322);
- this.Controls.Add(this.select);
- this.Controls.Add(this.foundMovies);
- this.Controls.Add(this.search);
- this.Controls.Add(this.directorTextbox);
- this.Controls.Add(this.directorLabel);
- this.Controls.Add(this.nameTextbox);
- this.Controls.Add(this.nameLabel);
- this.Name = "SearchMovies";
- this.Text = "Search Movies";
- ((System.ComponentModel.ISupportInitialize)(this.foundMovies)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label nameLabel;
- private System.Windows.Forms.TextBox nameTextbox;
- private System.Windows.Forms.TextBox directorTextbox;
- private System.Windows.Forms.Label directorLabel;
- private System.Windows.Forms.Button search;
- private System.Windows.Forms.DataGridView foundMovies;
- private System.Windows.Forms.DataGridViewTextBoxColumn nameColumn;
- private System.Windows.Forms.DataGridViewTextBoxColumn ageColumn;
- private System.Windows.Forms.DataGridViewTextBoxColumn phoneNumberColumn;
- private System.Windows.Forms.Button select;
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/SearchMovies.cs b/Spikes/DocumentationApps/SampleApplication/SearchMovies.cs
deleted file mode 100644
index effbe0c4..00000000
--- a/Spikes/DocumentationApps/SampleApplication/SearchMovies.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Windows.Forms;
-using SampleApplication.Domain;
-
-namespace SampleApplication
-{
- public partial class SearchMovies : Form
- {
- public SearchMovies()
- {
- InitializeComponent();
- foundMovies.ReadOnly = true;
- foundMovies.AllowUserToAddRows = false;
-
- search.Click += Search_OnClick;
- select.Click += Select_OnClick;
- }
-
- private void Select_OnClick(object sender, EventArgs e)
- {
- Movie movie = (Movie) foundMovies.CurrentRow.Tag;
- ApplicationContext.SelectedMovie = movie;
- Close();
- }
-
- private void Search_OnClick(object sender, EventArgs e)
- {
- string nameCriteria = nameTextbox.Text;
- string directorCriteria = directorTextbox.Text;
- List movies = DataStore.Movies.FindAll(delegate(Movie obj)
- {
- return !string.IsNullOrEmpty(directorCriteria) && obj.Director.Contains(directorCriteria) ||
- (!string.IsNullOrEmpty(nameCriteria) && obj.Name.Contains(nameCriteria));
- });
- DisplayMovies(movies);
- }
-
-
- private void DisplayMovies(List movies)
- {
- foundMovies.Rows.Clear();
- movies.ForEach(delegate(Movie obj)
- {
- foundMovies.Rows.Add(obj.Name, obj.Director, obj.ForMinors ? "Yes" : "No");
- foundMovies.Rows[foundMovies.Rows.Count - 1].Tag = obj;
- });
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/DocumentationApps/SampleApplication/SearchMovies.resx b/Spikes/DocumentationApps/SampleApplication/SearchMovies.resx
deleted file mode 100644
index 9fd73949..00000000
--- a/Spikes/DocumentationApps/SampleApplication/SearchMovies.resx
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/AddInHelper.cs b/Spikes/RecorderAddIn/AddInHelper.cs
deleted file mode 100644
index facd6646..00000000
--- a/Spikes/RecorderAddIn/AddInHelper.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using System;
-using System.IO;
-using EnvDTE;
-using EnvDTE80;
-
-public class Helper
-{
- public static bool IsActiveDocumentAProject(DTE2 applicationObject)
- {
- foreach (Project project in GetProjectsInSolution(applicationObject))
- {
- if (IsSelectedUIHierarchyItemAProject(applicationObject, project))
- return true;
- }
- return false;
- }
-
- public static string GetFilePath(ProjectItem projectItem)
- {
- return Path.Combine(projectItem.Document.Path, projectItem.Document.FullName);
- }
-
- private static object[] GetProjectsInSolution(DTE2 applicationObject)
- {
- return applicationObject.ActiveSolutionProjects as object[];
- }
-
- public static Project GetSelectedProject(DTE2 applicationObject)
- {
- return
- (Project)
- Array.Find(GetProjectsInSolution(applicationObject),
- delegate(object project) { return IsSelectedUIHierarchyItemAProject(applicationObject, project); });
- }
-
- private static bool IsSelectedUIHierarchyItemAProject(DTE2 applicationObject, object project)
- {
- return IsSelectedUIHierarchyItemAProject(applicationObject, (Project) project);
- }
-
- private static bool IsSelectedUIHierarchyItemAProject(DTE2 applicationObject, Project project)
- {
- return project.Name == GetSelectedUIHierarchyItem(applicationObject).Name;
- }
-
- public static UIHierarchyItem GetSelectedUIHierarchyItem(DTE2 applicationObject)
- {
- UIHierarchy uiHierarchy = applicationObject.ToolWindows.SolutionExplorer;
- return (UIHierarchyItem) ((Array) uiHierarchy.SelectedItems).GetValue(0);
- }
-
- public static ProjectItem GetSelectedProjectItem(DTE2 applicationObject)
- {
- UIHierarchy uiHierarchy = applicationObject.ToolWindows.SolutionExplorer;
- UIHierarchyItem item = (UIHierarchyItem) ((Array) uiHierarchy.SelectedItems).GetValue(0);
- foreach (SelectedItem selectedItem in applicationObject.SelectedItems)
- {
- if (item.Name == selectedItem.Name)
- return selectedItem.ProjectItem;
- }
- return null;
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/ClassGenerator.cs b/Spikes/RecorderAddIn/ClassGenerator.cs
deleted file mode 100644
index 96797b1d..00000000
--- a/Spikes/RecorderAddIn/ClassGenerator.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-using System;
-using System.IO;
-using System.Windows.Forms;
-using Core.Logging;
-using EnvDTE;
-using EnvDTE80;
-using Recorder.Controllers;
-
-namespace RecorderAddIn
-{
- public class ClassGenerator
- {
- private const string CSHARP_FILE_EXTENSION = ".cs";
- private const string TEMPLATE_FILE_PATH = @"Common7\IDE\NewFileItems\csharpclass.cs";
- private const string VISUAL_STUDIO_BASE_FOLDER = @"Microsoft Visual Studio 8";
-
- private readonly DTE2 applicationObject;
-
- public ClassGenerator(DTE2 applicationObject)
- {
- this.applicationObject = applicationObject;
- }
-
- public void LaunchScreenObjectGenerator()
- {
- CodeGeneratorAddIn codeGeneratorAddIn = new CodeGeneratorAddIn(new DashboardController());
- codeGeneratorAddIn.CodeGenerated += codeGeneratorAddIn_CodeGenerated;
- codeGeneratorAddIn.Show();
- }
-
- private void codeGeneratorAddIn_CodeGenerated(string fileName, string content)
- {
- try
- {
- Project selectedProject = Helper.GetSelectedProject(applicationObject);
- ProjectItem projectItem = AddProjectItemFromTemplate(selectedProject, fileName);
- InsertGeneratedCode(projectItem, content);
- }
- catch (Exception e)
- {
- WhiteLogger.Instance.Error("Exception while writing new event.\n", e);
- MessageBox.Show(e.Message, "White");
- }
- }
-
- private void InsertGeneratedCode(ProjectItem projectItem, string generatedContent)
- {
- projectItem.Open(Constants.vsViewKindCode);
- projectItem.Document.ActiveWindow.Activate();
- TextDocument textDocument = (TextDocument) projectItem.Document.Object("TextDocument");
- EditPoint editPoint = textDocument.StartPoint.CreateEditPoint();
- editPoint.Delete(textDocument.EndPoint);
- editPoint.Insert(generatedContent);
- projectItem.Save(Helper.GetFilePath(projectItem));
- }
-
- private ProjectItem AddProjectItemFromTemplate(Project selectedProject, string fileName)
- {
- return selectedProject.ProjectItems.AddFromTemplate(GetTemplateFilePath(selectedProject), fileName + CSHARP_FILE_EXTENSION);
- }
-
- private string GetTemplateFilePath(Project project)
- {
- string projectItemTemplatePath = applicationObject.Solution.ProjectItemsTemplatePath(project.Kind);
- string visualStudioFolderPath =
- projectItemTemplatePath.Substring(0, projectItemTemplatePath.IndexOf(VISUAL_STUDIO_BASE_FOLDER) + VISUAL_STUDIO_BASE_FOLDER.Length);
- return Path.Combine(visualStudioFolderPath, TEMPLATE_FILE_PATH);
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/CodeGeneratorAddIn.Designer.cs b/Spikes/RecorderAddIn/CodeGeneratorAddIn.Designer.cs
deleted file mode 100644
index b1a3c316..00000000
--- a/Spikes/RecorderAddIn/CodeGeneratorAddIn.Designer.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-namespace RecorderAddIn
-{
- partial class CodeGeneratorAddIn
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.windowBrowser = new Recorder.View.WindowBrowser();
- this.generate = new Lunar.Client.View.CommonControls.BricksButton();
- this.screenObjectGeneratorOptionsView = new Recorder.View.ScreenObjectGeneratorOptionsView();
- this.SuspendLayout();
- //
- // windowBrowser
- //
- this.windowBrowser.Location = new System.Drawing.Point(1, 0);
- this.windowBrowser.Name = "windowBrowser";
- this.windowBrowser.Size = new System.Drawing.Size(263, 412);
- this.windowBrowser.TabIndex = 11;
- //
- // generate
- //
- this.generate.Location = new System.Drawing.Point(397, 148);
- this.generate.Name = "generate";
- this.generate.Size = new System.Drawing.Size(85, 23);
- this.generate.TabIndex = 12;
- this.generate.Text = "&Generate";
- this.generate.UseVisualStyleBackColor = true;
- //
- // screenObjectGeneratorOptionsView
- //
- this.screenObjectGeneratorOptionsView.Location = new System.Drawing.Point(270, 12);
- this.screenObjectGeneratorOptionsView.Name = "screenObjectGeneratorOptionsView";
- this.screenObjectGeneratorOptionsView.Size = new System.Drawing.Size(263, 104);
- this.screenObjectGeneratorOptionsView.TabIndex = 13;
- //
- // CodeGeneratorAddIn
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(527, 410);
- this.Controls.Add(this.screenObjectGeneratorOptionsView);
- this.Controls.Add(this.generate);
- this.Controls.Add(this.windowBrowser);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "CodeGeneratorAddIn";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "White";
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private Recorder.View.WindowBrowser windowBrowser;
- private Lunar.Client.View.CommonControls.BricksButton generate;
- private Recorder.View.ScreenObjectGeneratorOptionsView screenObjectGeneratorOptionsView;
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/CodeGeneratorAddIn.cs b/Spikes/RecorderAddIn/CodeGeneratorAddIn.cs
deleted file mode 100644
index e20a8ab8..00000000
--- a/Spikes/RecorderAddIn/CodeGeneratorAddIn.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-using System;
-using System.Text.RegularExpressions;
-using System.Windows.Forms;
-using Core;
-using Core.Logging;
-using Recorder.Controllers;
-using Recorder.Domain;
-
-namespace RecorderAddIn
-{
- public delegate void CodeGeneratorAddInDelegate(string fileName, string content);
-
- public partial class CodeGeneratorAddIn : Form
- {
- private readonly DashboardController controller;
-
- public CodeGeneratorAddIn(DashboardController controller)
- {
- InitializeComponent();
- this.controller = controller;
- BindData();
- }
-
- public event CodeGeneratorAddInDelegate CodeGenerated;
-
- private void BindData()
- {
- WhiteRecorder recorder = controller.Recorder;
- Applications supportedApplications = recorder.Applications;
- supportedApplications.Insert(0, new NullApplication());
- screenObjectGeneratorOptionsView.BindData(recorder.ScreenObjectGenerator.Options);
- windowBrowser.BindData(recorder.Applications);
- }
-
- protected override void OnLoad(EventArgs e)
- {
- base.OnLoad(e);
- HookEvents();
- }
-
- private void HookEvents()
- {
- generate.Click += GenerateClass;
- Closed += DashboardClosed;
- }
-
- private void DashboardClosed(object sender, EventArgs e)
- {
- try
- {
- controller.Recorder.Dispose();
- }
- catch (Exception exception)
- {
- WhiteLogger.Instance.Error("Exception while closing Dashboard: ", exception);
- }
- }
-
- private void GenerateClass(object sender, EventArgs e)
- {
- if (CodeGenerated != null)
- {
- string generatedCode = controller.Recorder.ScreenObjectGenerator.Generate(windowBrowser.CurrentWindow);
- CodeGenerated(GetClassNameFrom(generatedCode), generatedCode);
- }
- Close();
- }
-
- private string GetClassNameFrom(string generatedCode)
- {
- string patternToMatchClassName = @"(\w+)(\s+)class(\s+)(?(\w+))(\s+){";
- return Regex.Match(generatedCode, patternToMatchClassName, RegexOptions.Multiline).Groups["classname"].ToString();
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/CodeGeneratorAddIn.resx b/Spikes/RecorderAddIn/CodeGeneratorAddIn.resx
deleted file mode 100644
index ee151225..00000000
--- a/Spikes/RecorderAddIn/CodeGeneratorAddIn.resx
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- True
-
-
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/CommandBar.resx b/Spikes/RecorderAddIn/CommandBar.resx
deleted file mode 100644
index 93dee104..00000000
--- a/Spikes/RecorderAddIn/CommandBar.resx
+++ /dev/null
@@ -1,365 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Action
- Addins
- Build
- Class Diagram
- Community
- Data
- Database
- Database Diagram
- Debug
- Diagram
- Edit
- File
- Format
- Frames
- Help
- Image
- Layout
- Macros
- Project
- Query
- Query Designer
- Refactor
- Resources
- Schema
- Styles
- Team
- Table
- Table Designer
- Test
- Tools
- View
- Window
- XML
-
- 操作
- アドイン
- ビルド
- クラス ダイアグラム
- コミュニティ
- データ
- データベース
- データベース ダイアグラム
- デバッグ
- ダイアグラム
- 編集
- ファイル
- 書式
- フレーム
- ヘルプ
- イメージ
- レイアウト
- マクロ
- プロジェクト
- クエリ
- クエリ デザイナ
- リファクタ
- リソース
- スキーマ
- スタイル
- チーム
- テーブル
- テーブル デザイナ
- テスト
- ツール
- 表示
- ウィンドウ
- XML
-
- Aktion
- Add-Ins
- Erstellen
- Klassendiagramm
- Community
- Daten
- Datenbank
- Datenbankdiagramm
- Debuggen
- Diagramm
- Bearbeiten
- Datei
- Format
- Rahmen
- Hilfe
- Bild
- Layout
- Makros
- Projekt
- Query
- Abfrage-Designer
- Umgestalten
- Ressourcen
- Schema
- Formate
- Team
- Tabelle
- Tabellen-Designer
- Testen
- Extras
- Ansicht
- Fenster
- XML
-
- Acción
- Complementos
- Generar
- Diagrama de clase
- Comunidad
- Datos
- Base de datos
- Diagrama de base de datos
- Depurar
- Diagrama
- Editar
- Archivo
- Formato
- Marcos
- Ayuda
- Imagen
- Diseño
- Macros
- Proyecto
- Consulta
- Diseñador de consultas
- Refactorizar
- Recursos
- Esquema
- Estilos
- Equipo
- Tabla
- Diseñador de tablas
- Prueba
- Herramientas
- Ver
- Ventana
- XML
-
- Action
- Compléments
- Générer
- Diagramme de classes
- Communauté
- Données
- Base de données
- Schéma de base de données
- Déboguer
- Schéma
- Modifier
- Fichier
- Format
- Frames
- ?
- Image
- Disposition
- Macros
- Projet
- Requête
- Concepteur de requêtes
- Refactoriser
- Ressources
- Schéma
- Styles
- équipe
- Tableau
- Concepteur de tables
- Test
- Outils
- Affichage
- Fenêtre
- XML
-
- Azione
- Componenti aggiuntivi
- Genera
- Diagramma classi
- Comunità
- Dati
- Database
- Diagramma database
- Debug
- Diagramma
- Modifica
- File
- Formato
- Frame
- ?
- Immagine
- Layout
- Macro
- Progetto
- Query
- Progettazione query
- Effettua refactoring
- Risorse
- Schema
- Stili
- Team
- Tabella
- Progettazione tabelle
- Prova
- Strumenti
- Visualizza
- Finestra
- XML
-
- 작업
- 추가 기능
- 빌드
- 클래스 다이어그램
- 커뮤니티
- 데이터
- 데이터베이스
- 데이터베이스 다이어그램
- 디버그
- 다이어그램
- 편집
- 파일
- 서식
- 프레임
- 도움말
- 이미지
- 레이아웃
- 매크로
- 프로젝트
- 쿼리
- 쿼리 디자이너
- 리팩터링
- 리소스
- 스키마
- 스타일
- 팀
- 테이블
- 테이블 디자이너
- 테스트
- 도구
- 뷰
- 창
- XML
-
- 操作
- 外接程序
- 生成
- 类关系图
- 社区
- 数据
- 数据库
- 数据库关系图
- 调试
- 关系图
- 编辑
- 文件
- 格式
- 框架
- 帮助
- 图像
- 布局
- 宏
- 项目
- 查询
- 查询设计器
- 重构
- 资源
- 架构
- 样式
- 工作组
- 表
- 表设计器
- 测试
- 工具
- 视图
- 窗口
- XML
-
- 動作
- 增益集
- 建置
- 類別圖表
- 社群
- 資料
- 資料庫
- 資料庫圖表
- 偵錯
- 圖表
- 編輯
- 檔案
- 格式
- 框架
- 說明
- 影像
- 配置
- 巨集
- 專案
- 查詢
- 查詢設計工具
- 重整
- 資源
- 結構描述
- 樣式
- 小組
- 資料表
- 資料表設計工具
- 測試
- 工具
- 檢視
- 視窗
- XML
-
-
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/Connect.cs b/Spikes/RecorderAddIn/Connect.cs
deleted file mode 100644
index 8ff1024c..00000000
Binary files a/Spikes/RecorderAddIn/Connect.cs and /dev/null differ
diff --git a/Spikes/RecorderAddIn/CopyAddIn.bat b/Spikes/RecorderAddIn/CopyAddIn.bat
deleted file mode 100644
index e5f820ed..00000000
--- a/Spikes/RecorderAddIn/CopyAddIn.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-xcopy *.dll "%USERPROFILE%\My Documents\Visual Studio 2005\Addins\RecorderAddIn\" /y /q
-xcopy Recorder.exe "%USERPROFILE%\My Documents\Visual Studio 2005\Addins\RecorderAddIn\" /y /q
-xcopy RecorderAddIn.AddIn "%USERPROFILE%\My Documents\Visual Studio 2005\Addins\" /y /q
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/MethodGenerator.cs b/Spikes/RecorderAddIn/MethodGenerator.cs
deleted file mode 100644
index a0d23750..00000000
--- a/Spikes/RecorderAddIn/MethodGenerator.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System;
-using System.Windows.Forms;
-using Core.Logging;
-using EnvDTE;
-using EnvDTE80;
-using Recorder.Controllers;
-
-namespace RecorderAddIn
-{
- public class MethodGenerator
- {
- private readonly DTE2 applicationObject;
-
- public MethodGenerator(DTE2 applicationObject)
- {
- this.applicationObject = applicationObject;
- }
-
- public void LaunchRecorder(string methodNameToRecord)
- {
- MethodGeneratorAddIn methodGeneratorAddIn = new MethodGeneratorAddIn(new DashboardController(), methodNameToRecord);
- methodGeneratorAddIn.MethodGenerated += methodGeneratorAddIn_MethodGenerated;
- methodGeneratorAddIn.Show();
- }
-
- private void methodGeneratorAddIn_MethodGenerated(string methodContent)
- {
- try
- {
- ProjectItem projectItem = Helper.GetSelectedProjectItem(applicationObject);
- InsertGeneratedMethod(projectItem, methodContent);
- }
- catch (Exception e)
- {
- WhiteLogger.Instance.Error("Exception while writing new event.\n", e);
- MessageBox.Show(e.Message, "White");
- }
- }
-
- private void InsertGeneratedMethod(ProjectItem projectItem, string content)
- {
- projectItem.Open(Constants.vsViewKindCode);
- projectItem.Document.ActiveWindow.Activate();
- TextDocument textDocument = (TextDocument) projectItem.Document.Object("TextDocument");
- EditPoint editPoint = textDocument.EndPoint.CreateEditPoint();
- editPoint.EndOfDocument();
- editPoint.StartOfLine();
- editPoint.LineUp(1);
- editPoint.Insert(content + "\n");
- projectItem.Save(Helper.GetFilePath(projectItem));
- }
-
- public void GetMethodNameAndLaunchRecorder()
- {
- MethodNameGeneratorAddIn methodNameGeneratorAddIn = new MethodNameGeneratorAddIn(this);
- methodNameGeneratorAddIn.Show();
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/MethodGeneratorAddIn.Designer.cs b/Spikes/RecorderAddIn/MethodGeneratorAddIn.Designer.cs
deleted file mode 100644
index 40840b00..00000000
--- a/Spikes/RecorderAddIn/MethodGeneratorAddIn.Designer.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-namespace RecorderAddIn
-{
- partial class MethodGeneratorAddIn
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
- private const string START_RECORDING = "Start &Recording";
- private const string STOP_RECORDING = "Stop &Recording";
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.windowBrowser = new Recorder.View.WindowBrowser();
- this.recordOptionsView = new Recorder.View.RecordOptionsView();
- this.record = new System.Windows.Forms.Button();
- this.codePreviewEditor = new System.Windows.Forms.RichTextBox();
- this.SuspendLayout();
- //
- // windowBrowser
- //
- this.windowBrowser.Location = new System.Drawing.Point(1, 0);
- this.windowBrowser.Name = "windowBrowser";
- this.windowBrowser.Size = new System.Drawing.Size(263, 412);
- this.windowBrowser.TabIndex = 11;
- //
- // recordOptionsView
- //
- this.recordOptionsView.Location = new System.Drawing.Point(270, 314);
- this.recordOptionsView.Name = "recordOptionsView";
- this.recordOptionsView.Size = new System.Drawing.Size(222, 98);
- this.recordOptionsView.TabIndex = 13;
- //
- // record
- //
- this.record.Location = new System.Drawing.Point(498, 379);
- this.record.Name = "record";
- this.record.Size = new System.Drawing.Size(104, 26);
- this.record.TabIndex = 14;
- this.record.Text = START_RECORDING;
- this.record.UseVisualStyleBackColor = true;
- //
- // richTextBox1
- //
- this.codePreviewEditor.Location = new System.Drawing.Point(270, 30);
- this.codePreviewEditor.Name = "codePreviewEditor";
- this.codePreviewEditor.Size = new System.Drawing.Size(332, 278);
- this.codePreviewEditor.TabIndex = 15;
- this.codePreviewEditor.Text = "";
- this.codePreviewEditor.ReadOnly = true;
- //
- // MethodGeneratorAddIn
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(613, 412);
- this.Controls.Add(this.codePreviewEditor);
- this.Controls.Add(this.record);
- this.Controls.Add(this.recordOptionsView);
- this.Controls.Add(this.windowBrowser);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "MethodGeneratorAddIn";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "White";
- this.ResumeLayout(false);
- }
-
- #endregion
-
- private Recorder.View.WindowBrowser windowBrowser;
- private Recorder.View.RecordOptionsView recordOptionsView;
- private System.Windows.Forms.Button record;
- private System.Windows.Forms.RichTextBox codePreviewEditor;
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/MethodGeneratorAddIn.cs b/Spikes/RecorderAddIn/MethodGeneratorAddIn.cs
deleted file mode 100644
index 29d77d9c..00000000
--- a/Spikes/RecorderAddIn/MethodGeneratorAddIn.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-using System;
-using System.Windows.Forms;
-using Bricks.Core;
-using Core;
-using Core.Logging;
-using Lunar.Client.View.CommonControls;
-using Recorder.Controllers;
-using Recorder.Domain;
-using Recorder.Recording;
-
-namespace RecorderAddIn
-{
- public partial class MethodGeneratorAddIn : Form, UserEventListener
- {
- #region Delegates
-
- public delegate void MethodGeneratorAddInDelegate(string content);
-
- public delegate void ModifyControl(string code);
-
- #endregion
-
- private const string METHOD_FORMAT = @"public void {0}(){1}";
-
- private readonly DashboardController controller;
- private readonly string methodNameToRecord;
- private string methodBody = "";
-
- public MethodGeneratorAddIn(DashboardController controller, string methodNameToRecord)
- {
- InitializeComponent();
- this.controller = controller;
- this.methodNameToRecord = methodNameToRecord;
- BindData();
- }
-
- #region UserEventListener Members
-
- public void NewEvent(string userAction)
- {
- try
- {
- codePreviewEditor.Invoke(Delegate.CreateDelegate(typeof (ModifyControl), this, "AppendText"), userAction);
- }
- catch (Exception e)
- {
- WhiteLogger.Instance.Error("Exception while writing new event.\n", e);
- }
- }
-
- public void UpdateEvent(string userAction)
- {
- try
- {
- codePreviewEditor.Invoke(Delegate.CreateDelegate(typeof (ModifyControl), this, "UpdateText"), userAction);
- }
- catch (Exception e)
- {
- WhiteLogger.Instance.Error("Exception while updating event.\n", e);
- }
- }
-
- #endregion
-
- public event MethodGeneratorAddInDelegate MethodGenerated;
-
- private void BindData()
- {
- WhiteRecorder recorder = controller.Recorder;
- Applications supportedApplications = recorder.Applications;
- supportedApplications.Insert(0, new NullApplication());
- windowBrowser.BindData(recorder.Applications);
- recordOptionsView.BindData(recorder.RecordingOptions);
- }
-
- protected override void OnLoad(EventArgs e)
- {
- base.OnLoad(e);
- HookEvents();
- }
-
- private void HookEvents()
- {
- record.Click += StartMethodRecord;
- Closed += DashboardClosed;
- }
-
- private void DashboardClosed(object sender, EventArgs e)
- {
- try
- {
- controller.Recorder.Dispose();
- }
- catch (Exception exception)
- {
- WhiteLogger.Instance.Error("Exception while closing Dashboard: ", exception);
- }
- }
-
- private void StartMethodRecord(object sender, EventArgs e)
- {
- if (record.Text == START_RECORDING)
- StartRecording();
- else
- StopRecording();
- record.Text = GetNextStatusForRecording();
- }
-
- private void StopRecording()
- {
- //TODO: Create methods on the recorder for stopping recording
- if (MethodGenerated != null)
- MethodGenerated(codePreviewEditor.Text);
- Close();
- }
-
- private void StartRecording()
- {
- using (CursorManager.WaitCursor(record))
- controller.Recorder.StartRecording(windowBrowser.CurrentWindow, this);
- }
-
- private string GetNextStatusForRecording()
- {
- return START_RECORDING == record.Text ? STOP_RECORDING : START_RECORDING;
- }
-
- private void AppendText(string code)
- {
- methodBody += code + "\n";
- UpdateCodePreviewEditor(methodBody);
- }
-
- private void UpdateText(string code)
- {
- string existingText = methodBody;
- string s = S.LastLine(existingText);
- UpdateCodePreviewEditor(existingText.Replace(s, code));
- }
-
- private void UpdateCodePreviewEditor(string methodDefinition)
- {
- codePreviewEditor.Text = string.Format(METHOD_FORMAT, methodNameToRecord, WrapMethodDefinitionWithinBraces(methodDefinition));
- }
-
- private string WrapMethodDefinitionWithinBraces(string methodDefinition)
- {
- return "{\n" + methodDefinition + "}";
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/MethodGeneratorAddIn.resx b/Spikes/RecorderAddIn/MethodGeneratorAddIn.resx
deleted file mode 100644
index a57c32aa..00000000
--- a/Spikes/RecorderAddIn/MethodGeneratorAddIn.resx
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.Designer.cs b/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.Designer.cs
deleted file mode 100644
index d4d2a08a..00000000
--- a/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.Designer.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-namespace RecorderAddIn
-{
- partial class MethodNameGeneratorAddIn
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.txtMethodName = new System.Windows.Forms.TextBox();
- this.lblMethodName = new System.Windows.Forms.Label();
- this.btnOk = new System.Windows.Forms.Button();
- this.btnCancel = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // txtMethodName
- //
- this.txtMethodName.Location = new System.Drawing.Point(111, 5);
- this.txtMethodName.Name = "txtMethodName";
- this.txtMethodName.Size = new System.Drawing.Size(198, 20);
- this.txtMethodName.TabIndex = 0;
- //
- // lblMethodName
- //
- this.lblMethodName.AutoSize = true;
- this.lblMethodName.Location = new System.Drawing.Point(-1, 5);
- this.lblMethodName.Name = "lblMethodName";
- this.lblMethodName.Size = new System.Drawing.Size(105, 13);
- this.lblMethodName.TabIndex = 1;
- this.lblMethodName.Text = "Enter Method Name:";
- //
- // btnOk
- //
- this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK;
- this.btnOk.Location = new System.Drawing.Point(158, 38);
- this.btnOk.Name = "btnOk";
- this.btnOk.Size = new System.Drawing.Size(60, 23);
- this.btnOk.TabIndex = 2;
- this.btnOk.Text = "Ok";
- this.btnOk.UseVisualStyleBackColor = true;
- this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
- //
- // btnCancel
- //
- this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.btnCancel.Location = new System.Drawing.Point(232, 38);
- this.btnCancel.Name = "btnCancel";
- this.btnCancel.Size = new System.Drawing.Size(74, 23);
- this.btnCancel.TabIndex = 3;
- this.btnCancel.Text = "Cancel";
- this.btnCancel.UseVisualStyleBackColor = true;
- //
- // MethodNameGeneratorAddIn
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.CancelButton = this.btnCancel;
- this.ClientSize = new System.Drawing.Size(311, 67);
- this.ControlBox = false;
- this.Controls.Add(this.btnCancel);
- this.Controls.Add(this.btnOk);
- this.Controls.Add(this.lblMethodName);
- this.Controls.Add(this.txtMethodName);
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "MethodNameGeneratorAddIn";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "White";
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.TextBox txtMethodName;
- private System.Windows.Forms.Label lblMethodName;
- private System.Windows.Forms.Button btnOk;
- private System.Windows.Forms.Button btnCancel;
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.cs b/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.cs
deleted file mode 100644
index 59d79cf6..00000000
--- a/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Windows.Forms;
-
-namespace RecorderAddIn
-{
- public partial class MethodNameGeneratorAddIn : Form
- {
- private readonly MethodGenerator controller;
-
- public MethodNameGeneratorAddIn(MethodGenerator controller)
- {
- this.controller = controller;
- InitializeComponent();
- }
-
- private void btnOk_Click(object sender, EventArgs e)
- {
- Hide();
- controller.LaunchRecorder(txtMethodName.Text.Trim());
- Close();
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.resx b/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.resx
deleted file mode 100644
index a57c32aa..00000000
--- a/Spikes/RecorderAddIn/MethodNameGeneratorAddIn.resx
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/Spikes/RecorderAddIn/RecorderAddIn.AddIn b/Spikes/RecorderAddIn/RecorderAddIn.AddIn
deleted file mode 100644
index 51f80c3b..00000000
Binary files a/Spikes/RecorderAddIn/RecorderAddIn.AddIn and /dev/null differ
diff --git a/Spikes/RecorderAddIn/RecorderAddIn.csproj b/Spikes/RecorderAddIn/RecorderAddIn.csproj
deleted file mode 100644
index ec74ee2b..00000000
--- a/Spikes/RecorderAddIn/RecorderAddIn.csproj
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
- Debug
- AnyCPU
- 8.0.50727
- 2.0
- {F76C2DD0-32AC-418D-9A73-98AE7A48F09E}
- Library
-
-
- false
- RecorderAddIn
- RecorderAddIn
-
-
- 2.0
-
-
-
-
- true
- false
- bin\
- false
- DEBUG;TRACE
- 4
- false
- 1591
-
-
- false
- true
- bin\
- false
- TRACE
- 4
- false
-
-
-
- False
- ..\lib\Bricks.dll
-
-
- False
- ..\WhiteLib\Core.dll
-
-
-
-
-
- False
- ..\lib\log4net.dll
-
-
-
-
-
-
-
-
-
- AssemblyInfo.cs
-
-
-
- Form
-
-
- CodeGeneratorAddIn.cs
-
-
- Code
-
-
-
- Form
-
-
- MethodGeneratorAddIn.cs
-
-
-
- Form
-
-
- MethodNameGeneratorAddIn.cs
-
-
-
-
- CodeGeneratorAddIn.cs
- Designer
-
-
- Designer
-
-
- MethodGeneratorAddIn.cs
- Designer
-
-
- MethodNameGeneratorAddIn.cs
- Designer
-
-
-
-
- {1CBA492E-7263-47BB-87FE-639000619B15}
- 8
- 0
- 0
- primary
- False
-
-
- {00020430-0000-0000-C000-000000000046}
- 2
- 0
- 0
- primary
- False
-
-
-
-
- PreserveNewest
-
-
-
-
- {67FDDCB4-FABC-4273-B8DD-25EA930D0ADF}
- Recorder
-
-
-
-
- PreserveNewest
-
-
-
-
-
-
- CopyAddIn.bat
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Spikes/SampleThirdPartyCustomControl/App.config b/Spikes/SampleThirdPartyCustomControl/App.config
deleted file mode 100644
index c4e354c2..00000000
--- a/Spikes/SampleThirdPartyCustomControl/App.config
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Spikes/SampleThirdPartyCustomControl/Properties/AssemblyInfo.cs b/Spikes/SampleThirdPartyCustomControl/Properties/AssemblyInfo.cs
deleted file mode 100644
index 02fcc913..00000000
--- a/Spikes/SampleThirdPartyCustomControl/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("SampleThirdPartyCustomControl")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("SampleThirdPartyCustomControl")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("12598273-4a3a-466f-820a-11c9aef737b5")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Spikes/SampleThirdPartyCustomControl/SampleThirdPartyCustomControl.csproj b/Spikes/SampleThirdPartyCustomControl/SampleThirdPartyCustomControl.csproj
deleted file mode 100644
index 5dc57831..00000000
--- a/Spikes/SampleThirdPartyCustomControl/SampleThirdPartyCustomControl.csproj
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {28BDD9E2-5A6F-4F30-BC79-5C57D0397DF6}
- Library
- Properties
- SampleThirdPartyCustomControl
- SampleThirdPartyCustomControl
- v3.5
- 512
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- False
- ..\lib\nunit.framework.dll
-
-
-
- 3.5
-
-
- 3.5
-
-
- 3.5
-
-
-
-
- 3.0
-
-
- 3.0
-
-
-
-
-
-
-
- {12C59CE2-9CF7-44F4-B27C-90754609F979}
- Core
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Spikes/TestSampleApplication/Entities/Customer.cs b/Spikes/TestSampleApplication/Entities/Customer.cs
deleted file mode 100644
index 012ab350..00000000
--- a/Spikes/TestSampleApplication/Entities/Customer.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using Repository.EntityMapping;
-
-namespace TestSampleApplication.Entities
-{
- public class Customer : Entity
- {
- private readonly string name;
- private readonly string age;
- private readonly string phoneNumber;
-
- public Customer(string name, string age, string phoneNumber)
- {
- this.name = name;
- this.age = age;
- this.phoneNumber = phoneNumber;
- }
-
- public string Name
- {
- get { return name; }
- }
- public string Age
- {
- get { return age; }
- }
- public string PhoneNumber
- {
- get { return phoneNumber; }
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/TestSampleApplication/Entities/CustomerSearchCriteria.cs b/Spikes/TestSampleApplication/Entities/CustomerSearchCriteria.cs
deleted file mode 100644
index 8362ff50..00000000
--- a/Spikes/TestSampleApplication/Entities/CustomerSearchCriteria.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-namespace TestSampleApplication.Entities
-{
- public class CustomerSearchCriteria
- {
- private string name = "";
- private string age = "";
-
- public CustomerSearchCriteria() {}
-
- public CustomerSearchCriteria(string name, string age)
- {
- this.name = name;
- this.age = age;
- }
-
-#region
-
- public string Name
- {
- get { return name; }
- }
- public string Age
- {
- get { return age; }
- }
-
-#endregion
-
-#region
- public CustomerSearchCriteria OfName(string name)
- {
- this.name = name;
- return this;
- }
-
- public CustomerSearchCriteria OfAge(string age)
- {
- this.age = age;
- return this;
- }
-#endregion
- }
-}
\ No newline at end of file
diff --git a/Spikes/TestSampleApplication/Entities/MovieSearchCriteria.cs b/Spikes/TestSampleApplication/Entities/MovieSearchCriteria.cs
deleted file mode 100644
index 61fdb2e8..00000000
--- a/Spikes/TestSampleApplication/Entities/MovieSearchCriteria.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-namespace TestSampleApplication.Entities
-{
- public class MovieSearchCriteria
- {
- private string name;
- private string director;
-
- public MovieSearchCriteria(string name, string director)
- {
- this.name = name;
- this.director = director;
- }
-
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
- public string Director
- {
- get { return director; }
- set { director = value; }
- }
- }
-}
\ No newline at end of file
diff --git a/Spikes/TestSampleApplication/ExistingMovies.cs b/Spikes/TestSampleApplication/ExistingMovies.cs
deleted file mode 100644
index 31fb5823..00000000
--- a/Spikes/TestSampleApplication/ExistingMovies.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using TestSampleApplication.Entities;
-
-namespace TestSampleApplication
-{
- public class ExistingMovies
- {
- public static MovieSearchCriteria TaareZameenPar = new MovieSearchCriteria("Taare Zameen Par", "Aamir Khan");
- public static MovieSearchCriteria Sholay = new MovieSearchCriteria("Sholay", "Ramesh Sippy");
- }
-}
\ No newline at end of file
diff --git a/Spikes/TestSampleApplication/Screens/CreateCustomerStep1Screen.cs b/Spikes/TestSampleApplication/Screens/CreateCustomerStep1Screen.cs
deleted file mode 100644
index 8b50f2d1..00000000
--- a/Spikes/TestSampleApplication/Screens/CreateCustomerStep1Screen.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using Core;
-using Core.Factory;
-using Core.UIItems;
-using Core.UIItems.WindowItems;
-using TestSampleApplication.Entities;
-
-namespace TestSampleApplication.Screens
-{
- public class CreateCustomerStep1Screen
- {
- private readonly Window window;
- private readonly Application application;
-
- public CreateCustomerStep1Screen(Window window, Application application)
- {
- this.window = window;
- this.application = application;
- }
-
- public CreateCustomerStep2Screen FillAndNext(Customer customer)
- {
- window.Get("nameTextBox").BulkText = customer.Name;
- window.Get("ageTextBox").BulkText = customer.Age;
- window.Get