//public DataGrid ActionDataGrid //{ // get // { // return getDataGrid(); // } //} //private DataGrid getDataGrid() //{ // DataGrid dg = new DataGrid(); // dg.DataContext = new NewAction(); // return dg; //} //public ICommand UpdateParentWindowActionGrid //{ // get // { // return new DelegateCommand(() => { // new NewAction(); // }); // } //} public void SaveActionUpdateParentWindowActionGrid() { BrienzAction newAction = new BrienzAction(); newAction.ActionContent = this.DocumentXaml; newAction.EndTime = this.EndTime; newAction.FromResource = this.FromResource; newAction.IsAllDayEvent = this.IsAllDayEvent; newAction.Location = this.Location; newAction.Priority = this.Priority.Content as string; newAction.StartTime = this.StartTime; newAction.Subject = this.Subject; access.SaveAction(newAction); actionList.Add(new ActionStructure { //ActionID = newAction.ActionID, Subject = newAction.Subject, EndTime = newAction.EndTime ?? DateTime.Now, FromResource = newAction.FromResource, IsAllDayEvent = newAction.IsAllDayEvent ?? false, Location = newAction.Location, Priority = newAction.Priority, DocumentXaml = newAction.ActionContent, StartTime = newAction.StartTime ?? DateTime.Now }); }