Exemplo n.º 1
0
        public void DeleteProjectTask(object sender, EventArgs <Guid> e)
        {
            var timeTracking = DynamicDataServiceContext.GetOrNew("ProjectTask", e.Data);

            DynamicDataServiceContext.DeleteObject("ProjectTask", timeTracking);
            DynamicDataServiceContext.SaveChanges();
            OnShowProjectTask(sender, e);
        }
Exemplo n.º 2
0
        public void DeleteTimeTracking(object sender, EventArgs <Guid> e)
        {
            var timeTracking = DynamicDataServiceContext.GetOrNew("TimeTracking", e.Data);

            DynamicDataServiceContext.DeleteObject("TimeTracking", timeTracking);
            DynamicDataServiceContext.SaveChanges();

            ShowTimeTrackingListView();
        }
Exemplo n.º 3
0
        void View_DeteleNotification(object sender, EventArgs <object> e)
        {
            if (e.Data == null)
            {
                return;
            }
            DynamicDataServiceContext context = new DynamicDataServiceContext();

            context.DeleteObject(_entityName, e.Data);
            context.SaveChanges();
            View.Bind(_entityName);
        }
        public void DeleteTimeTracking(object sender, EventArgs <Guid> e)
        {
            var timeTracking = DynamicDataServiceContext.GetOrNew("TimeTracking", e.Data);

            DynamicDataServiceContext.DeleteObject("TimeTracking", timeTracking);
            DynamicDataServiceContext.SaveChanges();

            ShowTimeTrackingListView();
            if (OnReloadTiming != null)
            {
                OnReloadTiming(this, new EventArgs());
            }
        }
Exemplo n.º 5
0
        public void DeleteProjectIteration(object sender, EventArgs <Guid> e)
        {
            var timeTracking = DynamicDataServiceContext.GetOrNew("ProjectIteration", e.Data);

            DynamicDataServiceContext.DeleteObject("ProjectIteration", timeTracking);
            DynamicDataServiceContext.SaveChanges();
            EventHandler handler = OnRefreshListProjectIteration;

            if (handler != null)
            {
                handler(sender, e);
            }
            OnShowProjectIteration(sender, e);
        }
        public void DeleteNote(object sender, EventArgs <Guid> e)
        {
            var noteEntity = DynamicDataServiceContext.GetOrNew("Note", e.Data);

            DynamicDataServiceContext.DeleteObject("Note", noteEntity);
            DynamicDataServiceContext.SaveChanges();

            string key          = "NoteDetailListView";
            var    noteListView = WorkItem.Items.Get <NoteListView>(key);

            noteListView.DeleteFocusedRow();
            if (OnReloadNote != null)
            {
                OnReloadNote(this, new EventArgs());
            }
        }