Exemple #1
0
 public void AddToDatabase()
 {
     Program.DatabaseManager.GetClient().ExecuteQuery(
         "INSERT INTO Masters (CharID,MasterID,MemberName,Level,RegisterDate,isMaster) VALUES ('" +
         MasterID + "','" + CharID + "','" + pMemberName + "','" + Level + "','" +
         RegisterDate.ToString("yyyy-MM-dd hh:mm") + "','" + Convert.ToByte(IsMaster) + "')");
 }
Exemple #2
0
        public override string ToString()
        {
            List <Order> list = DatabaseMethods.SelectWorkerOrders(this);
            string       workerOrdersAmount = list == null ? "0" : list.Count.ToString();

            return("Worker number: " + WorkerNumber + Environment.NewLine +
                   "Name: " + Name + Environment.NewLine +
                   "Last name: " + LastName + Environment.NewLine +
                   "Position: " + Position + Environment.NewLine +
                   "Salary: €" + Salary.ToString() + Environment.NewLine +
                   "Working hours per week: " + WorkingHoursPerWeek.ToString() + Environment.NewLine +
                   "Worker orders amount: " + workerOrdersAmount + Environment.NewLine +
                   "Registered on: " + RegisterDate.ToShortDateString());
        }
        public async Task <IActionResult> GetExchangeRates(RegisterDate model)
        {
            if (ModelState.IsValid)
            {
                if (model.Date > new DateTime(2014, 01, 01))
                {
                    TempData["MsgChangeStatus"] = "Date should be up to 2014-01-01!";
                    return(View("Index"));
                }
                var client   = new ExchangeRatesSoapClient(ExchangeRatesSoapClient.EndpointConfiguration.ExchangeRatesSoap);
                var response = await client.getExchangeRatesByDate_XmlStringAsync(model.Date.ToString("MMMM dd, yyyy"));

                var itemsList = _itemService.ParseXmlNode(response);
                _itemService.SortByRate(itemsList);

                return(View(itemsList));
            }
            else
            {
                TempData["MsgChangeStatus"] = "Date is invalid!";
                return(View("Index"));
            }
        }
Exemple #4
0
 public override string ToString()
 {
     return("Client number: " + ClientNumber + Environment.NewLine + "Name: " + Name + Environment.NewLine + "Last name: " + LastName + Environment.NewLine + "E-mail: " + Email + Environment.NewLine + "Mobile number: " + MobileNumber + Environment.NewLine + "Registered on: " + RegisterDate.ToShortDateString());
 }
Exemple #5
0
 public override string GetData()
 {
     return(string.Format("{0}{1}{2}{3}", CardType, EmplayeeCode, RegisterDate.ToString("yyyyMMddhhmmss"), EffectionDate.ToString("yyyyMMddhhmmss")));
 }
        public override string ToString()
        {
            string expire;

            if (PremiumExpireDate == null)
            {
                expire = "null";
            }
            else
            {
                expire = PremiumExpireDate.ToString("yyyy.MM.dd");
            }
            return(Name + " " + Surname + " " + Email + " " + Height + " " + Weight + " " + RegisterDate.ToString("yyyy.MM.dd") + " " + expire);
        }
