Esempio n. 1
0
 private void next_step(TableSteps ts)
 {
     if (ts.nextStep is null)
     {
         return;
     }
     this.TableStep = ts.nextStep;
 }
Esempio n. 2
0
        private void prev_step()
        {
            if (TableStep.actTable.stufe == 0)
            {
                return;
            }
            TableSteps ts = this.TableStep;

            this.TableStep          = this.TableStep.previousStep;
            this.TableStep.nextStep = ts;
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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
        }