--- a/ui/wpf/UIcore/TextArea.cs Sun Jan 22 11:48:50 2017 +0100 +++ b/ui/wpf/UIcore/TextArea.cs Sun Jan 22 17:23:20 2017 +0100 @@ -33,27 +33,17 @@ container.Add(this, fill); } - public static TextArea CreateTextArea(Container container, String text) - { - return Application.GetInstance().Exec<TextArea>(() => new TextArea(container, text, true)); - } - - public static TextArea CreateTextField(Container container, String text) - { - return Application.GetInstance().Exec<TextArea>(() => new TextArea(container, text, false)); - } - // ------------------ UiText methods ------------------ public void SetText(String str) { - Application.GetInstance().Exec(() => Text = str); + Text = str; } public String GetText() { - return Application.GetInstance().Exec<String>(() => Text); + return Text; } public String GetSubString(int begin, int end) @@ -68,7 +58,7 @@ public int Position() { - return Application.GetInstance().Exec<int>(() => CaretIndex); + return CaretIndex; } public int Selection() @@ -78,7 +68,7 @@ public int Length() { - return Application.GetInstance().Exec<int>(() => Text.Length); + return Text.Length; } public void Remove(int begin, int end)