static void ParseArguments(string[] arguments = null) { if (arguments == null) { arguments = Arguments; } for (int i = 0; i < arguments.Length; i++) { string argument = arguments[i]; switch (arguments[i]) { case DISPLAY_ARGUMENT: DisplayRequested?.Invoke(null, EventArgs.Empty); break; case LOAD_ARGUMENT: if (!(i <= arguments.Length - 1 && File.Exists(arguments[++i]))) { continue; } LoadRequested?.Invoke(null, arguments[i]); break; default: { var ext = Path.GetExtension(argument); if (ext == CONTEST_EXTENSION_FILE && File.Exists(argument)) { LoadRequested?.Invoke(null, argument); } break; } } } }
/// <include file="../../docs/Microsoft.Maui.Controls/OpenGLView.xml" path="//Member[@MemberName='Display']/Docs" /> public void Display() => DisplayRequested?.Invoke(this, EventArgs.Empty);
public static void DisplayAdsRequest() { DisplayRequested?.Invoke(null, EventArgs.Empty); }