Exemplo n.º 1
0
        private void Start(DriverName driverName)
        {
            switch (driverName)
            {
            case DriverName.ChromeDriver:
            {
                _driver = new ChromeDriver();
                break;
            }

            case DriverName.FireFoxDriver:
            {
                _driver = new FirefoxDriver();
                break;
            }

            case DriverName.IeDriver:
            {
                _driver = new InternetExplorerDriver();
                break;
            }
            }

            _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
            _driver.Navigate().GoToUrl("http://localhost:8080/litecart/");
        }
Exemplo n.º 2
0
        public IActionResult Add(AddDriverLoadViewModel addDriverLoadViewModel)
        {
            if (ModelState.IsValid)
            {
                DriverName newDriver =
                    context.DriverNames.Single(c => c.ID == addDriverLoadViewModel.DriverNameID);
                // Add the new cheese to my existing cheeses
                Driver newTrip = new Driver
                {
                    Date        = addDriverLoadViewModel.Date,
                    Reference   = addDriverLoadViewModel.Reference,
                    Description = addDriverLoadViewModel.Description,
                    LoadMiles   = addDriverLoadViewModel.LoadMiles,
                    DeadMiles   = addDriverLoadViewModel.DeadMiles,

                    Rate       = addDriverLoadViewModel.Rate,
                    DriverName = newDriver
                };

                context.Drivers.Add(newTrip);
                context.SaveChanges();

                return(Redirect("/Driver"));
            }

            return(View(addDriverLoadViewModel));
        }
Exemplo n.º 3
0
        public async Task <bool> RebookSkin()
        {
            if (!IsBooked || !BookingMode || BookingTimeLeft < TimeSpan.FromSeconds(2) || Cars == null)
            {
                return(false);
            }

            var carEntry = SelectedCarEntry;

            if (carEntry == null)
            {
                return(false);
            }

            var correctId = GetCorrectId(carEntry.Id);

            if (correctId == null)
            {
                Logging.Error("Can’t find correct ID");
                return(false);
            }

            PrepareBookingUi();

            var result = await Task.Run(() => KunosApiProvider.TryToBook(Ip, PortHttp, Password, correctId, carEntry.AvailableSkin?.Id,
                                                                         DriverName.GetOnline(), ""));

            if (result?.IsSuccessful != true)
            {
                return(false);
            }

            ProcessBookingResponse(result);
            return(true);
        }
        public void AddDriver()
        {
            try
            {
                // Check data has been entered
                if (DriverDob != null && !DriverName.Equals("") && !DriverJob.Equals(""))
                {
                    if (Drivers.Count < 5)
                    {
                        // Create driver from inputs
                        Driver d = new Driver();
                        d.Name   = DriverName;
                        d.Dob    = DriverDob;
                        d.Claims = new ObservableCollection <Claim>();
                        OccupationEnum jobEnum;

                        // Set job enum based on user input
                        if (DriverJob.ToLower().Equals("chauffeur"))
                        {
                            jobEnum = OccupationEnum.CHAUFFEUR;
                        }
                        else if (DriverJob.ToLower().Equals("accountant"))
                        {
                            jobEnum = OccupationEnum.ACCOUNTANT;
                        }
                        else
                        {
                            jobEnum = OccupationEnum.OTHER;
                        }

                        // Set occupation
                        Occupation job = new Occupation
                        {
                            JobTitle = DriverJob,
                            JobEnum  = jobEnum
                        };
                        d.Job = job;

                        // Add driver to list
                        Drivers.Add(d);
                        Output = DriverName + " added to policy";
                    }
                    else
                    {
                        // Output message
                        Output = "Policy cannot have more than 5 drivers";
                    }
                }
                else
                {
                    Output = "Please enter name and job of driver";
                }
            }
            catch (Exception ex)
            {
                Output = "An error has occurred. Please ensure that the driver data is correct and try again\n" + ex.Message;
            }
        }
