diff --git a/CS/App.ico b/CS/App.ico new file mode 100644 index 0000000..56fccbd Binary files /dev/null and b/CS/App.ico differ diff --git a/CS/App.xaml b/CS/App.xaml new file mode 100644 index 0000000..d405fa4 --- /dev/null +++ b/CS/App.xaml @@ -0,0 +1,7 @@ + + + diff --git a/CS/App.xaml.cs b/CS/App.xaml.cs new file mode 100644 index 0000000..bd7ebd8 --- /dev/null +++ b/CS/App.xaml.cs @@ -0,0 +1,26 @@ +#region Copyright Syncfusion Inc. 2001 - 2015 +// Copyright Syncfusion Inc. 2001 - 2015. All rights reserved. +// Use of this code is subject to the terms of our license. +// A copy of the current license can be obtained at any time by e-mailing +// licensing@syncfusion.com. Any infringement will be prosecuted under +// applicable laws. +#endregion +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Windows; + +namespace OnDemandLoading +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + public App() + { + } + } +} diff --git a/CS/Behavior/RequestTreeItemsBehavior.cs b/CS/Behavior/RequestTreeItemsBehavior.cs new file mode 100644 index 0000000..0d3498f --- /dev/null +++ b/CS/Behavior/RequestTreeItemsBehavior.cs @@ -0,0 +1,47 @@ +using Microsoft.Xaml.Behaviors; +using Syncfusion.UI.Xaml.Grid; +using Syncfusion.UI.Xaml.TreeGrid; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace OnDemandLoading +{ + class RequestTreeItemsBehavior : Behavior + { + ViewModel viewModel; + protected override void OnAttached() + { + base.OnAttached(); + viewModel = this.AssociatedObject.DataContext as ViewModel; + this.AssociatedObject.RequestTreeItems += AssociatedObject_RequestTreeItems; + + } + + void AssociatedObject_RequestTreeItems(object sender, TreeGridRequestTreeItemsEventArgs args) + { + if (args.ParentItem == null) + { + //get the root list - get all employees who have no boss + args.ChildItems = viewModel.EmployeeDetails.Where(x => x.ReportsTo == -1); //get all employees whose boss's id is -1 (no boss) + } + else //if ParentItem not null, then set args.ChildList to the child items for the given ParentItem. + { //get the children of the parent object + EmployeeInfo emp = args.ParentItem as EmployeeInfo; + if (emp != null) + { + //get all employees that report to the parent employee + args.ChildItems = viewModel.GetReportees(emp.ID); + } + } + } + + protected override void OnDetaching() + { + base.OnDetaching(); + this.AssociatedObject.RequestTreeItems -= AssociatedObject_RequestTreeItems; + } + } +} diff --git a/CS/MainWindow.xaml b/CS/MainWindow.xaml new file mode 100644 index 0000000..3bc2a28 --- /dev/null +++ b/CS/MainWindow.xaml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CS/MainWindow.xaml.cs b/CS/MainWindow.xaml.cs new file mode 100644 index 0000000..d5db294 --- /dev/null +++ b/CS/MainWindow.xaml.cs @@ -0,0 +1,35 @@ +#region Copyright Syncfusion Inc. 2001 - 2016 +// Copyright Syncfusion Inc. 2001 - 2016. All rights reserved. +// Use of this code is subject to the terms of our license. +// A copy of the current license can be obtained at any time by e-mailing +// licensing@syncfusion.com. Any infringement will be prosecuted under +// applicable laws. +#endregion +using Syncfusion.Windows.Shared; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace OnDemandLoading +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : ChromelessWindow + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/CS/Model/EmployeeInfo.cs b/CS/Model/EmployeeInfo.cs new file mode 100644 index 0000000..da6cd74 --- /dev/null +++ b/CS/Model/EmployeeInfo.cs @@ -0,0 +1,159 @@ +#region Copyright Syncfusion Inc. 2001 - 2016 +// Copyright Syncfusion Inc. 2001 - 2016. All rights reserved. +// Use of this code is subject to the terms of our license. +// A copy of the current license can be obtained at any time by e-mailing +// licensing@syncfusion.com. Any infringement will be prosecuted under +// applicable laws. +#endregion +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Syncfusion.Windows.Shared; +using System.ComponentModel; +using System.ComponentModel.DataAnnotations; + +namespace OnDemandLoading +{ + public class EmployeeInfo : NotificationObject//, IComparable + { + int _id; + /// + /// Gets or sets the ID. + /// + /// The ID. + public int ID + { + get + { + return _id; + } + set + { + _id = value; + RaisePropertyChanged("ID"); + } + } + string _firstName; + + /// + /// Gets or sets the first name. + /// + /// The first name. + public string FirstName + { + get + { + return _firstName; + } + set + { + _firstName = value; + RaisePropertyChanged("FirstName"); + } + } + string _lastName; + + /// + /// Gets or sets the last name. + /// + /// The last name. + public string LastName + { + get + { + return _lastName; + } + set + { + _lastName = value; + RaisePropertyChanged("LastName"); + } + } + string _department; + + /// + /// Gets or sets the department. + /// + /// The department. + public string Department + { + get + { + return _department; + } + set + { + _department = value; + RaisePropertyChanged("Department"); + } + } + private string _title; + + /// + /// Gets or sets the title. + /// + /// The title. + public string Title + { + get + { + return _title; + } + set + { + _title = value; + RaisePropertyChanged("Title"); + } + } + + double? _salary; + /// + /// Gets or sets the salary. + /// + /// The salary. + public double? Salary + { + get + { + return _salary; + } + set + { + _salary = value; + RaisePropertyChanged("Salary"); + } + } + + int _reportsTo; + /// + /// Gets or sets the reports to. + /// + /// The reports to. + public int ReportsTo + { + get + { + return _reportsTo; + } + set + { + _reportsTo = value; + RaisePropertyChanged("ReportsTo"); + } + } + + #region IComparable Members + + //public int CompareTo(EmployeeInfo other) + //{ + // // return this.reportsTo - other.reportsTo; + // if (other == null) + // return -1; + + // return this.ReportsTo.CompareTo(other.ReportsTo); + //} + + #endregion + } +} \ No newline at end of file diff --git a/CS/OnDemandLoading_2017.csproj b/CS/OnDemandLoading_2017.csproj new file mode 100644 index 0000000..2d488de --- /dev/null +++ b/CS/OnDemandLoading_2017.csproj @@ -0,0 +1,147 @@ + + + + + Debug + AnyCPU + {F835E16D-21CF-43BF-8348-F76B99B41869} + WinExe + Properties + OnDemandLoading + WPF-50269_OnDemandLoading + v4.6 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + False + False + + + False + False + + + False + False + + + False + False + + + False + False + + + False + False + + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + + + + False + + + + + \ No newline at end of file diff --git a/CS/OnDemandLoading_2017.sln b/CS/OnDemandLoading_2017.sln new file mode 100644 index 0000000..0a00cd5 --- /dev/null +++ b/CS/OnDemandLoading_2017.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OnDemandLoading_2017", "OnDemandLoading_2017.csproj", "{F835E16D-21CF-43BF-8348-F76B99B41869}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F835E16D-21CF-43BF-8348-F76B99B41869}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F835E16D-21CF-43BF-8348-F76B99B41869}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F835E16D-21CF-43BF-8348-F76B99B41869}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F835E16D-21CF-43BF-8348-F76B99B41869}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/CS/Properties/AssemblyInfo.cs b/CS/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..fb5723e --- /dev/null +++ b/CS/Properties/AssemblyInfo.cs @@ -0,0 +1,62 @@ +#region Copyright Syncfusion Inc. 2001 - 2015 +// Copyright Syncfusion Inc. 2001 - 2015. All rights reserved. +// Use of this code is subject to the terms of our license. +// A copy of the current license can be obtained at any time by e-mailing +// licensing@syncfusion.com. Any infringement will be prosecuted under +// applicable laws. +#endregion +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 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("OnDemandLoading")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("OnDemandLoading")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[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)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// 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/CS/Properties/Resources.Designer.cs b/CS/Properties/Resources.Designer.cs new file mode 100644 index 0000000..7429fe7 --- /dev/null +++ b/CS/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace OnDemandLoading.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", "4.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("OnDemandLoading.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/CS/Properties/Resources.resx b/CS/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/CS/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/CS/Properties/Settings.Designer.cs b/CS/Properties/Settings.Designer.cs new file mode 100644 index 0000000..18f8729 --- /dev/null +++ b/CS/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace OnDemandLoading.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.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/CS/Properties/Settings.settings b/CS/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/CS/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/CS/ViewModel/ViewModel.cs b/CS/ViewModel/ViewModel.cs new file mode 100644 index 0000000..779173b --- /dev/null +++ b/CS/ViewModel/ViewModel.cs @@ -0,0 +1,185 @@ +#region Copyright Syncfusion Inc. 2001 - 2016 +// Copyright Syncfusion Inc. 2001 - 2016. All rights reserved. +// Use of this code is subject to the terms of our license. +// A copy of the current license can be obtained at any time by e-mailing +// licensing@syncfusion.com. Any infringement will be prosecuted under +// applicable laws. +#endregion +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.ComponentModel; +using Syncfusion.Windows.Controls.Grid; +using System.Text.RegularExpressions; +using System.Windows.Media; +using System.Windows; +using System.Windows.Media.Imaging; +using System.Collections.ObjectModel; +using Syncfusion.Windows.Shared; +using OnDemandLoading; +using System.Windows.Input; + +namespace OnDemandLoading +{ + public class ViewModel : NotificationObject + { + /// + /// Initializes a new instance of the class. + /// + + public ViewModel() + { + EmployeeDetails = new List(); + EmployeeDetails.Add(new EmployeeInfo() { FirstName = "Hwakin", ID = 65, LastName = "Grant", Title = "Business Manager", Salary = 200000, ReportsTo = -1 }); + EmployeeDetails.Add(new EmployeeInfo() { FirstName = "Madison", ID = 34, LastName = "Bush", Title = "Vice President", Salary = 200000, ReportsTo = -1 }); + EmployeeDetails.Add(new EmployeeInfo() { FirstName = "Richard", ID = 36, LastName = "Monroe", Title = "HR Coordinator", Salary = 200000, ReportsTo = -1 }); + EmployeeDetails.Add(new EmployeeInfo() { FirstName = "Jack", ID = 43, LastName = "Madison", Title = "Supervisor", Salary = 25000, ReportsTo = 55 }); + } + + /// + /// Gets or sets the employee details. + /// + /// The employee details. + public List EmployeeDetails + { + get; + set; + } + + /// + /// Gets the reportees. + /// + /// The boss ID. + /// + public IEnumerable GetReportees(int bossID) + { + List list = new List(); + + if (bossID == 65) + { + list.Add(new EmployeeInfo() { FirstName = "John", ID = 5, LastName = "Polk", Title = "Marketing Specialist", Salary = 100000, ReportsTo = 65 }); + list.Add(new EmployeeInfo() { FirstName = "Bill", ID = 26, LastName = "Wilson", Title = "Senior Tool Designer", Salary = 100000, ReportsTo = 65 }); + list.Add(new EmployeeInfo() { FirstName = "Jimmy", ID = 23, LastName = "Harry", Title = "Stocker", Salary = 50000, ReportsTo = 65 }); + list.Add(new EmployeeInfo() { FirstName = "Harry", ID = 68, LastName = "Coolidge", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 65 }); + } + + if (bossID == 34) + { + list.Add(new EmployeeInfo() { FirstName = "Franklin", ID = 24, LastName = "Madison", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 34 }); + list.Add(new EmployeeInfo() { FirstName = "William", ID = 66, LastName = "Nixon", Title = "Production Technician", Salary = 40000, ReportsTo = 34 }); + list.Add(new EmployeeInfo() { FirstName = "Grover", ID = 35, LastName = "Taft", Title = "Stocker", Salary = 50000, ReportsTo = 34 }); + list.Add(new EmployeeInfo() { FirstName = "Bill", ID = 18, LastName = "Nixon", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 34 }); + } + + if (bossID == 36) + { + list.Add(new EmployeeInfo() { FirstName = "Madison", ID = 64, LastName = "Franklin", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 36 }); + list.Add(new EmployeeInfo() { FirstName = "Wilson", ID = 67, LastName = "Harry", Title = "Production Technician", Salary = 40000, ReportsTo = 36 }); + list.Add(new EmployeeInfo() { FirstName = "Harry", ID = 59, LastName = "Taft", Title = "Stocker", Salary = 50000, ReportsTo = 36 }); + list.Add(new EmployeeInfo() { FirstName = "Jimmy", ID = 08, LastName = "Grover", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 36 }); + } + + if (bossID == 5) + { + list.Add(new EmployeeInfo() { FirstName = "Franklin", ID = 47, LastName = "William", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 5 }); + list.Add(new EmployeeInfo() { FirstName = "Taft", ID = 52, LastName = "Peter", Title = "Production Technician", Salary = 40000, ReportsTo = 5 }); + list.Add(new EmployeeInfo() { FirstName = "Harry", ID = 34, LastName = "Wilson", Title = "Stocker", Salary = 50000, ReportsTo = 5 }); + list.Add(new EmployeeInfo() { FirstName = "Grover", ID = 41, LastName = "John", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 5 }); + } + + if (bossID == 26) + { + list.Add(new EmployeeInfo() { FirstName = "Andrew", ID = 11, LastName = "Wilson", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 26 }); + list.Add(new EmployeeInfo() { FirstName = "George", ID = 24, LastName = "Madison", Title = "Production Technician", Salary = 40000, ReportsTo = 26 }); + list.Add(new EmployeeInfo() { FirstName = "Peter", ID = 33, LastName = "Taft", Title = "Stocker", Salary = 50000, ReportsTo = 26 }); + list.Add(new EmployeeInfo() { FirstName = "Jimmy", ID = 54, LastName = "Harry", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 26 }); + } + + if (bossID == 23) + { + list.Add(new EmployeeInfo() { FirstName = "Bush", ID = 98, LastName = "Bill", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 23 }); + list.Add(new EmployeeInfo() { FirstName = "Hayes", ID =32, LastName = "William", Title = "Production Technician", Salary = 40000, ReportsTo = 23 }); + list.Add(new EmployeeInfo() { FirstName = "Madison", ID = 12, LastName = "Franklin", Title = "Stocker", Salary = 50000, ReportsTo = 23 }); + list.Add(new EmployeeInfo() { FirstName = "Arthur", ID = 96, LastName = "Grover", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 23 }); + } + + if (bossID == 18) + { + list.Add(new EmployeeInfo() { FirstName = "Adams", ID = 71, LastName = "Reagan", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 18 }); + list.Add(new EmployeeInfo() { FirstName = "Nixon", ID = 92, LastName = "Tyler", Title = "Production Technician", Salary = 40000, ReportsTo = 18 }); + list.Add(new EmployeeInfo() { FirstName = "Coolidge", ID = 43, LastName = "Polk", Title = "Design Engineer", Salary = 50000, ReportsTo = 18 }); + list.Add(new EmployeeInfo() { FirstName = "George", ID = 84, LastName = "Harrison", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 18 }); + } + + + + + if (bossID == 68) + { + list.Add(new EmployeeInfo() { FirstName = "Madison", ID = 125, LastName = "Bill", Title = "Marketing Specialist", Salary = 100000, ReportsTo = 68 }); + list.Add(new EmployeeInfo() { FirstName = "Nixon", ID = 226, LastName = "Wilson", Title = "Senior Tool Designer", Salary = 100000, ReportsTo = 68 }); + list.Add(new EmployeeInfo() { FirstName = "Taft", ID = 253, LastName = "Franklin", Title = "Stocker", Salary = 50000, ReportsTo = 68 }); + list.Add(new EmployeeInfo() { FirstName = "Harry", ID = 618, LastName = "Coolidge", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 68 }); + } + + if (bossID == 24) + { + list.Add(new EmployeeInfo() { FirstName = "Franklin", ID = 244, LastName = "Madison", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 24 }); + list.Add(new EmployeeInfo() { FirstName = "William", ID = 166, LastName = "Nixon", Title = "Production Technician", Salary = 40000, ReportsTo = 24 }); + list.Add(new EmployeeInfo() { FirstName = "Grover", ID = 355, LastName = "Taft", Title = "Stocker", Salary = 50000, ReportsTo = 24 }); + list.Add(new EmployeeInfo() { FirstName = "Bill", ID = 148, LastName = "Harry", Title = "Production Superviser", Salary = 50000, ReportsTo = 24 }); + } + + if (bossID == 66) + { + list.Add(new EmployeeInfo() { FirstName = "Stogner", ID = 64, LastName = "Martin", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 66 }); + list.Add(new EmployeeInfo() { FirstName = "Wilson", ID = 67, LastName = "Harry", Title = "Production Technician", Salary = 40000, ReportsTo = 66 }); + list.Add(new EmployeeInfo() { FirstName = "Harrison", ID = 59, LastName = "Will", Title = "Stocker", Salary = 50000, ReportsTo = 66 }); + list.Add(new EmployeeInfo() { FirstName = "Jimmy", ID = 08, LastName = "Grover", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 66 }); + } + + if (bossID == 35) + { + list.Add(new EmployeeInfo() { FirstName = "Franklin", ID = 417, LastName = "William", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 35 }); + list.Add(new EmployeeInfo() { FirstName = "Taft", ID = 522, LastName = "Peter", Title = "Production Technician", Salary = 40000, ReportsTo = 35 }); + list.Add(new EmployeeInfo() { FirstName = "Harry", ID = 341, LastName = "Wilson", Title = "Stocker", Salary = 50000, ReportsTo = 35 }); + list.Add(new EmployeeInfo() { FirstName = "Grover", ID = 141, LastName = "John", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 35 }); + } + + if (bossID == 64) + { + list.Add(new EmployeeInfo() { FirstName = "Andrew", ID = 141, LastName = "Wilson", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 64 }); + list.Add(new EmployeeInfo() { FirstName = "Will", ID = 244, LastName = "Madison", Title = "Production Technician", Salary = 40000, ReportsTo = 64 }); + list.Add(new EmployeeInfo() { FirstName = "Harrison", ID = 343, LastName = "Taft", Title = "Stocker", Salary = 50000, ReportsTo = 64 }); + list.Add(new EmployeeInfo() { FirstName = "Jimmy", ID = 544, LastName = "Harry", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 64 }); + } + + if (bossID == 67) + { + list.Add(new EmployeeInfo() { FirstName = "Bush", ID = 98, LastName = "Bill", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 67 }); + list.Add(new EmployeeInfo() { FirstName = "Hayes", ID = 32, LastName = "William", Title = "Production Technician", Salary = 40000, ReportsTo = 67 }); + list.Add(new EmployeeInfo() { FirstName = "Madison", ID = 12, LastName = "Franklin", Title = "Stocker", Salary = 50000, ReportsTo = 67 }); + list.Add(new EmployeeInfo() { FirstName = "Arthur", ID = 96, LastName = "Grover", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 67 }); + } + + if (bossID == 59) + { + list.Add(new EmployeeInfo() { FirstName = "Adams", ID = 711, LastName = "Reagan", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 59 }); + list.Add(new EmployeeInfo() { FirstName = "Nixon", ID = 192, LastName = "Tyler", Title = "Production Technician", Salary = 40000, ReportsTo = 59 }); + list.Add(new EmployeeInfo() { FirstName = "Coolidge", ID = 413, LastName = "Polk", Title = "Design Engineer", Salary = 50000, ReportsTo = 59 }); + list.Add(new EmployeeInfo() { FirstName = "George", ID = 841, LastName = "Harrison", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 59 }); + } + + if (bossID == 8) + { + list.Add(new EmployeeInfo() { FirstName = "William", ID = 71, LastName = "Bush", Title = "Quality Assurance Supervisor", Salary = 40000, ReportsTo = 8 }); + list.Add(new EmployeeInfo() { FirstName = "Harry", ID = 92, LastName = "Tyler", Title = "Production Technician", Salary = 40000, ReportsTo = 8 }); + list.Add(new EmployeeInfo() { FirstName = "Arthur", ID = 43, LastName = "Polk", Title = "Design Engineer", Salary = 50000, ReportsTo = 8 }); + list.Add(new EmployeeInfo() { FirstName = "George", ID = 84, LastName = "Harrison", Title = "Maintainence Superviser", Salary = 50000, ReportsTo = 8 }); + } + + return list; + } + } +} diff --git a/CS/app.config b/CS/app.config new file mode 100644 index 0000000..e365603 --- /dev/null +++ b/CS/app.config @@ -0,0 +1,3 @@ + + + diff --git a/CS/packages.config b/CS/packages.config new file mode 100644 index 0000000..eb45890 --- /dev/null +++ b/CS/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file