Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.fsmWindow = ((FSMControl.FSMView)(target));
                return;

            case 11:

            #line 149 "..\..\FSMView.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LoadMultiple_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 150 "..\..\FSMView.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LoadConfig_Click);

            #line default
            #line hidden
                return;

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

            #line 151 "..\..\FSMView.xaml"
                this.miRepresentMachine.Click += new System.Windows.RoutedEventHandler(this.Represent_machine);

            #line default
            #line hidden
                return;

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

            #line 152 "..\..\FSMView.xaml"
                this.miViewMachineCfg.Click += new System.Windows.RoutedEventHandler(this.View_Configuration);

            #line default
            #line hidden
                return;

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

            #line 153 "..\..\FSMView.xaml"
                this.miSaveCfg.Click += new System.Windows.RoutedEventHandler(this.SaveConfig_Click);

            #line default
            #line hidden
                return;

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

            #line 154 "..\..\FSMView.xaml"
                this.miSaveCfgW.Click += new System.Windows.RoutedEventHandler(this.MiSave_Click);

            #line default
            #line hidden
                return;

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

            #line 155 "..\..\FSMView.xaml"
                this.miShowLogger.Click += new System.Windows.RoutedEventHandler(this.MiShowLogger_Click);

            #line default
            #line hidden
                return;

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

            #line 156 "..\..\FSMView.xaml"
                this.miVersion.Click += new System.Windows.RoutedEventHandler(this.Show_Version);

            #line default
            #line hidden
                return;

            case 19:

            #line 157 "..\..\FSMView.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Close_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.miSaveGraphLayout = ((System.Windows.Controls.MenuItem)(target));

            #line 160 "..\..\FSMView.xaml"
                this.miSaveGraphLayout.Click += new System.Windows.RoutedEventHandler(this.Save);

            #line default
            #line hidden
                return;

            case 21:
                this.miOpenGraphLayout = ((System.Windows.Controls.MenuItem)(target));

            #line 161 "..\..\FSMView.xaml"
                this.miOpenGraphLayout.Click += new System.Windows.RoutedEventHandler(this.Open);

            #line default
            #line hidden
                return;

            case 22:
                this.miAddVertex = ((System.Windows.Controls.MenuItem)(target));

            #line 162 "..\..\FSMView.xaml"
                this.miAddVertex.Click += new System.Windows.RoutedEventHandler(this.AddVertex_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.miAddEdge = ((System.Windows.Controls.MenuItem)(target));

            #line 163 "..\..\FSMView.xaml"
                this.miAddEdge.Click += new System.Windows.RoutedEventHandler(this.AddEdge_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.miDeleteVertex = ((System.Windows.Controls.MenuItem)(target));

            #line 164 "..\..\FSMView.xaml"
                this.miDeleteVertex.Click += new System.Windows.RoutedEventHandler(this.DeleteVertex_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.miDeleteEdge = ((System.Windows.Controls.MenuItem)(target));

            #line 165 "..\..\FSMView.xaml"
                this.miDeleteEdge.Click += new System.Windows.RoutedEventHandler(this.DeleteEdge_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.miGenerateNewSequence = ((System.Windows.Controls.MenuItem)(target));

            #line 166 "..\..\FSMView.xaml"
                this.miGenerateNewSequence.Click += new System.Windows.RoutedEventHandler(this.Generate_Sequence_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.cbLayout = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.cbSequences = ((System.Windows.Controls.ComboBox)(target));

            #line 175 "..\..\FSMView.xaml"
                this.cbSequences.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 29:

            #line 177 "..\..\FSMView.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.zoom = ((WPFExtensions.Controls.ZoomControl)(target));
                return;

            case 31:
                this.graphLayout = ((FSMControl.CustomGraphLayout)(target));
                return;

            case 32:
                this.scrConsole = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 33:
                this.console = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.fsmWindow = ((FSMControl.FSMView)(target));
     return;
     case 11:
     
     #line 149 "..\..\FSMView.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LoadMultiple_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 150 "..\..\FSMView.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LoadConfig_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.miRepresentMachine = ((System.Windows.Controls.MenuItem)(target));
     
     #line 151 "..\..\FSMView.xaml"
     this.miRepresentMachine.Click += new System.Windows.RoutedEventHandler(this.Represent_machine);
     
     #line default
     #line hidden
     return;
     case 14:
     this.miViewMachineCfg = ((System.Windows.Controls.MenuItem)(target));
     
     #line 152 "..\..\FSMView.xaml"
     this.miViewMachineCfg.Click += new System.Windows.RoutedEventHandler(this.View_Configuration);
     
     #line default
     #line hidden
     return;
     case 15:
     this.miSaveCfg = ((System.Windows.Controls.MenuItem)(target));
     
     #line 153 "..\..\FSMView.xaml"
     this.miSaveCfg.Click += new System.Windows.RoutedEventHandler(this.SaveConfig_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.miSaveCfgW = ((System.Windows.Controls.MenuItem)(target));
     
     #line 154 "..\..\FSMView.xaml"
     this.miSaveCfgW.Click += new System.Windows.RoutedEventHandler(this.MiSave_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.miShowLogger = ((System.Windows.Controls.MenuItem)(target));
     
     #line 155 "..\..\FSMView.xaml"
     this.miShowLogger.Click += new System.Windows.RoutedEventHandler(this.MiShowLogger_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.miVersion = ((System.Windows.Controls.MenuItem)(target));
     
     #line 156 "..\..\FSMView.xaml"
     this.miVersion.Click += new System.Windows.RoutedEventHandler(this.Show_Version);
     
     #line default
     #line hidden
     return;
     case 19:
     
     #line 157 "..\..\FSMView.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Close_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.miSaveGraphLayout = ((System.Windows.Controls.MenuItem)(target));
     
     #line 160 "..\..\FSMView.xaml"
     this.miSaveGraphLayout.Click += new System.Windows.RoutedEventHandler(this.Save);
     
     #line default
     #line hidden
     return;
     case 21:
     this.miOpenGraphLayout = ((System.Windows.Controls.MenuItem)(target));
     
     #line 161 "..\..\FSMView.xaml"
     this.miOpenGraphLayout.Click += new System.Windows.RoutedEventHandler(this.Open);
     
     #line default
     #line hidden
     return;
     case 22:
     this.miAddVertex = ((System.Windows.Controls.MenuItem)(target));
     
     #line 162 "..\..\FSMView.xaml"
     this.miAddVertex.Click += new System.Windows.RoutedEventHandler(this.AddVertex_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.miAddEdge = ((System.Windows.Controls.MenuItem)(target));
     
     #line 163 "..\..\FSMView.xaml"
     this.miAddEdge.Click += new System.Windows.RoutedEventHandler(this.AddEdge_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.miDeleteVertex = ((System.Windows.Controls.MenuItem)(target));
     
     #line 164 "..\..\FSMView.xaml"
     this.miDeleteVertex.Click += new System.Windows.RoutedEventHandler(this.DeleteVertex_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.miDeleteEdge = ((System.Windows.Controls.MenuItem)(target));
     
     #line 165 "..\..\FSMView.xaml"
     this.miDeleteEdge.Click += new System.Windows.RoutedEventHandler(this.DeleteEdge_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.miGenerateNewSequence = ((System.Windows.Controls.MenuItem)(target));
     
     #line 166 "..\..\FSMView.xaml"
     this.miGenerateNewSequence.Click += new System.Windows.RoutedEventHandler(this.Generate_Sequence_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.cbLayout = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 28:
     this.cbSequences = ((System.Windows.Controls.ComboBox)(target));
     
     #line 175 "..\..\FSMView.xaml"
     this.cbSequences.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 29:
     
     #line 177 "..\..\FSMView.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);
     
     #line default
     #line hidden
     return;
     case 30:
     this.zoom = ((WPFExtensions.Controls.ZoomControl)(target));
     return;
     case 31:
     this.graphLayout = ((FSMControl.CustomGraphLayout)(target));
     return;
     case 32:
     this.scrConsole = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 33:
     this.console = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }