Esempio n. 1
0
        /// <summary>
        /// Creates a new instance of <see cref="ConnectionDialog">ConnectionDialog</see> dialog.
        /// </summary>
        public ConnectionDialog()
        {
            InitializeComponent();

            _uilink = null;
            _propertyManagerCache = new Hashtable();
            _startingLinkID       = 0;

            _shouldBeSaved = false;

            _elementSetViewer = new ElementSetViewer();
        }
Esempio n. 2
0
		/// <summary>
		/// Creates a new instance of <see cref="ModelDialog">ModelDialog</see> dialog.
		/// </summary>
		public ModelDialog()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
		
			//
			// TODO: Add any constructor code after InitializeComponent call
			//

			_elementSetViewer = new ElementSetViewer();
		}
Esempio n. 3
0
        /// <summary>
        /// Creates a new instance of <see cref="ModelDialog">ModelDialog</see> dialog.
        /// </summary>
        public ModelDialog()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            _elementSetViewer = new ElementSetViewer();
        }
Esempio n. 4
0
        /// <summary>
        /// Creates a new instance of <see cref="ModelDialog">ModelDialog</see> dialog.
        /// </summary>
        public ModelDialog()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            _elementSetViewer = new ElementSetViewer();

            _treeOptionsSources.IsSource = true;
            _treeOptionsTargets.IsTarget = true;
        }
Esempio n. 5
0
        public ConnectionDialog(UIConnection connection)
        {
            InitializeComponent();

            currentLink = new Link();

            this.connection = connection;

            this.Text = connection.SourceModel.LinkableComponent.Caption + " => " + connection.TargetModel.LinkableComponent.Caption;

            elementSetViewer = new ElementSetViewer();

            updateTargetsTreeView();
            updateSourcesTreeView();

            listBoxConnections.DataSource = connection.Links;
        }
        /// <summary>
        /// Creates a new instance of <see cref="ConnectionDialog">ConnectionDialog</see> dialog.
        /// </summary>
        public ConnectionDialog(List <UIModel> models)
        {
            _models = models;

            InitializeComponent();

            _uilink = null;
            _propertyManagerCache = new Hashtable();

            _shouldBeSaved = false;

            _elementSetViewer = new ElementSetViewer();

            _treeOptionsSources.IsSource      = true;
            _treeOptionsSources.ShowCheckboxs = true;

            _treeOptionsTargets.IsTarget      = true;
            _treeOptionsTargets.ShowCheckboxs = true;

            _tooltips = new ToolTip();
            _tooltips.AutoPopDelay = 5000;
            _tooltips.InitialDelay = 1000;
            _tooltips.ReshowDelay  = 500;
            _tooltips.ShowAlways   = true;
            _tooltips.IsBalloon    = true;
            _tooltips.ToolTipIcon  = ToolTipIcon.Info;

            string active = "\r\nOnly active when both source and target items are ticked";

            _tooltips.SetToolTip(btnLinkAdd, "Create a new link from ticked source and target" + active);
            _tooltips.SetToolTip(btnLinkRemove, "Remove a link\r\nOnly active when a link is selected");

            _tooltips.SetToolTip(btnViewer, "View spatial representation of source and target" + active);

            _tooltips.SetToolTip(btnAddSources, "Add additional sources from 'Source Model' or '3rd party dll'" + active);
            _tooltips.SetToolTip(btnArgEdit, "Edit adapted source arguments\r\nOnly active when an adapted source is ticked");
        }
		/// <summary>
		/// Creates a new instance of <see cref="ConnectionDialog">ConnectionDialog</see> dialog.
		/// </summary>
		public ConnectionDialog()
		{
			InitializeComponent();

			_uilink = null;
			_propertyManagerCache = new Hashtable();
			_startingLinkID = 0;

			_shouldBeSaved = false;

			_elementSetViewer = new ElementSetViewer();
		}