private void workloglistcontrol_OnMouseDoubleClick(WorkLog obj) { WorkLogEditDialog logedit = new WorkLogEditDialog(); logedit.DataContext = obj; logedit.UpdateWorkLog += () => { QueryWorkLog(queryCondition); }; logedit.ShowDialog(); }
private void btnLogAdd_Click(object sender, RoutedEventArgs e) { WorkLogEditDialog logadd = new WorkLogEditDialog(); logadd.DataContext = new WorkLog() { ActivityGuid = activityguid, Submitter = CO_IA.Client.RiasPortal.Current.UserSetting.UserName, Worker = CO_IA.Client.RiasPortal.Current.UserSetting.UserName, Title = DateTime.Today.Date.ToString("D") + "工作日志" }; logadd.UpdateWorkLog += () => { QueryWorkLog(queryCondition); }; logadd.ShowDialog(); }