Ejemplo n.º 1
0
        public EqmlpReleaseNote(string created, string revision, string binary_path, string readme_path)
        {
            string EnuDate, FraDate;

            NewsEntry.ParseCreated(created, out EnuDate, out FraDate);
            Created = EnuDate;

            Revision   = revision;
            BinaryPath = binary_path;
            ReadmePath = readme_path;
        }
Ejemplo n.º 2
0
        private void OnNewsReceived(int error, object result)
        {
            if (error == (int)ErrorCodes.Success && result != null)
            {
                List <IDictionary <string, string> > NewsList = (List <IDictionary <string, string> >)result;

                foreach (IDictionary <string, string> Item in NewsList)
                {
                    NewsEntry NewEntry = new NewsEntry(Item["created"], Item["enu_summary"], Item["enu_content"], Item["fra_summary"], Item["fra_content"]);
                    _AllNews.Add(NewEntry);
                }

                NotifyPropertyChanged(nameof(LastNews));
                NotifyPropertyChanged(nameof(ArchiveNews));
            }
        }