コード例 #1
0
        private void dateView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DataRowView row      = (DataRowView)e.AddedItems[0];
            DateTime    datetime = (DateTime)row.Row.ItemArray[0];
            PTManager   manager  = (PTManager)this.DataContext;

            processInfoView.ItemsSource = manager.GetProcessInfoTableForDate(datetime).DefaultView;
            Console.WriteLine("Mouse Down");
        }
コード例 #2
0
        public void update()
        {
            PTManager manager = (PTManager)this.DataContext;

            dateView.ItemsSource = manager.GetDateTable().DefaultView;
            if (dateView.SelectedItem != null)
            {
                DateTime datetime = (DateTime)((DataRowView)dateView.SelectedItem).Row.ItemArray[0];
                processInfoView.ItemsSource = manager.GetProcessInfoTableForDate(datetime).DefaultView;
            }
        }