Код: Выделить всё
private void assignTasksAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
{
IObjectSpace objectSpace = View.ObjectSpace;
mamüller mainitem = (mamüller)View.CurrentObject;
string itemid = mainitem.ID.ToString();
IList tasks = objectSpace.GetObjects(typeof(LG_124_ITEMSUBS), CriteriaOperator.Parse(@"[MAINITEMREF] = "+itemid+" ", TaskStatus.Running));
foreach (LG_124_ITEMSUBS task in tasks)
{
//Get altMalzemeler Matching to ID'S in ForEach
string itemid2 = task.SUBITEMREF.ToString();
IList tasks2 = objectSpace.GetObjects(typeof(altMamüller), CriteriaOperator.Parse(@"[ID] = " + itemid2 +" ", TaskStatus.Running));
if (tasks2 == null) {
MessageBox.Show("No Items,Please Add Them!");
return;
}
if (tasks2 != null)
{
foreach (altMamüller item in tasks2)
{
subitems.Add(item);
}}}
//DONE UNTIL HERE
//Only show "subitems"
e.View = Application.CreateListView(objectSpace, typeof(altMamüller), true);
}
Подробнее здесь: https://stackoverflow.com/questions/788 ... e-viewcont
Мобильная версия