//private string _longText;
        //public string LongText
        //{
        //    get { return _longText; }
        //    set
        //    {
        //        _longText = value;
        //        OnPropertyChanged();
        //    }
        //}

        public Sclezing GetPanelType()
        {
            var newType = new Sclezing();

            //newType.LongName = LongText;
            newType.Ml     = ML;
            newType.Prcent = Persent;
            newType.Str    = ShortText;
            bool xtestx = false;

            foreach (var x in SclezingCommentList)
            {
                if (x == SclezingVeshestvo)
                {
                    xtestx = true;
                    break;
                }
            }
            if (!xtestx)
            {
                if (!string.IsNullOrWhiteSpace(SclezingVeshestvo))
                {
                    var bff = new Veshestvo();
                    bff.Str = SclezingVeshestvo;
                    Data.Veshestvo.Add(bff);
                    Data.Complete();
                }
            }

            newType.Veshestvo = SclezingVeshestvo;

            return(newType);
        }
Exemple #2
0
 public SclerozListDataSource(Sclezing Recomendations)
 {
     IsVisibleTotal = true;
     this.Data      = Recomendations;
     IsChecked      = false;
 }