Example #1
0
        internal ExecuteQuery InitializePane()
        {
            try
            {
                var gotPane = GetPane();
                if (gotPane != null)
                {
                    _customTaskPane = gotPane;

                    return(_customTaskPane.Control as ExecuteQuery);
                }

                var executeQueryControl = new ExecuteQuery();
                executeQueryControl.ExecuteCypher             += ExecuteCypher;
                executeQueryControl.ConnectDatabase           += ConnectDatabase;
                executeQueryControl.CreateNodes               += CreateNodes;
                executeQueryControl.ExecuteSelection          += ExecuteSelection;
                executeQueryControl.CreateRelationships       += CreateRelationships;
                executeQueryControl.LoadButtonEventHandler    += LoadAllNodes;
                executeQueryControl.SyncAllButtonEventHandler += SyncAllNodes;
                executeQueryControl.UpdateButtonEventHandler  += UpdateAllNodes;


                _customTaskPane = CustomTaskPanes.Add(executeQueryControl, "Execute Query");

                _customTaskPane.Visible = true;
                return(executeQueryControl);
            }
            catch
            {
                return(null);
            }
        }
Example #2
0
        internal ExecuteQuery InitializePane()
        {
            try
            {
                var gotPane = GetPane();
                if (gotPane != null)
                {
                    _customTaskPane = gotPane;

                    return(_customTaskPane.Control as ExecuteQuery);
                }

                var executeQueryControl = new ExecuteQuery();
                executeQueryControl.ExecuteCypher    += ExecuteCypher;
                executeQueryControl.ConnectDatabase  += ConnectDatabase;
                executeQueryControl.CreateNodes      += CreateNodes;
                executeQueryControl.ExecuteSelection += ExecuteSelection;

                _customTaskPane = CustomTaskPanes.Add(executeQueryControl, "Execute Query");

                _customTaskPane.Visible = true;
                return(executeQueryControl);
            }
            catch
            {
                return(null);
            }
        }