void UpdateView() { var text = textBuffer.GetText(); if (!string.IsNullOrEmpty(text)) { builder.Create(text, SetChild, error => { previewControl.Content = new Label { Text = error }; }); } }
void UpdateView() { var text = textBuffer.GetText(); if (!string.IsNullOrEmpty(text)) { builder.Create(text, SetChild, error => { host.Child = new Label { Text = error }.ToNative(true); }); } }
public virtual void Update(string code) { if (interfaceBuilder == null) { return; } try { interfaceBuilder.Create(code, MainAssembly, References, ControlCreatedInternal, ErrorInternal); } catch (Exception ex) { ErrorInternal(ex); } }
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); } } }