Exemplo n.º 5
0
        public static void InitBrowser(string browserName)
        {
            DriverName _driverName = Enum.TryParse(browserName, true, out _driverName) ? _driverName : DriverName.Firefox;

            switch (_driverName)
            {
            case DriverName.Firefox:
                if (_driver == null)
                {
                    _driver = new FirefoxDriver(PathUtils.GetDrivers());
                    Drivers.Add("Firefox", Driver);
                }
                break;

            case DriverName.IE:
                if (_driver == null)
                {
                    _driver = new InternetExplorerDriver(PathUtils.GetDrivers());
                    Drivers.Add("IE", Driver);
                }
                break;

            case DriverName.Chrome:
                if (_driver == null)
                {
                    _driver = new ChromeDriver(PathUtils.GetDrivers());
                    Drivers.Add("Chrome", Driver);
                }
                break;

            case DriverName.Edge:
                if (_driver == null)
                {
                    _driver = new EdgeDriver(PathUtils.GetDrivers());
                    Drivers.Add("Edge", Driver);
                }
                break;

            case DriverName.Safari:
                if (_driver == null)
                {
                    _driver = new SafariDriver(PathUtils.GetDrivers());
                    Drivers.Add("Safari", Driver);
                }
                break;

            case DriverName.Android:
                if ((_driver == null))
                {
                    IDesCapabilities androidCap = new GetAndroidCapabilities();
                    _driver = new AndroidDriver <IWebElement>(new Uri("http://127.0.0.1:4723/wd/hub"), androidCap.GetCapabilities());
                    Drivers.Add("Android", Driver);
                }
                break;
            }
        }
Exemplo n.º 6
0
 public void FormControls(string CLR)
 {
     if (CLR == "CLR")
     {
         DriverID.Enabled            = false;
         DriverName.Enabled          = false;
         DriverAddress.Enabled       = false;
         Drivercity.Enabled          = false;
         DriverContact.Enabled       = false;
         DriverAge.Enabled           = false;
         DriverLicense.Enabled       = false;
         DateJoining.Enabled         = false;
         DriverSalary.Enabled        = false;
         DriverQualification.Enabled = false;
         DriverReference.Enabled     = false;
         DriverConctact2.Enabled     = false;
         DriverID.Clear();
         DriverName.Clear();
         DriverAddress.Clear();
         Drivercity.Clear();
         DriverAge.Clear();
         DriverContact.Clear();
         DriverLicense.Clear();
         DriverSalary.Clear();
         DriverQualification.Clear();
         DriverReference.Clear();
         DriverConctact2.Clear();
         DateJoining.Value = DateTime.Now;
         btnsave.Enabled   = false;
         btnedit.Enabled   = false;
         btndelete.Enabled = false;
         btnadd.Enabled    = true;
         btnfind.Enabled   = true;
         Left1.Enabled     = false;
         Right1.Enabled    = false;
     }
     if (CLR == "Save")
     {
         DriverName.Enabled          = true;
         DriverAddress.Enabled       = true;
         Drivercity.Enabled          = true;
         DriverContact.Enabled       = true;
         DriverAge.Enabled           = true;
         DriverLicense.Enabled       = true;
         DateJoining.Enabled         = true;
         DriverSalary.Enabled        = true;
         DriverQualification.Enabled = true;
         DriverReference.Enabled     = true;
         DriverConctact2.Enabled     = true;
         btnsave.Enabled             = true;
         btnadd.Enabled    = false;
         btnfind.Enabled   = false;
         btndelete.Enabled = false;
         btnedit.Enabled   = false;
     }
 }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ (DriverName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (TeamName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Skins.Aggregate(0, (current, skin) => current ^ skin.GetHashCode()).GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 8
0
        public IActionResult Remove(int[] driverIds)
        {
            foreach (int driverId in driverIds)
            {
                DriverName theDriverEntry = context.DriverNames.Single(c => c.ID == driverId);
                context.DriverNames.Remove(theDriverEntry);
            }

            context.SaveChanges();

            return(Redirect("/DriverName"));
        }
Exemplo n.º 9
0
        public override string ToString()
        {
            var builder = new System.Text.StringBuilder();

            builder.AppendFormat("{0} {{", nameof(ConnectionInfo)).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(DriverName), DriverName.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(DriverGuid), DriverGuid.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarId), CarId.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarModel), CarModel.ToString()).AppendLine();
            builder.AppendFormat("    {0} = {1}", nameof(CarSkin), CarSkin.ToString()).AppendLine();
            builder.AppendFormat("}}").AppendLine();
            return(builder.ToString());
        }
