private void changeStatus_Execute(object sender, SingleChoiceActionExecuteEventArgs e) { int status = Convert.ToInt16(e.SelectedChoiceActionItem.Data); GoiThau goiThau = View.CurrentObject as GoiThau; goiThau.TinhTrang = (TinhTrangGoiThau)status; View.ObjectSpace.CommitChanges(); View.ObjectSpace.Refresh(); }
private void addGoiThau_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { objspc = Application.CreateObjectSpace(); GoiThau goithau = objspc.CreateObject <GoiThau>(); DuAn DuAn = View.CurrentObject as DuAn; goithau.DuAn = objspc.GetObject <DuAn>(DuAn); DetailView dtview = Application.CreateDetailView(objspc, goithau); e.View = dtview; e.Maximized = true; }