예제 #1
0
        public void update_datagrid()
        {
            ParserJSON  pj     = new ParserJSON();
            string      result = pj.GetJournal();
            RadixObject ro     = JsonConvert.DeserializeObject <RadixObject>(result);

            JournalGrid.ItemsSource = ro.journal;

            this.Title = DataValue.Position;
        }
예제 #2
0
        private void textBoxName_TextChanged_1(object sender, TextChangedEventArgs e)
        {
            try
            {
                ParserJSON  pj     = new ParserJSON();
                string      result = pj.GetJournal();
                RadixObject ro     = JsonConvert.DeserializeObject <RadixObject>(result);
                JournalGrid.ItemsSource = ro.journal;

                var oc = ro.journal;
                DataValue.TextSearch = textBoxName.Text;
                var filter_col = oc.Where(itemF => itemF.search == textBoxName.Text);

                JournalGrid.ItemsSource = filter_col;

                if (textBoxName.Text == "")
                {
                    update_datagrid();
                }
            }
            catch (Exception ex) { };
        }