public override void Delete_Element(Noda elements) { for (int i = 0; i < up_connection.Count; i++) { if (elements == up_connection[i]) { up_connection.RemoveAt(i); return; } } for (int i = 0; i < exits.Length; i++) { for (int j = 0; j < exits[i].Count; j++) { if (elements == exits[i][j]) { exits[i].RemoveAt(j); return; } } } }
public override void Delete_Element(Noda elements) { base.Delete_Element(elements); for (int i = 0; i < up_connection.Count; i++) { if (elements == up_connection[i]) { up_connection.RemoveAt(i); return; } } for (int i = 0; i < if_Operators.Count; i++) { if (elements == if_Operators[i]) { if_Operators.RemoveAt(i); return; } } }
public Noda(External_module.Noda data, object e) { information = data; Visul = e; }
public static void new_Conect(Control first, Control second) { External_module.Noda first_obj = null, second_obj = null; for (int i = 0; i < nods.Count; i++) { if (nods[i].Visul == first.Parent) { first_obj = nods[i].information; } if (nods[i].Visul == second) { second_obj = nods[i].information; } } if (first_obj.isDowncoonection && (second_obj.isUpcoonection || first_obj.type == "if")) { if (first_obj.type != "if" && second_obj.type != "if") { (first_obj as External_module.Working_data).down_contacted = second_obj; if (second_obj.type == "Result") { (second_obj as External_module.Result).up_Conected = first_obj as External_module.Working_data; } else { (second_obj as External_module.Operators).up_Conected = first_obj as External_module.Working_data; } } else { if (first_obj.type == "if") { for (byte i = 0; i < (first_obj as External_module.if_operator).names_of_exits.Length; i++) { if ((first_obj as External_module.if_operator).names_of_exits[i] == first.Text) { (first_obj as External_module.if_operator).Down_connection(i, second_obj); } } switch (second_obj.type) { case "if": { (second_obj as External_module.if_operator).if_Operators.Add(first_obj as External_module.if_operator); } break; case "Result": { (second_obj as External_module.Result).If_operator_conected(first_obj as External_module.if_operator); } break; default: { (second_obj as External_module.Operators).If_operator_conected(first_obj as External_module.if_operator); } break; } } else { (second_obj as External_module.if_operator).Up_connected(first_obj as External_module.Working_data); if (first_obj.type == "Data") { (first_obj as External_module.Data).down_contacted = second_obj; } else { (first_obj as External_module.Operators).down_contacted = second_obj; } } } } }
public Noda_C(Noda data, object e) { information = data; Visul = e; }
public static bool Loader(Noda noda) { return(noda.type == "if" ? true : false); }
public abstract void Delete_Element(Noda elements);