Esempio n. 1
0
        public static void ShowExceptionCaughtDialog()
        {
            var ops = session.EvaluationOptions.Clone();

            ops.MemberEvaluationTimeout = 0;
            ops.EvaluationTimeout       = 0;
            ops.EllipsizeStrings        = false;

            var val = CurrentFrame.GetException(ops);

            if (val != null)
            {
                HideExceptionCaughtDialog();
                exceptionDialog = new ExceptionCaughtMessage(val, CurrentFrame.SourceLocation.FileName, CurrentFrame.SourceLocation.Line, CurrentFrame.SourceLocation.Column);
                if (CurrentFrame.SourceLocation.FileName != null)
                {
                    exceptionDialog.ShowButton();
                }
                else
                {
                    exceptionDialog.ShowDialog();
                }
                exceptionDialog.Closed += (o, args) => exceptionDialog = null;
            }
        }
Esempio n. 2
0
        public override Widget CreateWidget()
        {
            Gtk.EventBox box = new EventBox();
            box.VisibleWindow = false;
            var icon = Gdk.Pixbuf.LoadFromResource("lightning.png");

            box.Add(new Gtk.Image(icon));
            box.ButtonPressEvent += (o, e) => dlg.ShowButton();
            PopoverWidget eb = new PopoverWidget();

            eb.Theme.Padding   = 2;
            eb.ShowArrow       = true;
            eb.EnableAnimation = true;
            eb.PopupPosition   = PopupPosition.Left;
            eb.ContentBox.Add(box);
            eb.ShowAll();
            return(eb);
        }
Esempio n. 3
0
        public override Control CreateWidget()
        {
            var box = new EventBox();

            box.VisibleWindow = false;
            var icon = Xwt.Drawing.Image.FromResource("lightning-16.png");

            box.Add(new Xwt.ImageView(icon).ToGtkWidget());
            box.ButtonPressEvent += (o, e) => dlg.ShowButton();
            var eb = new PopoverWidget();

            eb.Theme.Padding   = 2;
            eb.ShowArrow       = true;
            eb.EnableAnimation = true;
            eb.PopupPosition   = PopupPosition.Left;
            eb.ContentBox.Add(box);
            eb.ShowAll();
            return(eb);
        }
Esempio n. 4
0
		public static void ShowExceptionCaughtDialog ()
		{
			var ops = session.EvaluationOptions.Clone ();
			ops.MemberEvaluationTimeout = 0;
			ops.EvaluationTimeout = 0;
			ops.EllipsizeStrings = false;
			
			var val = CurrentFrame.GetException (ops);
			if (val != null) {
				HideExceptionCaughtDialog ();
				exceptionDialog = new ExceptionCaughtMessage (val, CurrentFrame.SourceLocation.FileName, CurrentFrame.SourceLocation.Line, CurrentFrame.SourceLocation.Column);
				exceptionDialog.ShowButton ();
				exceptionDialog.Closed += (o, args) => exceptionDialog = null;
			}
		}