From f86f8cd1ff45d93df08e73f1eec589b42dc4e00d Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Sat, 15 Sep 2012 15:35:01 +1000 Subject: [PATCH] Deleted Spikes --- .../UITests/White.Repository.UITests.csproj | 8 + Spikes/Archive/HotKey.cs | 1178 ----------------- .../SampleApplication/ApplicationContext.cs | 15 - .../CreateCustomerStep1.Designer.cs | 129 -- .../SampleApplication/CreateCustomerStep1.cs | 40 - .../CreateCustomerStep1.resx | 61 - .../CreateCustomerStep2.Designer.cs | 82 -- .../SampleApplication/CreateCustomerStep2.cs | 29 - .../CreateCustomerStep2.resx | 61 - .../SampleApplication/Dashboard.Designer.cs | 87 -- .../SampleApplication/Dashboard.cs | 32 - .../SampleApplication/Dashboard.resx | 61 - .../SampleApplication/Domain/Customer.cs | 60 - .../SampleApplication/Domain/Customers.cs | 6 - .../SampleApplication/Domain/DataStore.cs | 32 - .../SampleApplication/Domain/Movie.cs | 34 - .../SampleApplication/Program.cs | 21 - .../Properties/Resources.Designer.cs | 63 - .../Properties/Resources.resx | 58 - .../Properties/Settings.Designer.cs | 26 - .../Properties/Settings.settings | 7 - .../SampleApplication.csproj | 133 -- .../SearchCustomer.Designer.cs | 203 --- .../SampleApplication/SearchCustomer.cs | 58 - .../SampleApplication/SearchCustomer.resx | 70 - .../SearchMovies.Designer.cs | 154 --- .../SampleApplication/SearchMovies.cs | 50 - .../SampleApplication/SearchMovies.resx | 138 -- Spikes/RecorderAddIn/AddInHelper.cs | 63 - Spikes/RecorderAddIn/ClassGenerator.cs | 70 - .../CodeGeneratorAddIn.Designer.cs | 84 -- Spikes/RecorderAddIn/CodeGeneratorAddIn.cs | 75 -- Spikes/RecorderAddIn/CodeGeneratorAddIn.resx | 64 - Spikes/RecorderAddIn/CommandBar.resx | 365 ----- Spikes/RecorderAddIn/Connect.cs | Bin 21416 -> 0 bytes Spikes/RecorderAddIn/CopyAddIn.bat | 3 - Spikes/RecorderAddIn/MethodGenerator.cs | 59 - .../MethodGeneratorAddIn.Designer.cs | 97 -- Spikes/RecorderAddIn/MethodGeneratorAddIn.cs | 151 --- .../RecorderAddIn/MethodGeneratorAddIn.resx | 61 - .../MethodNameGeneratorAddIn.Designer.cs | 103 -- .../RecorderAddIn/MethodNameGeneratorAddIn.cs | 23 - .../MethodNameGeneratorAddIn.resx | 61 - Spikes/RecorderAddIn/RecorderAddIn.AddIn | Bin 42480 -> 0 bytes Spikes/RecorderAddIn/RecorderAddIn.csproj | 151 --- .../SampleThirdPartyCustomControl/App.config | 30 - .../Properties/AssemblyInfo.cs | 36 - .../SampleThirdPartyCustomControl.csproj | 77 -- .../Entities/Customer.cs | 31 - .../Entities/CustomerSearchCriteria.cs | 43 - .../Entities/MovieSearchCriteria.cs | 25 - .../TestSampleApplication/ExistingMovies.cs | 10 - .../Screens/CreateCustomerStep1Screen.cs | 38 - .../Screens/CreateCustomerStep2Screen.cs | 31 - .../Screens/DashboardScreen.cs | 35 - .../Screens/SearchCustomerScreen.cs | 64 - .../Screens/SearchMovieScreen.cs | 32 - .../Services/CustomerService.cs | 21 - .../Services/MovieService.cs | 24 - .../TestSampleApplication.csproj | 108 -- .../Tests/CreateCustomerTest.cs | 46 - ...ateCustomerTestUsingScreenObjectPattern.cs | 31 - .../Tests/CreateCustomerTest_Refactored.cs | 44 - ...CustomerTest_RefactoredWithoutBaseClass.cs | 61 - .../Tests/IssueMovieTest.cs | 68 - .../IssueMovieTestReusingSetupAndTeardown.cs | 14 - .../Tests/SearchCustomerTest.cs | 37 - .../Tests/SearchCustomerTestUsingEntities.cs | 31 - ...rchCustomerTestUsingScreenObjectPattern.cs | 27 - .../Tests/SearchMoviesTest.cs | 46 - .../Services/IssueMovieTest_UsingServices.cs | 39 - .../IssueMovieTest_UsingWhiteScreens.cs | 54 - .../Tests/VideoLibraryTest.cs | 31 - .../CreateCustomerTest_UsingWhiteScreen.cs | 51 - .../Util/VideoLibraryFieldMap.cs | 18 - .../Util/VideoLibraryFieldMapTest.cs | 16 - .../CreateCustomerStep1Screen.Designer.cs | 18 - .../WhiteScreens/CreateCustomerStep1Screen.cs | 24 - .../CreateCustomerStep2Screen.Designer.cs | 14 - .../WhiteScreens/CreateCustomerStep2Screen.cs | 20 - .../WhiteScreens/Dashboard.cs | 19 - .../WhiteScreens/DashboardScreen.Designer.cs | 21 - .../SearchCustomerScreen.Designer.cs | 29 - .../WhiteScreens/SearchCustomerScreen.cs | 21 - .../SearchMoviesScreen.Designer.cs | 24 - .../WhiteScreens/SearchMoviesScreen.cs | 19 - .../DevXGrid-LogStructure.txt | 1133 ---------------- lib/WPFVisifire.Charts.dll | Bin 599552 -> 0 bytes .../nant/WhiteCustomTasks/White.NantBuild.dll | Bin 0 -> 4608 bytes white-all.sln | 6 - 90 files changed, 8 insertions(+), 6885 deletions(-) delete mode 100644 Spikes/Archive/HotKey.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/ApplicationContext.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.Designer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/CreateCustomerStep1.resx delete mode 100644 Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.Designer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/CreateCustomerStep2.resx delete mode 100644 Spikes/DocumentationApps/SampleApplication/Dashboard.Designer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Dashboard.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Dashboard.resx delete mode 100644 Spikes/DocumentationApps/SampleApplication/Domain/Customer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Domain/Customers.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Domain/DataStore.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Domain/Movie.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Program.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Properties/Resources.Designer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Properties/Resources.resx delete mode 100644 Spikes/DocumentationApps/SampleApplication/Properties/Settings.Designer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/Properties/Settings.settings delete mode 100644 Spikes/DocumentationApps/SampleApplication/SampleApplication.csproj delete mode 100644 Spikes/DocumentationApps/SampleApplication/SearchCustomer.Designer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/SearchCustomer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/SearchCustomer.resx delete mode 100644 Spikes/DocumentationApps/SampleApplication/SearchMovies.Designer.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/SearchMovies.cs delete mode 100644 Spikes/DocumentationApps/SampleApplication/SearchMovies.resx delete mode 100644 Spikes/RecorderAddIn/AddInHelper.cs delete mode 100644 Spikes/RecorderAddIn/ClassGenerator.cs delete mode 100644 Spikes/RecorderAddIn/CodeGeneratorAddIn.Designer.cs delete mode 100644 Spikes/RecorderAddIn/CodeGeneratorAddIn.cs delete mode 100644 Spikes/RecorderAddIn/CodeGeneratorAddIn.resx delete mode 100644 Spikes/RecorderAddIn/CommandBar.resx delete mode 100644 Spikes/RecorderAddIn/Connect.cs delete mode 100644 Spikes/RecorderAddIn/CopyAddIn.bat delete mode 100644 Spikes/RecorderAddIn/MethodGenerator.cs delete mode 100644 Spikes/RecorderAddIn/MethodGeneratorAddIn.Designer.cs delete mode 100644 Spikes/RecorderAddIn/MethodGeneratorAddIn.cs delete mode 100644 Spikes/RecorderAddIn/MethodGeneratorAddIn.resx delete mode 100644 Spikes/RecorderAddIn/MethodNameGeneratorAddIn.Designer.cs delete mode 100644 Spikes/RecorderAddIn/MethodNameGeneratorAddIn.cs delete mode 100644 Spikes/RecorderAddIn/MethodNameGeneratorAddIn.resx delete mode 100644 Spikes/RecorderAddIn/RecorderAddIn.AddIn delete mode 100644 Spikes/RecorderAddIn/RecorderAddIn.csproj delete mode 100644 Spikes/SampleThirdPartyCustomControl/App.config delete mode 100644 Spikes/SampleThirdPartyCustomControl/Properties/AssemblyInfo.cs delete mode 100644 Spikes/SampleThirdPartyCustomControl/SampleThirdPartyCustomControl.csproj delete mode 100644 Spikes/TestSampleApplication/Entities/Customer.cs delete mode 100644 Spikes/TestSampleApplication/Entities/CustomerSearchCriteria.cs delete mode 100644 Spikes/TestSampleApplication/Entities/MovieSearchCriteria.cs delete mode 100644 Spikes/TestSampleApplication/ExistingMovies.cs delete mode 100644 Spikes/TestSampleApplication/Screens/CreateCustomerStep1Screen.cs delete mode 100644 Spikes/TestSampleApplication/Screens/CreateCustomerStep2Screen.cs delete mode 100644 Spikes/TestSampleApplication/Screens/DashboardScreen.cs delete mode 100644 Spikes/TestSampleApplication/Screens/SearchCustomerScreen.cs delete mode 100644 Spikes/TestSampleApplication/Screens/SearchMovieScreen.cs delete mode 100644 Spikes/TestSampleApplication/Services/CustomerService.cs delete mode 100644 Spikes/TestSampleApplication/Services/MovieService.cs delete mode 100644 Spikes/TestSampleApplication/TestSampleApplication.csproj delete mode 100644 Spikes/TestSampleApplication/Tests/CreateCustomerTest.cs delete mode 100644 Spikes/TestSampleApplication/Tests/CreateCustomerTestUsingScreenObjectPattern.cs delete mode 100644 Spikes/TestSampleApplication/Tests/CreateCustomerTest_Refactored.cs delete mode 100644 Spikes/TestSampleApplication/Tests/CreateCustomerTest_RefactoredWithoutBaseClass.cs delete mode 100644 Spikes/TestSampleApplication/Tests/IssueMovieTest.cs delete mode 100644 Spikes/TestSampleApplication/Tests/IssueMovieTestReusingSetupAndTeardown.cs delete mode 100644 Spikes/TestSampleApplication/Tests/SearchCustomerTest.cs delete mode 100644 Spikes/TestSampleApplication/Tests/SearchCustomerTestUsingEntities.cs delete mode 100644 Spikes/TestSampleApplication/Tests/SearchCustomerTestUsingScreenObjectPattern.cs delete mode 100644 Spikes/TestSampleApplication/Tests/SearchMoviesTest.cs delete mode 100644 Spikes/TestSampleApplication/Tests/Services/IssueMovieTest_UsingServices.cs delete mode 100644 Spikes/TestSampleApplication/Tests/Services/IssueMovieTest_UsingWhiteScreens.cs delete mode 100644 Spikes/TestSampleApplication/Tests/VideoLibraryTest.cs delete mode 100644 Spikes/TestSampleApplication/Tests/WhiteScreens/CreateCustomerTest_UsingWhiteScreen.cs delete mode 100644 Spikes/TestSampleApplication/Util/VideoLibraryFieldMap.cs delete mode 100644 Spikes/TestSampleApplication/Util/VideoLibraryFieldMapTest.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/CreateCustomerStep1Screen.Designer.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/CreateCustomerStep1Screen.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/CreateCustomerStep2Screen.Designer.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/CreateCustomerStep2Screen.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/Dashboard.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/DashboardScreen.Designer.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/SearchCustomerScreen.Designer.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/SearchCustomerScreen.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/SearchMoviesScreen.Designer.cs delete mode 100644 Spikes/TestSampleApplication/WhiteScreens/SearchMoviesScreen.cs delete mode 100644 Spikes/ThirdPartyControlsSpike/DevXGrid-LogStructure.txt delete mode 100644 lib/WPFVisifire.Charts.dll create mode 100644 tools/nant/WhiteCustomTasks/White.NantBuild.dll 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 8ff1024ca79571f48061fc53117a573ddc32d43c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21416 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 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 51f80c3b8f241919112258dd237f97277a4bf50f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 42480 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 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