public virtual View CreateJsonView(string json) { var view = new TextView() { X = 0, Y = 0, Width = Dim.Fill(), Height = Dim.Fill() }; string formattedJson = json.Replace("\r", ""); view.Text = ustring.Make(formattedJson); view.ReadOnly = true; // Set the colorscheme to make it stand out view.ColorScheme = Colors.Dialog; // Add HostPane.Add(view); HostPane.LayoutSubviews(); HostPane.Clear(); HostPane.SetNeedsDisplay(); HostPane.Title = "Raw Data"; return(view); }
public virtual void ClearClass(View view) { // Remove existing class, if any if (view != null) { HostPane.Remove(view); HostPane.Clear(); } }
public virtual void RefreshScreen() { ErrorView = null; STClient.ResetData(); Top.Clear(); HostPane.Clear(); ClassListView.Clear(); LeftPane.Clear(); SettingsPane.Clear(); Setup(); Application.Refresh(); }