Exemple #7
0
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

            if (BottomConstraint != null)
            {
                BottomConstraint.Dispose();
                BottomConstraint = null;
            }

            if (DistanceText != null)
            {
                DistanceText.Dispose();
                DistanceText = null;
            }

            if (EditSelf != null)
            {
                EditSelf.Dispose();
                EditSelf = null;
            }

            if (EditSelfBack != null)
            {
                EditSelfBack.Dispose();
                EditSelfBack = null;
            }

            if (EditSelfHeader != null)
            {
                EditSelfHeader.Dispose();
                EditSelfHeader = null;
            }

            if (EditSpacer != null)
            {
                EditSpacer.Dispose();
                EditSpacer = null;
            }

            if (HeaderBackground != null)
            {
                HeaderBackground.Dispose();
                HeaderBackground = null;
            }

            if (HideButton != null)
            {
                HideButton.Dispose();
                HideButton = null;
            }

            if (LastActiveDate != null)
            {
                LastActiveDate.Dispose();
                LastActiveDate = null;
            }

            if (LikeButton != null)
            {
                LikeButton.Dispose();
                LikeButton = null;
            }

            if (LocationTime != null)
            {
                LocationTime.Dispose();
                LocationTime = null;
            }

            if (MapBottomSeparator != null)
            {
                MapBottomSeparator.Dispose();
                MapBottomSeparator = null;
            }

            if (MapSatellite != null)
            {
                MapSatellite.Dispose();
                MapSatellite = null;
            }

            if (MapStreet != null)
            {
                MapStreet.Dispose();
                MapStreet = null;
            }

            if (MapTopSeparator != null)
            {
                MapTopSeparator.Dispose();
                MapTopSeparator = null;
            }

            if (MenuBlock != null)
            {
                MenuBlock.Dispose();
                MenuBlock = null;
            }

            if (MenuContainer != null)
            {
                MenuContainer.Dispose();
                MenuContainer = null;
            }

            if (MenuIcon != null)
            {
                MenuIcon.Dispose();
                MenuIcon = null;
            }

            if (MenuLayer != null)
            {
                MenuLayer.Dispose();
                MenuLayer = null;
            }

            if (MenuReport != null)
            {
                MenuReport.Dispose();
                MenuReport = null;
            }

            if (Name != null)
            {
                Name.Dispose();
                Name = null;
            }

            if (NavigationSpacer != null)
            {
                NavigationSpacer.Dispose();
                NavigationSpacer = null;
            }

            if (NextButton != null)
            {
                NextButton.Dispose();
                NextButton = null;
            }

            if (PercentProgress != null)
            {
                PercentProgress.Dispose();
                PercentProgress = null;
            }

            if (PreviousButton != null)
            {
                PreviousButton.Dispose();
                PreviousButton = null;
            }

            if (ProfileImageContainer != null)
            {
                ProfileImageContainer.Dispose();
                ProfileImageContainer = null;
            }

            if (ProfileImageScroll != null)
            {
                ProfileImageScroll.Dispose();
                ProfileImageScroll = null;
            }

            if (ProfileViewDescription != null)
            {
                ProfileViewDescription.Dispose();
                ProfileViewDescription = null;
            }

            if (ProfileViewMap != null)
            {
                ProfileViewMap.Dispose();
                ProfileViewMap = null;
            }

            if (ProfileViewScroll != null)
            {
                ProfileViewScroll.Dispose();
                ProfileViewScroll = null;
            }

            if (RegisterDate != null)
            {
                RegisterDate.Dispose();
                RegisterDate = null;
            }

            if (ResponseRate != null)
            {
                ResponseRate.Dispose();
                ResponseRate = null;
            }

            if (RippleImageNext != null)
            {
                RippleImageNext.Dispose();
                RippleImageNext = null;
            }

            if (RippleImagePrev != null)
            {
                RippleImagePrev.Dispose();
                RippleImagePrev = null;
            }

            if (RippleProfileView != null)
            {
                RippleProfileView.Dispose();
                RippleProfileView = null;
            }

            if (RoundBottom != null)
            {
                RoundBottom.Dispose();
                RoundBottom = null;
            }

            if (ScrollBottomConstraint != null)
            {
                ScrollBottomConstraint.Dispose();
                ScrollBottomConstraint = null;
            }

            if (SendLocation != null)
            {
                SendLocation.Dispose();
                SendLocation = null;
            }

            if (Snackbar != null)
            {
                Snackbar.Dispose();
                Snackbar = null;
            }

            if (SnackBottomConstraint != null)
            {
                SnackBottomConstraint.Dispose();
                SnackBottomConstraint = null;
            }

            if (SnackTopConstraint != null)
            {
                SnackTopConstraint.Dispose();
                SnackTopConstraint = null;
            }

            if (Username != null)
            {
                Username.Dispose();
                Username = null;
            }

            if (ViewportConstraint != null)
            {
                ViewportConstraint.Dispose();
                ViewportConstraint = null;
            }
        }