aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Xml/AXmlObjectEventArgs.cs
blob: 27ea041e6e8a2583b97227239f7c9baa4c538c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Linq;

using Tango.Scripting.Editors.Document;

namespace Tango.Scripting.Editors.Xml
{
	/// <summary> Holds event args for event caused by <see cref="AXmlObject"/> </summary>
	public class AXmlObjectEventArgs: EventArgs
	{
		/// <summary> The object that caused the event </summary>
		public AXmlObject Object { get; set; }
	}
}
span class="p">; using System.Windows.Shapes; using Tango.SharedUI; namespace Tango.MachineStudio.Developer.Views { /// <summary> /// Interaction logic for DeveloperView.xaml /// </summary> public partial class MainView : UserControl, IMainView { private bool _loaded; public static MainView Instance { get; set; } public MainView() { InitializeComponent(); Instance = this; Loaded += (x, y) => { if (!_loaded) { _loaded = true; ViewAttached?.Invoke(this, this); } }; } public event EventHandler<IView> ViewAttached; } }