private void next_step(TableSteps ts) { if (ts.nextStep is null) { return; } this.TableStep = ts.nextStep; }
private void prev_step() { if (TableStep.actTable.stufe == 0) { return; } TableSteps ts = this.TableStep; this.TableStep = this.TableStep.previousStep; this.TableStep.nextStep = ts; }
private void HomeButtonAction(object obj) { if (ParentElement.name.Equals("Wellcome!")) { return; } Table mainTable = masterController.hilfer.tables.Find(t => t.stufe == 0); TableSteps tableStep = new TableSteps(); tableStep.previousStep = TableStep; tableStep.actTable = mainTable; TableStep.nextStep = tableStep; next_step(TableStep); ParentElement = null; generateListViewNames(mainTable); }
private void EntityUnfold(string obj) { ParentElement = masterController.elementController.findElement(obj); Table thistable = masterController.elementController.subTable(ParentElement); if (thistable is null) { thistable = masterController.elementController.preRelation(ParentElement).table; generateListViewNames(thistable); return; } generateListViewNames(thistable); TableSteps ts = new TableSteps(); ts.actTable = thistable; ts.previousStep = TableStep; TableStep.nextStep = ts; next_step(TableStep); //due to the main table is changed to tablestep, this could be circle }