Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public virtual void ClearClass(View view)
 {
     // Remove existing class, if any
     if (view != null)
     {
         HostPane.Remove(view);
         HostPane.Clear();
     }
 }
Exemplo n.º 3
0
        public virtual void RefreshScreen()
        {
            ErrorView = null;
            STClient.ResetData();

            Top.Clear();
            HostPane.Clear();
            ClassListView.Clear();
            LeftPane.Clear();
            SettingsPane.Clear();
            Setup();

            Application.Refresh();
        }