Example #1
0
        public ErrorTooltip()
        {
            InitializeComponent();

            if (instance != null)
                throw new Exception("more than once instance of ErrorTooltip... i thought we agreed on one?");

            instance = this;
            errors = new Dictionary<Token, string>();
        }
Example #2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CodeBox.Core;component/Main.xaml", System.UriKind.Relative));
     this.ScrollViewerRoot = ((System.Windows.Controls.ScrollViewer)(this.FindName("ScrollViewerRoot")));
     this.CanvasRoot = ((System.Windows.Controls.Canvas)(this.FindName("CanvasRoot")));
     this.GridRoot = ((System.Windows.Controls.Grid)(this.FindName("GridRoot")));
     this.textBox = ((System.Windows.Controls.TextBox)(this.FindName("textBox")));
     this.numberPanelBorder = ((System.Windows.Controls.Border)(this.FindName("numberPanelBorder")));
     this.numberPanel = ((System.Windows.Controls.StackPanel)(this.FindName("numberPanel")));
     this.paper = ((CodeBox.Core.Elements.Paper)(this.FindName("paper")));
     this.ErrorTooltip = ((CodeBox.Core.Services.SyntaxValidator.ErrorTooltip)(this.FindName("ErrorTooltip")));
 }