Esempio n. 1
0
        public EditTagsPage(RecordPage parent, ListItem item)
        {
            InitializeComponent();
            _parent = parent;
            _item   = item;

            var realm = Realm.GetInstance();

            _activity = realm.Find <Activity>(item.Id);

            InitializeListView();
            InitializeEntry();
        }
Esempio n. 2
0
        public EditSubjectPage(RecordPage parent, ListItem item)
        {
            InitializeComponent();
            _parent = parent;
            _item   = item;

            var realm = Realm.GetInstance();

            _activity = realm.Find <Activity>(item.Id);

            labelHeader.Text = _parent.MakeDateTimeText(_activity) + " 你干什么了?";
            if (!string.IsNullOrEmpty(item.Text))
            {
                entrySubject.Text = _activity.Subject;
            }
        }