/// <summary> /// Valida valor ulong, y luego cambia los trabajadores del trabajo seleccionado. /// </summary> /// <param name="path">Path.</param> /// <param name="new_text">New text.</param> override protected void OnEdited(string path, string new_text) { ulong res; if (ulong.TryParse(new_text, out res)) { TrabajoListEntry nodo = (TrabajoListEntry)store.GetNode(new Gtk.TreePath(path)); nodo.Trabajadores = res; } }
/// <summary> /// Valida valor ulong, y luego cambia los trabajadores del trabajo seleccionado. /// </summary> /// <param name="path">Path.</param> /// <param name="new_text">New text.</param> override protected void OnEdited(string path, string new_text) { float res; if (float.TryParse(new_text, out res)) { TrabajoListEntry nodo = (TrabajoListEntry)store.GetNode(new Gtk.TreePath(path)); nodo.Prioridad = res; } }