Exemple #1
0
        void UpdateView()
        {
            var text = textBuffer.GetText();

            if (!string.IsNullOrEmpty(text))
            {
                builder.Create(text, SetChild, error =>
                {
                    previewControl.Content = new Label {
                        Text = error
                    };
                });
            }
        }
Exemple #2
0
        void UpdateView()
        {
            var text = textBuffer.GetText();

            if (!string.IsNullOrEmpty(text))
            {
                builder.Create(text, SetChild, error =>
                {
                    host.Child = new Label {
                        Text = error
                    }.ToNative(true);
                });
            }
        }
Exemple #3
0
        public virtual void Update(string code)
        {
            if (interfaceBuilder == null)
            {
                return;
            }

            try
            {
                interfaceBuilder.Create(code, MainAssembly, References, ControlCreatedInternal, ErrorInternal);
            }
            catch (Exception ex)
            {
                ErrorInternal(ex);
            }
        }
Exemple #4
0
        void Timer_Elapsed(object sender, EventArgs e)
        {
            if (interfaceBuilder == null)
            {
                return;
            }
            timer.Stop();
            var code = getCode();

            if (!string.IsNullOrEmpty(code))
            {
                try
                {
                    interfaceBuilder.Create(code, ctl => FinishProcessing(ctl, null), ex => FinishProcessing(null, ex));
                }
                catch (Exception ex)
                {
                    FinishProcessing(null, ex);
                }
            }
        }