示例#1
0
        public Monaco()
        {
            Address = $"file:///{Environment.CurrentDirectory.Replace("\\", "/")}/bin/Monaco.html";

            LoadingStateChanged += (sender, args) =>
            {
                if (args.IsLoading)
                {
                    return;
                }

                MonacoLoaded = true;
                MonacoReady?.Invoke();
            };
        }
示例#2
0
        public Monaco()
        {
            Opacity = 0;
            Address = $"file:///{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location).Replace("\\", "/")}/Monaco.html";

            LoadingStateChanged += (sender, args) =>
            {
                if (args.IsLoading)
                {
                    return;
                }

                MonacoLoaded = true;
                MonacoReady?.Invoke();
            };
        }