/// <summary>
 /// SetValues
 /// </summary>
 /// <param name="serverid"></param>
 private void SetInitialValues(Guid serverid)
 {
     this.miningServer          = this.RepositoryFactory.ServerRepository.Find(x => x.ServerID == serverid);
     this.miningRegion          = this.miningServer.ServerRegion;
     this.miningType            = this.miningServer.MinerType;
     this.txtServerName.Text    = this.miningServer.ServerName;
     this.txtServerAddress.Text = this.miningServer.ServerAddress;
     this.txtServerPort.Text    = this.miningServer.ServerPort.Value.ToString();
     this.drpMinnerType.Items.Add(new RadListDataItem(this.miningType.MinerDescription, this.miningType));
     this.drpMinnerType.Items.Add(new RadListDataItem(this.miningType.MinerDescription, this.miningType));
 }
        /// <summary>
        /// SetValues
        /// </summary>
        /// <param name="serverid"></param>
        private MiningServer UpdateServer()
        {
            if (this.miningServer.IsNull())
            {
                this.miningServer = this.RepositoryFactory.ServerRepository.Find(x => x.ServerID == this.Serverid);
            }

            this.miningRegion = this.miningServer.ServerRegion;
            this.miningType   = this.miningServer.MinerType;

            this.miningServer.ServerName    = this.txtServerName.Text;
            this.miningServer.ServerAddress = this.txtServerAddress.Text;
            this.miningServer.ServerPort    = Int32.Parse(this.txtServerPort.Text);
            return(this.miningServer);
        }