/** * Removes first occurance of a listener for callbacks. * @param listener listener for callbacks * @return true if the listener was found */ public static bool removeListener(IGlpkTerminalListener listener) { if (listeners.Contains(listener)) { listeners.Remove(listener); return true; } else { return false; } }
/** * Removes first occurance of a listener for callbacks. * @param listener listener for callbacks * @return true if the listener was found */ public static bool removeListener(IGlpkTerminalListener listener) { if (listeners.Value.Contains(listener)) { listeners.Value.Remove(listener); return(true); } else { return(false); } }
/** * Adds a listener for callbacks. * @param listener listener for callbacks */ public static void addListener(IGlpkTerminalListener listener) { GLPK.glp_term_hook(null, null); listeners.Value.AddLast(listener); }
/** * Adds a listener for callbacks. * @param listener listener for callbacks */ public static void addListener(IGlpkTerminalListener listener) { GLPK.glp_term_hook(null, null); listeners.AddLast(listener); }