Exemplo n.º 10
0
        public void GoodAttibutesTest(DriverName drivername)
        {
            Start(drivername);

            MainPageActions();
            ProductPageActions();

            Assert.AreEqual(_regularPriceMainPage, _regularPriceProductPage);
            Assert.AreEqual(_campainPriceMainPage, _campainPriceProductPage);
            Assert.AreEqual(_productNameMainPage, _productNameProductPage);

            _driver.Quit();
        }
Exemplo n.º 11
0
        public IActionResult Names(int id)
        {
            if (id == 0)
            {
                Redirect("/Name");
            }

            DriverName theDriver = context.DriverNames
                                   .Include(cat => cat.Drivers)
                                   .Single(cat => cat.ID == id);


            ViewBag.Title = "Entries for Driver" + theDriver.Name;
            return(View("Index", theDriver.Drivers));
        }
Exemplo n.º 12
0
        public void Prepare()
        {
            ForegroundColor = Color;
            CursorTop       = (int)Road + 1;
            CursorLeft      = 2;
            if (DriverName.Length > 7)
            {
                Write(DriverName.Substring(0, 7));
            }
            else
            {
                Write(DriverName);
            }

            PrintCar();
        }
Exemplo n.º 13
0
        public IActionResult DriverTrips(int id)
        {
            List <Driver> drivers = context.
                                    Drivers
                                    .Include(c => c.DriverName)
                                    .Where(c => c.DriverNameID == id).
                                    ToList();
            DriverName           driverName  = context.DriverNames.Single(c => c.ID == id);
            DriverLoadsViewModel driverLoads = new DriverLoadsViewModel
            {
                Drivers = drivers,
            };

            ViewBag.title = driverName.Name;
            return(View(driverLoads));
        }
Exemplo n.º 14
0
        public IActionResult Add(AddDriverNameViewModel addDriverNameViewModel)
        {
            if (ModelState.IsValid)
            {
                DriverName newDriverName = new DriverName
                {
                    Name = addDriverNameViewModel.Name,
                };

                context.DriverNames.Add(newDriverName);
                context.SaveChanges();

                return(Redirect("/DriverName"));
            }

            return(View(addDriverNameViewModel));
        }
Exemplo n.º 15
0
        protected override void BeginProcessing()
        {
            CheckCmdletParameters();

            switch (DriverName.ToUpper())
            {
            case SeHelper.DriverNameChrome:
            case SeHelper.DriverNameChrome2:
                Ch         = true;
                DriverType = Drivers.Chrome;
                break;

            case SeHelper.DriverNameFirefox:
            case SeHelper.DriverNameFirefox2:
                Ff         = true;
                DriverType = Drivers.Firefox;
                break;

            case SeHelper.DriverNameInternetExplorer:
            case SeHelper.DriverNameInternetExplorer2:
            case SeHelper.DriverNameInternetExplorer3:
            case SeHelper.DriverNameInternetExplorer4:
            case SeHelper.DriverNameInternetExplorer5:
            case SeHelper.DriverNameInternetExplorer6:
                Ie         = true;
                DriverType = Drivers.InternetExplorer;
                break;

            default:
                WriteError(
                    this,
                    "Could not determine the type of driver.",
                    "DriverType",
                    ErrorCategory.InvalidArgument,
                    true);
                break;
            }

            var command =
                new SeStartWebDriverCommand(this);

            //WebDriverFactory.Container.Resolve<SeStartWebDriverCommand>(new NamedParameter("cmdlet", this));
            command.Execute();
        }
Exemplo n.º 16
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ProjectName?.GetHashCode() ?? 0;
                hashCode = hashCode * 397 + (DriverName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredDriverType?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredObjectType?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredDriverExeName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConnectionName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (NetAddress?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (PrimaryIpAddress?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + PortNumber;
                hashCode = hashCode * 397 + UnitId;
                hashCode = hashCode * 397 + Offset.GetHashCode();
                hashCode = hashCode * 397 + (int)StartOffset;
                hashCode = hashCode * 397 + IsEnabled.GetHashCode();
                hashCode = hashCode * 397 + IsSerial.GetHashCode();
                hashCode = hashCode * 397 + IsMultiMaster.GetHashCode();
                hashCode = hashCode * 397 + SkipRegister.GetHashCode();

                return(hashCode);
            }
        }
Exemplo n.º 17
0
        private async Task Join(object o)
        {
            var carEntry = SelectedCarEntry;

            if (carEntry == null || Cars == null)
            {
                return;
            }

            var correctId = GetCorrectId(carEntry.Id);

            if (correctId == null)
            {
                Logging.Error("Can’t find correct ID");
                return;
            }

            if (!IsBookedForPlayer && BookingMode && !ReferenceEquals(o, ActualJoin) && !ReferenceEquals(o, ForceJoin))
            {
                if (_factory == null)
                {
                    Logging.Error("Booking: UI factory is missing");
                    return;
                }

                PrepareBookingUi();
                ProcessBookingResponse(await Task.Run(() => KunosApiProvider.TryToBook(Ip, PortHttp, Password, correctId, carEntry.AvailableSkin?.Id,
                                                                                       DriverName.GetOnline(), "")));
                return;
            }

            DisposeHelper.Dispose(ref _ui);
            IsBooked            = false;
            BookingErrorMessage = null;

            var properties = new Game.StartProperties(new Game.BasicProperties {
                CarId                = carEntry.Id,
                CarSkinId            = carEntry.AvailableSkin?.Id,
                TrackId              = Track?.Id,
                TrackConfigurationId = Track?.LayoutId
            }, null, null, null, new Game.OnlineProperties {
                RequestedCar   = correctId,
                ServerIp       = Ip,
                ServerName     = DisplayName,
                ServerPort     = PortRace,
                ServerHttpPort = PortHttp,
                Guid           = SteamIdHelper.Instance.Value,
                Password       = Password
            });

            var now = DateTime.Now;
            await GameWrapper.StartAsync(properties);

            var whatsGoingOn = properties.GetAdditional <WhatsGoingOn>();

            WrongPassword = whatsGoingOn?.Type == WhatsGoingOnType.OnlineWrongPassword;

            if (whatsGoingOn == null)
            {
                LastConnected = now;
                FileBasedOnlineSources.AddRecent(this).Forget();
                UpdateStats();
            }
        }
Exemplo n.º 18
0
        public virtual string TransformText()
        {
            this.Write(" \r\n");
            this.Write(@"# ===========================================================================
# Auto generated from PCCDriver.tt
# ===========================================================================
# imports
import os
import sys
import logging

# OpenMDAO Assembly Component (Optimization)
from openmdao.main.api import Assembly, set_as_top
from openmdao.main.file_supp import FileMetadata

# Import from META-PCC Module
from PCC.model_calls import ListGen, InitializeCluster
from PCC.pcc_driver import PCCdriver
from PCC.model_calls import UseLocalParallel # Call this function to enable parallel execution

from test_bench import TestBench

# Remove all log-handlers that except for the two from pym
log = logging.getLogger()
while len(log.handlers) > 2:
    log.removeHandler(log.handlers[-1])
");

            #line 37 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            if (DriverName.Contains("parallel_execution"))
            {
            #line default
            #line hidden
                this.Write("UseLocalParallel()\r\n ");

            #line 40 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            }
            else
            {
            #line default
            #line hidden
                this.Write("#UseLocalParallel()\r\n ");

            #line 45 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            }


            #line default
            #line hidden
            this.Write(@"

class PCC_Experiment_v1(Assembly):
    """""" Documentation comment for this Assembly. """"""

    def __init__(self):
        super(PCC_Experiment_v1, self).__init__()

        # Create Assembly Instance
        self.add('TestBench', TestBench())

        # Add driver
        self.add('driver', PCCdriver())
        self.driver.DOEgenerator = ListGen()

        # Add files (for parallel execution)
        log.debug('Adding files : ')
        for path, dirs, files in os.walk('.'):
            if path[2:5]!='Sim':
                for filename in files:
                    log.debug('    {0}'.format(os.path.join(path[2:],filename)))
                    needed = FileMetadata (os.path.join(path[2:],filename),input=True,binary=True)
                    self.external_files.append(needed)
        log.debug(' to list of required files.')
        # Load configuration for the PCC-driver
        self.driver.load_json_file('");

            #line 73 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(PCCConfigJson));

            #line default
            #line hidden
            this.Write("\')\r\n        log.debug(\'");

            #line 74 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(PCCConfigJson));

            #line default
            #line hidden
            this.Write(" succesfully loaded\')\r\n        #don\'t re-copy model files to remote server every " +
                       "time. Reuse them.\r\n        self.driver.reload_model = False \r\n\r\n        # Design" +
                       " Variables\r\n");

            #line 79 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            foreach (var name in DesignVariables)
            {
            #line default
            #line hidden
                this.Write("        self.driver.add_parameter(\'");

            #line 82 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(name));

            #line default
            #line hidden
                this.Write("\', low = 0, high = 1)\r\n");

            #line 83 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            }

            #line default
            #line hidden
            this.Write("        # Extra design variables (Properties).\r\n");

            #line 85 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            foreach (var kvp in this.PCCPropertyInputs)
            {
            #line default
            #line hidden
                this.Write("        self.driver.add_parameter(\'TestBench.");

            #line 87 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(kvp.Key));

            #line default
            #line hidden
                this.Write("\', low = 0, high = 1)\r\n");

            #line 88 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            }

            #line default
            #line hidden
            this.Write("\r\n        # Objectives\r\n");

            #line 91 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            foreach (var name in Objectives)
            {
            #line default
            #line hidden
                this.Write("        self.driver.add_objective(\'");

            #line 93 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(name));

            #line default
            #line hidden
                this.Write("\')\r\n");

            #line 94 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            }

            #line default
            #line hidden
            this.Write("        self.driver.case_outputs=[\r\n");

            #line 96 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            foreach (var name in Objectives)
            {
            #line default
            #line hidden
                this.Write("            \'");

            #line 98 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(name));

            #line default
            #line hidden
                this.Write("\',\r\n");

            #line 99 "C:\META\meta_trunk\src\CyPhyPET\Templates\PCCDriver.tt"
            }

            #line default
            #line hidden
            this.Write(@"        ]

        self.driver.workflow.add(['TestBench'])

def main():
    import time
    #    InitializeCluster(['*****@*****.**'],'/home/ubuntu/openmdao-0.6.2/bin/python')
    #    InitializeCluster(['*****@*****.**',\
    #                       '*****@*****.**',\
    #                       '*****@*****.**',\
    #                       '*****@*****.**'],\
    #                       '/home/ubuntu/openmdao-0.6.2/bin/python')

    pcc_problem = PCC_Experiment_v1()
    set_as_top(pcc_problem)
    tt = time.time()
    pcc_problem.run()

    print ""Elapsed time: "", time.time()-tt, ""seconds""

if __name__ == ""__main__"":
    main()
");
            return(this.GenerationEnvironment.ToString());
        }
Exemplo n.º 19
0
 void ReleaseDesignerOutlets()
 {
     if (CallButton != null)
     {
         CallButton.Dispose();
         CallButton = null;
     }
     if (Detail != null)
     {
         Detail.Dispose();
         Detail = null;
     }
     if (DriverName != null)
     {
         DriverName.Dispose();
         DriverName = null;
     }
     if (LicensePlate != null)
     {
         LicensePlate.Dispose();
         LicensePlate = null;
     }
     if (Maker != null)
     {
         Maker.Dispose();
         Maker = null;
     }
     if (Map != null)
     {
         Map.Dispose();
         Map = null;
     }
     if (Model != null)
     {
         Model.Dispose();
         Model = null;
     }
     if (Rate != null)
     {
         Rate.Dispose();
         Rate = null;
     }
     if (RatingStar1 != null)
     {
         RatingStar1.Dispose();
         RatingStar1 = null;
     }
     if (RatingStar2 != null)
     {
         RatingStar2.Dispose();
         RatingStar2 = null;
     }
     if (RatingStar3 != null)
     {
         RatingStar3.Dispose();
         RatingStar3 = null;
     }
     if (RatingStar4 != null)
     {
         RatingStar4.Dispose();
         RatingStar4 = null;
     }
     if (RatingStar5 != null)
     {
         RatingStar5.Dispose();
         RatingStar5 = null;
     }
     if (RequestButton != null)
     {
         RequestButton.Dispose();
         RequestButton = null;
     }
     if (Seats != null)
     {
         Seats.Dispose();
         Seats = null;
     }
     if (Status != null)
     {
         Status.Dispose();
         Status = null;
     }
     if (Type != null)
     {
         Type.Dispose();
         Type = null;
     }
     if (VehiclePicture != null)
     {
         VehiclePicture.Dispose();
         VehiclePicture = null;
     }
 }
Exemplo n.º 20
0
        private void LoadModuleScoutTabComponents()
        {
            int currentRow  = 0;
            int binaryCount = 0;

            string ftpHost     = this.formRepoAccountInfo.RepoAccountHost;
            string ftpPort     = this.formRepoAccountInfo.RepoAccountPort;
            string ftpUser     = this.formRepoAccountInfo.RepoAccountLogin;
            string ftpPassword = this.formRepoAccountInfo.RepoAccountPassword;

            this.binaryUpdateStatus = GenerateBinaryUpdateStatusList(ftpHost, ftpPort, ftpUser, ftpPassword);

            // remove existing tab contents
            if (null != this.tableLayoutPanelModuleScout)
            {
                this.tabModuleScouts.Controls.Remove(this.tableLayoutPanelModuleScout);
            }

            // create the components that are not dynamic
            this.tableLayoutPanelModuleScout = new System.Windows.Forms.TableLayoutPanel();
            this.buttonModuleScoutRefresh    = new System.Windows.Forms.Button();
            this.labelModuleScoutLatest      = new System.Windows.Forms.Label();
            this.labelModuleScoutYours       = new System.Windows.Forms.Label();


            // suspend all layout
            tabModuleScouts.SuspendLayout();
            this.tableLayoutPanelModuleScout.SuspendLayout();

            // calc the total number of rows = # of binaries + 5
            binaryCount += this.binaryUpdateStatus[AppName].Count;
            binaryCount += this.binaryUpdateStatus[DriverName].Count;
            binaryCount += this.binaryUpdateStatus[ScoutName].Count;

            this.tableLayoutPanelModuleScout.RowCount = binaryCount + 5;

            // initialize the non-dynamic components

            //
            // tableLayoutPanelModuleScout
            //
            this.tableLayoutPanelModuleScout.AutoScroll      = true;
            this.tableLayoutPanelModuleScout.CellBorderStyle = TableLayoutPanelCellBorderStyle.None;
            this.tableLayoutPanelModuleScout.ColumnCount     = 6;
            this.tableLayoutPanelModuleScout.AutoSize        = true;
            this.tableLayoutPanelModuleScout.Location        = new System.Drawing.Point(0, 0);
            this.tableLayoutPanelModuleScout.Name            = "tableLayoutPanelModuleScout";
            this.tableLayoutPanelModuleScout.MinimumSize     = new Size(this.tabModuleScouts.Size.Width, this.tabModuleScouts.Size.Height);
            this.tableLayoutPanelModuleScout.MaximumSize     = this.tabModuleScouts.Size;
            this.tableLayoutPanelModuleScout.TabIndex        = 0;

            this.tabModuleScouts.Controls.Add(this.tableLayoutPanelModuleScout);

            //
            // labelModuleScoutLatest
            //
            this.labelModuleScoutLatest.Dock     = System.Windows.Forms.DockStyle.None;
            this.labelModuleScoutLatest.AutoSize = false;
            this.labelModuleScoutLatest.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelModuleScoutLatest.Name     = "labelModuleScoutLatest";
            this.labelModuleScoutLatest.TabIndex = 4;
            this.labelModuleScoutLatest.Text     = "On FTP";
            this.labelModuleScoutLatest.Margin   = new Padding(0);
            //
            // labelModuleScoutYours
            //
            this.labelModuleScoutYours.Dock     = System.Windows.Forms.DockStyle.None;
            this.labelModuleScoutYours.AutoSize = false;
            this.labelModuleScoutYours.Font     = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelModuleScoutYours.Name     = "labelModuleScoutYours";
            this.labelModuleScoutYours.TabIndex = 4;
            this.labelModuleScoutYours.Text     = "Local";
            this.labelModuleScoutYours.Margin   = new Padding(0);


            // add some of the non-dyamic components to the layout panel

            this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
            this.tableLayoutPanelModuleScout.Controls.Add(this.labelModuleScoutLatest, 1, currentRow);
            this.tableLayoutPanelModuleScout.Controls.Add(this.labelModuleScoutYours, 2, currentRow++);


            //
            // labelApps
            //
            this.labelApps           = new System.Windows.Forms.Label();
            this.labelApps.AutoSize  = false;
            this.labelApps.Dock      = System.Windows.Forms.DockStyle.None;
            this.labelApps.Name      = "labelApps";
            this.labelApps.Font      = new Font(FontFamily.GenericSansSerif, 12F, FontStyle.Bold);
            this.labelApps.TabIndex  = 6;
            this.labelApps.Text      = AppName.ToUpper();
            this.labelApps.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.labelApps.Margin    = new Padding(0);

            //
            // labelDrivers
            //
            this.labelDrivers           = new System.Windows.Forms.Label();
            this.labelDrivers.AutoSize  = false;
            this.labelDrivers.Dock      = System.Windows.Forms.DockStyle.None;
            this.labelDrivers.Name      = "labelDrivers";
            this.labelDrivers.Font      = new Font(FontFamily.GenericSansSerif, 12F, FontStyle.Bold);
            this.labelDrivers.TabIndex  = 6;
            this.labelDrivers.Text      = DriverName.ToUpper();
            this.labelDrivers.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.labelDrivers.Margin    = new Padding(0);

            //
            // labelScouts
            //
            this.labelScouts           = new System.Windows.Forms.Label();
            this.labelScouts.AutoSize  = false;
            this.labelScouts.Dock      = System.Windows.Forms.DockStyle.None;
            this.labelScouts.Name      = "labelScouts";
            this.labelScouts.Font      = new Font(FontFamily.GenericSansSerif, 12F, FontStyle.Bold);
            this.labelScouts.TabIndex  = 6;
            this.labelScouts.Text      = ScoutName.ToUpper();
            this.labelScouts.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.labelScouts.Margin    = new Padding(0);

            //
            // buttonModuleScoutRefresh
            //
            this.buttonModuleScoutRefresh.AutoSize = false;
            this.buttonModuleScoutRefresh.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this.buttonModuleScoutRefresh.Name     = "buttonModuleScoutRefresh";
            this.buttonModuleScoutRefresh.TabIndex = 1;
            this.buttonModuleScoutRefresh.Text     = "Refresh";
            this.buttonModuleScoutRefresh.UseVisualStyleBackColor = true;
            this.buttonModuleScoutRefresh.Click += new System.EventHandler(this.buttonModuleScoutRefresh_Click);
            this.buttonModuleScoutRefresh.Margin = new Padding(0);

            // Apps label
            this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
            this.tableLayoutPanelModuleScout.Controls.Add(this.labelApps, 0, currentRow++);

            // create the list of apps rows

            this.HubOtherUpdatePanelList = new List <HubOtherUpdatePanelRowItem>();
            for (int i = 0; i < this.binaryUpdateStatus[AppName].Count; ++i)
            {
                this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
                HubOtherUpdatePanelRowItem hubOtherUpdatePanelRowItem = new HubOtherUpdatePanelRowItem(
                    this.tableLayoutPanelModuleScout,
                    currentRow++,
                    this.binaryUpdateStatus[AppName][i].Item1,
                    AppName,
                    this.binaryUpdateStatus[AppName][i].Item3,
                    this.binaryUpdateStatus[AppName][i].Item2,
                    !this.binaryUpdateStatus[AppName][i].Item4 /* needs repo update == Item4*/,
                    this.folderBrowserWorkingDir.SelectedPath + "\\binaries\\Pipeline\\AddIns",
                    this.folderBrowserWorkingDir.SelectedPath + "\\HomeStore\\Repository",
                    ftpHost,
                    ftpPort,
                    ftpUser,
                    ftpPassword,
                    this.logger
                    );
                this.HubOtherUpdatePanelList.Add(hubOtherUpdatePanelRowItem);
            }

            // Drivers label
            this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
            this.tableLayoutPanelModuleScout.Controls.Add(this.labelDrivers, 0, currentRow++);

            // create the list of driver rows

            this.HubOtherUpdatePanelList = new List <HubOtherUpdatePanelRowItem>();
            for (int i = 0; i < this.binaryUpdateStatus[DriverName].Count; ++i)
            {
                this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
                HubOtherUpdatePanelRowItem hubOtherUpdatePanelRowItem = new HubOtherUpdatePanelRowItem(
                    this.tableLayoutPanelModuleScout,
                    currentRow++,
                    this.binaryUpdateStatus[DriverName][i].Item1,
                    DriverName,
                    this.binaryUpdateStatus[DriverName][i].Item3,
                    this.binaryUpdateStatus[DriverName][i].Item2,
                    !this.binaryUpdateStatus[DriverName][i].Item4 /* needs repo update == Item4*/,
                    this.folderBrowserWorkingDir.SelectedPath + "\\binaries\\Pipeline\\AddIns",
                    this.folderBrowserWorkingDir.SelectedPath + "\\HomeStore\\Repository",
                    ftpHost,
                    ftpPort,
                    ftpUser,
                    ftpPassword,
                    this.logger
                    );
                this.HubOtherUpdatePanelList.Add(hubOtherUpdatePanelRowItem);
            }

            // Scouts label
            this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
            this.tableLayoutPanelModuleScout.Controls.Add(this.labelScouts, 0, currentRow++);

            // create the list of scout rows

            this.HubOtherUpdatePanelList = new List <HubOtherUpdatePanelRowItem>();
            for (int i = 0; i < this.binaryUpdateStatus[ScoutName].Count; ++i)
            {
                this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
                HubOtherUpdatePanelRowItem hubOtherUpdatePanelRowItem = new HubOtherUpdatePanelRowItem(
                    this.tableLayoutPanelModuleScout,
                    currentRow++,
                    this.binaryUpdateStatus[ScoutName][i].Item1,
                    ScoutName,
                    this.binaryUpdateStatus[ScoutName][i].Item3,
                    this.binaryUpdateStatus[ScoutName][i].Item2,
                    !this.binaryUpdateStatus[ScoutName][i].Item4 /* needs repo update == Item4*/,
                    this.folderBrowserWorkingDir.SelectedPath + "\\binaries\\Scouts",
                    this.folderBrowserWorkingDir.SelectedPath + "\\HomeStore\\Repository",
                    ftpHost,
                    ftpPort,
                    ftpUser,
                    ftpPassword,
                    this.logger
                    );
                this.HubOtherUpdatePanelList.Add(hubOtherUpdatePanelRowItem);
            }

            // add the Update button component add the bottom

            this.tableLayoutPanelModuleScout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22));
            this.tableLayoutPanelModuleScout.Controls.Add(this.buttonModuleScoutRefresh, 0, currentRow++);

            Debug.Assert(currentRow == this.tableLayoutPanelModuleScout.RowCount);

            // resume layout
            this.tabModuleScouts.ResumeLayout(false);
            this.tableLayoutPanelModuleScout.ResumeLayout(false);
            this.tableLayoutPanelModuleScout.PerformLayout();
        }