Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((AGDSDatabase.Views.MainWindow)(target));
                return;

            case 2:
                this.MenuNew = ((System.Windows.Controls.MenuItem)(target));

            #line 18 "..\..\..\Views\MainWindow.xaml"
                this.MenuNew.Click += new System.Windows.RoutedEventHandler(this.MenuNew_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.MenuExecute = ((System.Windows.Controls.MenuItem)(target));

            #line 24 "..\..\..\Views\MainWindow.xaml"
                this.MenuExecute.Click += new System.Windows.RoutedEventHandler(this.MenuExecute_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.QueryTBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.ErrorInfo = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.treeView = ((System.Windows.Controls.TreeView)(target));
                return;

            case 7:
                this.Output = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.Graph = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.graphLayout = ((GraphSharp.Controls.GraphLayout)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        private static void OnHighlightTriggered(HighlightTriggeredEventArgs args, GraphLayout <TVertex, TEdge, TGraph> gl)
        {
            if (gl.Graph == null || gl.HighlightAlgorithm == null)
            {
                return;
            }

            if (args.OriginalSource is VertexControl)
            {
                var vc     = (VertexControl)args.OriginalSource;
                var vertex = vc.Vertex as TVertex;
                if (vertex == null || !gl.Graph.ContainsVertex(vertex))
                {
                    return;
                }

                if (args.IsPositiveTrigger)
                {
                    gl.HighlightAlgorithm.OnVertexHighlighting(vertex);
                }
                else
                {
                    gl.HighlightAlgorithm.OnVertexHighlightRemoving(vertex);
                }
            }
            else if (args.OriginalSource is EdgeControl)
            {
                var ec   = (EdgeControl)args.OriginalSource;
                var edge = default(TEdge);
                try
                {
                    edge = (TEdge)ec.Edge;
                }
                catch
                {
                }
                if (Equals(edge, default(TEdge)) || !gl.Graph.ContainsEdge(edge))
                {
                    return;
                }

                if (args.IsPositiveTrigger)
                {
                    gl.HighlightAlgorithm.OnEdgeHighlighting(edge);
                }
                else
                {
                    gl.HighlightAlgorithm.OnEdgeHighlightRemoving(edge);
                }
            }
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((CollegeGraph.GView)(target));
                return;

            case 2:
                this.graphLayout = ((GraphSharp.Controls.GraphLayout)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((TP_TPGO2.ResultWindow)(target));
                return;

            case 2:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.graph_layout = ((GraphSharp.Controls.GraphLayout)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 173 "..\..\TestCompoundLayout.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Relayout_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.layout = ((GraphSharp.Controls.GraphLayout)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 6
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.root = ((GraphSharpTutorial01.Window1)(target));
     return;
     case 2:
     this.graphLayout = ((GraphSharp.Controls.GraphLayout)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((TP_TPGO2.MainWindow)(target));
                return;

            case 2:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:

            #line 44 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 45 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 5:
                this.combo_delete = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:

            #line 47 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 7:

            #line 48 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 8:
                this.combo_from = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.combo_to = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:

            #line 53 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 11:
                this.graph_layout = ((GraphSharp.Controls.GraphLayout)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 3:

            #line 42 "..\..\..\View\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewCommandBinding_Executed);

            #line default
            #line hidden
                return;

            case 4:

            #line 43 "..\..\..\View\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveCommandBinding_Executed);

            #line default
            #line hidden
                return;

            case 5:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 6:
                this.btnNew = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 7:
                this.btnLoad = ((System.Windows.Controls.MenuItem)(target));

            #line 59 "..\..\..\View\MainWindow.xaml"
                this.btnLoad.Click += new System.Windows.RoutedEventHandler(this.btnLoad_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnSave = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 9:
                this.btnSaveAs = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\..\View\MainWindow.xaml"
                this.btnSaveAs.Click += new System.Windows.RoutedEventHandler(this.btnSaveAs_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btnSair = ((System.Windows.Controls.MenuItem)(target));

            #line 68 "..\..\..\View\MainWindow.xaml"
                this.btnSair.Click += new System.Windows.RoutedEventHandler(this.btnExit_click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnMenuTrain = ((System.Windows.Controls.MenuItem)(target));

            #line 75 "..\..\..\View\MainWindow.xaml"
                this.btnMenuTrain.Click += new System.Windows.RoutedEventHandler(this.btnTrain_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnNewTrainingSet = ((System.Windows.Controls.MenuItem)(target));

            #line 78 "..\..\..\View\MainWindow.xaml"
                this.btnNewTrainingSet.Click += new System.Windows.RoutedEventHandler(this.btnNewSetTraining_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.btnSaveTrainingSet = ((System.Windows.Controls.MenuItem)(target));

            #line 80 "..\..\..\View\MainWindow.xaml"
                this.btnSaveTrainingSet.Click += new System.Windows.RoutedEventHandler(this.btnSaveTrainingSet_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.btnLoadTrainingSet = ((System.Windows.Controls.MenuItem)(target));

            #line 82 "..\..\..\View\MainWindow.xaml"
                this.btnLoadTrainingSet.Click += new System.Windows.RoutedEventHandler(this.btnLoadTrainingSet_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnSaveLearn = ((System.Windows.Controls.MenuItem)(target));

            #line 84 "..\..\..\View\MainWindow.xaml"
                this.btnSaveLearn.Click += new System.Windows.RoutedEventHandler(this.btnSaveLearn_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnLoadLearn = ((System.Windows.Controls.MenuItem)(target));

            #line 86 "..\..\..\View\MainWindow.xaml"
                this.btnLoadLearn.Click += new System.Windows.RoutedEventHandler(this.btnLoadLearn_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.btnKohonenSample = ((System.Windows.Controls.MenuItem)(target));

            #line 91 "..\..\..\View\MainWindow.xaml"
                this.btnKohonenSample.Click += new System.Windows.RoutedEventHandler(this.btnKohonenSample_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.btnBackpropagationSample = ((System.Windows.Controls.MenuItem)(target));

            #line 93 "..\..\..\View\MainWindow.xaml"
                this.btnBackpropagationSample.Click += new System.Windows.RoutedEventHandler(this.btnBackpropagationSample_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.btnAbout = ((System.Windows.Controls.MenuItem)(target));

            #line 97 "..\..\..\View\MainWindow.xaml"
                this.btnAbout.Click += new System.Windows.RoutedEventHandler(this.btnSobre_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.UpperPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.UpperPanelBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 22:
                this.labelNetworkType = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.txtLearningRate = ((System.Windows.Controls.TextBox)(target));

            #line 156 "..\..\..\View\MainWindow.xaml"
                this.txtLearningRate.LostFocus += new System.Windows.RoutedEventHandler(this.txtLearningRate_LostFocus);

            #line default
            #line hidden
                return;

            case 24:
                this.lblErrorRate = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.txtErrorRate = ((System.Windows.Controls.TextBox)(target));

            #line 159 "..\..\..\View\MainWindow.xaml"
                this.txtErrorRate.LostFocus += new System.Windows.RoutedEventHandler(this.txtErrorRate_LostFocus);

            #line default
            #line hidden
                return;

            case 26:
                this.lblNeighborhoodRadius = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.txtNeighborhoodRadius = ((System.Windows.Controls.TextBox)(target));

            #line 162 "..\..\..\View\MainWindow.xaml"
                this.txtNeighborhoodRadius.LostFocus += new System.Windows.RoutedEventHandler(this.txtNeighborhoodRadius_LostFocus);

            #line default
            #line hidden
                return;

            case 28:
                this.txtIterationNumber = ((System.Windows.Controls.TextBox)(target));

            #line 165 "..\..\..\View\MainWindow.xaml"
                this.txtIterationNumber.LostFocus += new System.Windows.RoutedEventHandler(this.txtIterationNumber_LostFocus);

            #line default
            #line hidden
                return;

            case 29:
                this.btnNewSet = ((System.Windows.Controls.Button)(target));

            #line 180 "..\..\..\View\MainWindow.xaml"
                this.btnNewSet.Click += new System.Windows.RoutedEventHandler(this.btnNewSetTraining_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.btnLoadSet = ((System.Windows.Controls.Button)(target));

            #line 181 "..\..\..\View\MainWindow.xaml"
                this.btnLoadSet.Click += new System.Windows.RoutedEventHandler(this.btnLoadTrainingSet_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.btnEditSet = ((System.Windows.Controls.Button)(target));

            #line 182 "..\..\..\View\MainWindow.xaml"
                this.btnEditSet.Click += new System.Windows.RoutedEventHandler(this.btnEditTrainingSet_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.btnTrain = ((System.Windows.Controls.Button)(target));

            #line 189 "..\..\..\View\MainWindow.xaml"
                this.btnTrain.Click += new System.Windows.RoutedEventHandler(this.btnTrain_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.labelIterationCount = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.txtInputPattern = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.btnRecognize = ((System.Windows.Controls.Button)(target));

            #line 214 "..\..\..\View\MainWindow.xaml"
                this.btnRecognize.Click += new System.Windows.RoutedEventHandler(this.btnRecognize_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.txtResult = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.LowerPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 38:
                this.LowerPanelBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 39:
                this.graphText = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.MainPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 41:
                this.MainPanelBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 42:
                this.graphLayout = ((GraphSharp.Controls.GraphLayout)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 9
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 2:
     this.zoomControl = ((WPFExtensions.Controls.ZoomControl)(target));
     return;
     case 3:
     this.graphLayout = ((GraphSharp.Controls.GraphLayout)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Frame = ((TPGO_ConneX.MainWindow)(target));
                return;

            case 2:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.Home = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.Glayout = ((GraphSharp.Controls.GraphLayout)(target));
                return;

            case 5:
                this.nbVirText = ((System.Windows.Controls.TextBox)(target));

            #line 327 "..\..\MainWindow.xaml"
                this.nbVirText.GotFocus += new System.Windows.RoutedEventHandler(this.nbVirText_GotFocus);

            #line default
            #line hidden
                return;

            case 6:
                this.nbVir = ((System.Windows.Controls.Button)(target));

            #line 328 "..\..\MainWindow.xaml"
                this.nbVir.Click += new System.Windows.RoutedEventHandler(this.nbVir_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.addV = ((System.Windows.Controls.Button)(target));

            #line 331 "..\..\MainWindow.xaml"
                this.addV.Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 8:
                this.edge2 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.edge1 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.add = ((System.Windows.Controls.Button)(target));

            #line 336 "..\..\MainWindow.xaml"
                this.add.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Rem = ((System.Windows.Controls.Button)(target));

            #line 338 "..\..\MainWindow.xaml"
                this.Rem.Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 12:
                this.Reset = ((System.Windows.Controls.Button)(target));

            #line 339 "..\..\MainWindow.xaml"
                this.Reset.Click += new System.Windows.RoutedEventHandler(this.Reset_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Glayout2 = ((GraphSharp.Controls.GraphLayout)(target));
                return;

            case 14:
                this.DisplyM = ((System.Windows.Controls.ComboBox)(target));

            #line 361 "..\..\MainWindow.xaml"
                this.DisplyM.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DisplyM_SelectionChanged);

            #line default
            #line hidden
                return;

            case 15:

            #line 371 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 16:
                this.Glayout3 = ((GraphSharp.Controls.GraphLayout)(target));
                return;

            case 17:
                this.ElipsePanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.bt2 = ((System.Windows.Controls.Button)(target));

            #line 386 "..\..\MainWindow.xaml"
                this.bt2.Click += new System.Windows.RoutedEventHandler(this.bt2_Click);

            #line default
            #line hidden

            #line 386 "..\..\MainWindow.xaml"
                this.bt2.MouseEnter += new System.Windows.Input.MouseEventHandler(this.bt2_MouseEnter);

            #line default
            #line hidden

            #line 386 "..\..\MainWindow.xaml"
                this.bt2.MouseLeave += new System.Windows.Input.MouseEventHandler(this.bt2_MouseLeave);

            #line default
            #line hidden
                return;

            case 19:
                this.bt1 = ((System.Windows.Controls.Button)(target));

            #line 387 "..\..\MainWindow.xaml"
                this.bt1.Click += new System.Windows.RoutedEventHandler(this.bt1_Click);

            #line default
            #line hidden

            #line 387 "..\..\MainWindow.xaml"
                this.bt1.MouseEnter += new System.Windows.Input.MouseEventHandler(this.bt1_MouseEnter);

            #line default
            #line hidden

            #line 387 "..\..\MainWindow.xaml"
                this.bt1.MouseLeave += new System.Windows.Input.MouseEventHandler(this.bt1_MouseLeave);

            #line default
            #line hidden
                return;

            case 20:
                this.homeBnt = ((System.Windows.Controls.Button)(target));

            #line 393 "..\..\MainWindow.xaml"
                this.homeBnt.Click += new System.Windows.RoutedEventHandler(this.homeBnt_Click);

            #line default
            #line hidden

            #line 393 "..\..\MainWindow.xaml"
                this.homeBnt.MouseEnter += new System.Windows.Input.MouseEventHandler(this.homeBnt_MouseEnter);

            #line default
            #line hidden

            #line 393 "..\..\MainWindow.xaml"
                this.homeBnt.MouseLeave += new System.Windows.Input.MouseEventHandler(this.homeBnt_MouseLeave);

            #line default
            #line hidden
                return;

            case 21:
                this.bt3 = ((System.Windows.Controls.Button)(target));

            #line 399 "..\..\MainWindow.xaml"
                this.bt3.Click += new System.Windows.RoutedEventHandler(this.bt3_Click);

            #line default
            #line hidden

            #line 399 "..\..\MainWindow.xaml"
                this.bt3.MouseEnter += new System.Windows.Input.MouseEventHandler(this.bt3_MouseEnter);

            #line default
            #line hidden

            #line 399 "..\..\MainWindow.xaml"
                this.bt3.MouseLeave += new System.Windows.Input.MouseEventHandler(this.bt3_MouseLeave);

            #line default
            #line hidden
                return;

            case 22:
                this.header = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }