예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            OliWorkerContainer oc = new OliWorkerContainer();

            var wis = from x in oc.WorkItem select x;

            listBox1.ItemsSource = wis;
        }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();

            OliWorkerContainer oc = new OliWorkerContainer();

            var wis = from x in oc.WorkItem select x;

            listBox1.ItemsSource = wis;
        }
예제 #3
0
        private void buttonItemInsert_Click(object sender, RoutedEventArgs e)
        {
            WorkItem wi = new WorkItem();
            wi.created = DateTime.Now;
            wi.description = "jepp";

            OliWorkerContainer db = new OliWorkerContainer();
            db.AddToWorkItem(wi);
            db.SaveChanges();
        }
예제 #4
0
        private void buttonItemInsert_Click(object sender, RoutedEventArgs e)
        {
            WorkItem wi = new WorkItem();

            wi.created     = DateTime.Now;
            wi.description = "jepp";

            OliWorkerContainer db = new OliWorkerContainer();

            db.AddToWorkItem(wi);
            db.SaveChanges();
        }