public void SaveOption()
        {
            if (CustomOrNormal == true)
            {
                if (Job != null && Job.Id != 0)
                {
                    if (CheckClientEntries() == true)
                    {
                        if (InfoBridge.PickerChecker(Job.Option) == false)
                        {
                            Job.PricePer = "1";    // TODO MAKE IT A BINDED SET MAX LENGTH OF 1!!!!!
                            string temp = (Convert.ToDouble(Job.Size) + Convert.ToDouble(Job.PricePer) - 1).ToString();
                            Job.Quantity = temp;
                            string temp2 = (InfoBridge.GetPrice(InfoBridge.OptionStringToObject(Job.Option), Convert.ToDouble(Job.Quantity))).ToString();
                            Job.Total = temp2;

                            database.Update(Job);
                        }
                        else
                        {
                            database.Update(Job);
                        }
                        navigation.PopAsync();
                    }
                }
            }


            else
            {
                lock (collisionLock)

                    if (Job != null && Job.Id != 0)
                    {
                        if (CheckClientEntries() == true)
                        {
                            database.Update(Job);
                            navigation.PopAsync();
                        }
                    }
            }
        }
        public void OkOption()
        {
            ErrorCleanup();

            if (CheckOptionClientPickerEntries() == true)
            {
                ItIsVisible = false;
                jobInfo     = new JobName
                {
                    CustomOption     = false,
                    ClientId         = Client.Id,
                    Option           = NewJobName.Option,
                    NotCustomVisible = true
                };
                WidthVisible      = InfoBridge.PickerChecker(NewJobName.Option);
                NewJobName.Option = string.Empty;

                NewJobName.Size     = string.Empty;
                NewJobName.PricePer = string.Empty;
                NewJobName.Quantity = string.Empty;
                SecondEntry         = true;
            }
        }
        public bool CheckWandLEntries()
        {
            //Size     = Length
            //Priceper = Width

            bool allowAdd = true;

            //Length
            if ((NewJobName.Size == "") || (NewJobName.Size == ".") || (NewJobName.Size == "-.") || (NewJobName.Size == "-"))
            {
                ErrorMsgLength     = Constants.err_NoNum;
                ErrorLengthVisible = true;
                allowAdd           = false;
            }
            else
            if ((Convert.ToDouble(NewJobName.Size) > 10000) || (Convert.ToDouble(NewJobName.Size) < -20))
            {
                ErrorMsgLength     = Constants.err_NumOutOfRange;
                ErrorLengthVisible = true;
                allowAdd           = false;
            }
            else
            {
                ErrorLengthVisible = false;
            }


            //Width
            if (((NewJobName.PricePer == "") || (NewJobName.PricePer == ".") || (NewJobName.PricePer == "-.")) && InfoBridge.PickerChecker(jobInfo.Option) == true)
            {
                ErrorMsgWidth     = Constants.err_NoNum;
                ErrorWidthVisible = true;
                allowAdd          = false;
            }
            else
            if (NewJobName.PricePer != string.Empty)
            {
                if ((Convert.ToDouble(NewJobName.PricePer) > 10000) || (Convert.ToDouble(NewJobName.PricePer) < -20))
                {
                    ErrorMsgWidth     = Constants.err_NumOutOfRange;
                    ErrorWidthVisible = true;
                    allowAdd          = false;
                }
                else
                {
                    ErrorWidthVisible = false;
                }
            }
            else
            {
                ErrorWidthVisible = false;
            }

            return(allowAdd);
        }