public Controller(string path) { this.mod = new Model(path); subNodesList = mod.GetNodesList(0); prevSubNodesList = new List<Node>(); currentNode = null; }
public Controller(Model mod) { this.mod = mod; subNodesList = mod.GetNodesList(0); prevSubNodesList = new List<Node>(); currentNode = null; }
public CommandCD(Model mod, Controller con) : base("cd", "przechodzenie do kolejnego wezla: cd <nazwa>",1) { this.mod = mod; this.con = con; }
public CommandADD(Model mod, Controller con) : base("add", "dodawanie nowego podwezla: add <nazwa>", 1) { this.mod = mod; this.con = con; }
public CommandPRGS(Model mod, Controller conductor) : base("prgs", "wyswietlanie postępu", 0) { this.mod = mod; this.conductor = conductor; this.progressSum = 0; this.numberOfNodes = 0; }
public CommandDEL(Model mod, Controller con) : base("del", "usuwanie podwezla: del <nazwa>", 1) { this.mod = mod; this.con = con; }
public CommandCS(Model mod, Controller con) : base("cs", "zmiana stanu podwezla: cs <nazwa zmienianego> <uncompleted/completed>", 2) { this.mod = mod; this.con = con; }
public CommandCN(Model mod, Controller con) : base("cn", "zmiana nazwy podwezla: cn <nazwa zmienianego> <nazwa na ktora chcemy zmienic>", 2) { this.mod = mod; this.con = con; }