public static ValueTask <int> GetTimezoneOffset() { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <int>( "BWHJsFunctions.GetTimezoneOffset")); }
public static ValueTask <long> GetDateMilliseconds() { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <long>( "BWHJsFunctions.GetDateMilliseconds")); }
public static ValueTask <bool> LogWithTime(string message) { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <bool>( "BWHJsFunctions.logWithTime", message)); }
public static ValueTask <bool> SetOnOrOff(bool OnOrOff) { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <bool>( "BWHJsFunctions.setOnOrOff", OnOrOff)); }
public static ValueTask <bool> Print() { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <bool>( "BWHJsFunctions.Print")); }
public static ValueTask <string> Prompt(string message) { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <string>( "BWHJsFunctions.showPrompt", message)); }
public static void Add(string Par_Name, MethodBase Par_Method, string Par_Description = "NA") { if (!DevelopmentMode) { return; } TimeTask t = new TimeTask { ID = list.Count + 1, Name = Par_Name, Description = Par_Description, Method = BWHelperFunctions.getMethodName(Par_Method), StartDate = DateTime.Now, }; list.Add(t); if (LogAllAddition) { BWHJsInterop.JsLog("added new TimeAnalyzer item - " + t.ID + " " + t.Name + " " + t.Description + " " + t.Method + " " + t.StartDate.ToString("HH:mm:ss.fff")); } }
public static ValueTask <bool> Clear() { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <bool>("BWHJsFunctions.ClearLocalStorage")); }
public static ValueTask <bool> RemoveItem(string key) { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <bool>( "BWHJsFunctions.RemoveItemLocalStorage", key)); }
public static ValueTask <double> GetElementActualTop(string elementID) { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <double>( "BWHJsFunctions.GetElementActualTop", elementID)); }
public static ValueTask SetFocus(string id) { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeVoidAsync( "BWHJsFunctions.SetFocus", id)); }
public static ValueTask <double> GetWindowHeight() { BWHelperFunctions.CheckHasJsRuntime(); return(BWHWindowHelper.jsRuntime.InvokeAsync <double>( "BWHJsFunctions.GetWindowHeight")); }
public static void SetElementHeight(string elementID, int h) { BWHelperFunctions.CheckHasJsRuntime(); BWHWindowHelper.jsRuntime.InvokeVoidAsync( "BWHJsFunctions.SetElementHeight", elementID, h); }
public static void SetElementWidth(string elementID, int w) { BWHelperFunctions.CheckHasJsRuntime(); BWHWindowHelper.jsRuntime.InvokeVoidAsync( "BWHJsFunctions.SetElementWidth", elementID, w); }
public static void ClearConsole() { BWHelperFunctions.CheckHasJsRuntime(); BWHWindowHelper.jsRuntime.InvokeVoidAsync( "BWHJsFunctions.ClearConsole"); }