/// <summary> /// Shows specified dialogue hardware-independent. The technology implementation will show the /// dialogue based on the type of provided <c>dialogueData</c>. /// Non-modal: This function wil return immideately after initially displaying the dialogue. /// </summary> /// <param name="dialogueData"></param> /// <returns>If the dialogue was end with "OK" or similar success.</returns> public virtual void StartFlyover(AnyUiDialogueDataBase dialogueData) { }
/// <summary> /// Shows specified dialogue hardware-independent. The technology implementation will show the /// dialogue based on the type of provided <c>dialogueData</c>. /// Modal dialogue: this function will block, until user ends dialogue. /// </summary> /// <param name="dialogueData"></param> /// <returns>If the dialogue was end with "OK" or similar success.</returns> public override bool StartFlyoverModal(AnyUiDialogueDataBase dialogueData) { // access if (dialogueData == null) { return(false); } // make sure to reset dialogueData.Result = false; AnyUiHtmlEventSession found = null; lock (htmlDotnetLock) { foreach (var s in sessions) { if (_bi.sessionNumber == s.sessionNumber) { found = s; break; } } } if (found != null) { found.htmlEventInputs.Clear(); found.htmlEventType = "StartFlyoverModal"; found.htmlEventInputs.Add(dialogueData); found.htmlEventIn = true; Program.signalNewData(2, found.sessionNumber); // build new tree while (!found.htmlEventOut) { ; } if (dialogueData is AnyUiDialogueDataTextEditor ddte) { if (found.htmlEventOutputs.Count == 2) { ddte.Text = (string)found.htmlEventOutputs[0]; ddte.Result = (bool)found.htmlEventOutputs[1]; } } if (dialogueData is AnyUiDialogueDataSelectFromList ddsfl) { ddsfl.Result = false; if (found.htmlEventOutputs.Count == 1) { int iDdsfl = (int)found.htmlEventOutputs[0]; ddsfl.Result = true; ddsfl.ResultIndex = iDdsfl; ddsfl.ResultItem = ddsfl.ListOfItems[iDdsfl]; } } found.htmlEventType = ""; found.htmlEventOutputs.Clear(); found.htmlEventOut = false; found.htmlEventInputs.Clear(); found.htmlDotnetEventIn = false; } // result return(dialogueData.Result); }
/// <summary> /// Shows specified dialogue hardware-independent. The technology implementation will show the /// dialogue based on the type of provided <c>dialogueData</c>. /// Modal dialogue: this function will block, until user ends dialogue. /// </summary> /// <param name="dialogueData"></param> /// <returns>If the dialogue was end with "OK" or similar success.</returns> public virtual bool StartFlyoverModal(AnyUiDialogueDataBase dialogueData) { return(false); }