Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.piePlotter = ((ScottLogic.Controls.PieChart.PieChartLayout)(target));
                return;

            case 2:
                this.listBox1 = ((System.Windows.Controls.ListView)(target));

            #line 29 "..\..\Window1.xaml"
                this.listBox1.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.OnColumnHeaderClick));

            #line default
            #line hidden
                return;

            case 3:

            #line 69 "..\..\Window1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewItem);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.piePlotter = ((ScottLogic.Controls.PieChart.PieChartLayout)(target));
     return;
     case 2:
     this.listBox1 = ((System.Windows.Controls.ListView)(target));
     
     #line 31 "..\..\Window1.xaml"
     this.listBox1.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.OnColumnHeaderClick));
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 71 "..\..\Window1.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddNewItem);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TabControl1 = ((System.Windows.Controls.TabControl)(target));

            #line 27 "..\..\Main.xaml"
                this.TabControl1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainTabChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Votings = ((System.Windows.Controls.TabItem)(target));
                return;

            case 3:

            #line 30 "..\..\Main.xaml"
                ((System.Windows.Controls.Label)(target)).Loaded += new System.Windows.RoutedEventHandler(this.VotingsLoading);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\Main.xaml"
                this.TextFilter.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.VotingsFilter_TextChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.VotingsList = ((System.Windows.Controls.ListBox)(target));

            #line 41 "..\..\Main.xaml"
                this.VotingsList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.VotingsListBox_Click);

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\Main.xaml"
                this.AddVotingButton.Click += new System.Windows.RoutedEventHandler(this.AddVoting);

            #line default
            #line hidden
                return;

            case 7:

            #line 70 "..\..\Main.xaml"
                ((System.Windows.Controls.Label)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UsersLoading);

            #line default
            #line hidden
                return;

            case 8:
                this.UsersFilter = ((System.Windows.Controls.TextBox)(target));

            #line 80 "..\..\Main.xaml"
                this.UsersFilter.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UsersFilter_TextChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.UsersList = ((System.Windows.Controls.ListBox)(target));

            #line 81 "..\..\Main.xaml"
                this.UsersList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UsersListBox_Click);

            #line default
            #line hidden
                return;

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

            #line 99 "..\..\Main.xaml"
                this.AddNewUser.Click += new System.Windows.RoutedEventHandler(this.AddUser);

            #line default
            #line hidden
                return;

            case 11:
                this.GroupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 12:
                this.VotingTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.TimerLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.VotingDetails = ((System.Windows.Controls.TabControl)(target));
                return;

            case 15:
                this.VotingInformation = ((System.Windows.Controls.TabItem)(target));
                return;

            case 16:
                this.VotingDescript = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.EditAssignedUsers = ((System.Windows.Controls.Button)(target));

            #line 141 "..\..\Main.xaml"
                this.EditAssignedUsers.Click += new System.Windows.RoutedEventHandler(this.AssignUsers);

            #line default
            #line hidden
                return;

            case 18:
                this.StartDate = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.FinishDate = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.StartTime = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.FinishtTime = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.VotingStartTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.VotingFinishTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.VotingStartDate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.VotingFinishDate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.VotingCandidates = ((System.Windows.Controls.TabItem)(target));
                return;

            case 27:
                this.EditCustomers = ((System.Windows.Controls.Button)(target));

            #line 197 "..\..\Main.xaml"
                this.EditCustomers.Click += new System.Windows.RoutedEventHandler(this.AssignCandidates);

            #line default
            #line hidden
                return;

            case 28:
                this.CandidatesListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 29:
                this.VotingResults = ((System.Windows.Controls.TabItem)(target));
                return;

            case 30:
                this.piePlotter = ((ScottLogic.Controls.PieChart.PieChartLayout)(target));
                return;

            case 31:
                this.pieChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(target));
                return;

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

            #line 247 "..\..\Main.xaml"
                this.DeleteVoting.Click += new System.Windows.RoutedEventHandler(this.RemoveVoting);

            #line default
            #line hidden
                return;

            case 33:
                this.EditVote = ((System.Windows.Controls.Button)(target));

            #line 254 "..\..\Main.xaml"
                this.EditVote.Click += new System.Windows.RoutedEventHandler(this.EditVoting);

            #line default
            #line hidden
                return;

            case 34:
                this.GroupBox2 = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            #line 266 "..\..\Main.xaml"
                this.RemoveUser.Click += new System.Windows.RoutedEventHandler(this.RemoveCurrentUser);

            #line default
            #line hidden
                return;

            case 36:
                this.EditUser = ((System.Windows.Controls.Button)(target));

            #line 273 "..\..\Main.xaml"
                this.EditUser.Click += new System.Windows.RoutedEventHandler(this.EditCurrentUser);

            #line default
            #line hidden
                return;

            case 37:
                this.UserName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.UserDetails = ((System.Windows.Controls.TabControl)(target));
                return;

            case 39:
                this.UserInformation = ((System.Windows.Controls.TabItem)(target));
                return;

            case 40:
                this.UserID = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.UserEmail = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.UserPassword = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.UserPermission = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.UserVotings = ((System.Windows.Controls.TabItem)(target));
                return;

            case 45:
                this.UserVotingsList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 46:
                this.closeall = ((System.Windows.Controls.Button)(target));

            #line 379 "..\..\Main.xaml"
                this.closeall.Click += new System.Windows.RoutedEventHandler(this.Close);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }