/// <summary> /// Initializes a new instance of WPF window /// Can be called from any reponse or web [LHue.MyCustomClass.Test_InitWPFWindow] /// </summary> /// <returns></returns> public static string Test_InitWPFWindow() { string retVal = string.Empty; if (myCustomWindow == null) { // Creates window instance Configuration c = new Configuration(); c.Load(); myCustomWindow = new MyCustomWindow(); } return(retVal); }
/// <summary> /// Closes the window /// Can be called from any reponse or web [LHue.MyCustomClass.Test_FormClose] /// </summary> /// <returns></returns> public static string Test_FormClose() { string retVal = string.Empty; try { myCustomWindow.FormTest_Close(); } catch (Exception error) { //Debugger.Break(); Console.WriteLine(error.Message); } finally { myCustomWindow = null; } return(retVal); }