Add a button



  • When you assemble the project, get this mistake.

    Severity Code Description Project Project Rank Path File Line Column Category Source Suppression State Tool
    Error CS0111 Type 'DialogAddProxies' already defines a member called 'InitializeComponent' with the same parameter types OpenBullet 2 C:\Users\HP\Desktop\OB\OpenBullet\obj\Debug\Views\Dialogs C:\Users\HP\Desktop\OB\OpenBullet\obj\Debug\Views\Dialogs\DialogAddProxies.g.cs 227 21 Compiler IntelliSense Active Compiler

    I hope someone helps me.


  • Admin

    Clone the repo again or reload the solution



  • https://i.top4top.io/p_15539kgov1.jpg

    That's the picture of the problem.


  • Admin

    I understand but I have no problem building whatsoever, the appveyor CI/CD doesn't have any problem and no one posted anything about that on github so it's probably on your end, redownload the solution or at least delete your .vs folder.



  • I've deleted all obj files and vs files, but the problem still exists.```
    code_text

    //------------------------------------------------------------------------------
    // <auto-generated>
    //     This code was generated by a tool.
    //     Runtime Version:4.0.30319.42000
    //
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
    //------------------------------------------------------------------------------
    
    using OpenBullet;
    using System;
    using System.Diagnostics;
    using System.Windows;
    using System.Windows.Automation;
    using System.Windows.Controls;
    using System.Windows.Controls.Primitives;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Forms.Integration;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Markup;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Media.Effects;
    using System.Windows.Media.Imaging;
    using System.Windows.Media.Media3D;
    using System.Windows.Media.TextFormatting;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using System.Windows.Shell;
    
    
    namespace OpenBullet {
        
        
        /// <summary>
        /// DialogAddProxies
        /// </summary>
        public partial class DialogAddProxies : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
            
            
            #line 20 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Label fileMode;
            
            #line default
            #line hidden
            
            
            #line 21 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Label pasteMode;
            
            #line default
            #line hidden
            
            
            #line 22 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Label apiMode;
            
            #line default
            #line hidden
            
            
            #line 23 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Label vipMode;
            
            #line default
            #line hidden
            
            
            #line 26 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TabControl modeTabControl;
            
            #line default
            #line hidden
            
            
            #line 32 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TabItem fileTab;
            
            #line default
            #line hidden
            
            
            #line 41 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TextBox locationTextbox;
            
            #line default
            #line hidden
            
            
            #line 43 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Image loadProxiesButton;
            
            #line default
            #line hidden
            
            
            #line 48 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TabItem pasteTab;
            
            #line default
            #line hidden
            
            
            #line 51 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TextBox proxiesBox;
            
            #line default
            #line hidden
            
            
            #line 55 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TabItem apiTab;
            
            #line default
            #line hidden
            
            
            #line 64 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TextBox urlTextbox;
            
            #line default
            #line hidden
            
            
            #line 68 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TabItem vipTab;
            
            #line default
            #line hidden
            
            
            #line 70 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Button ButtonHTTP;
            
            #line default
            #line hidden
            
            
            #line 72 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Button ButtonSocks4;
            
            #line default
            #line hidden
            
            
            #line 74 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Button ButtonSocks5;
            
            #line default
            #line hidden
            
            
            #line 76 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.ListBox listBox1;
            
            #line default
            #line hidden
            
            
            #line 97 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TextBlock advancedWarning;
            
            #line default
            #line hidden
            
            
            #line 112 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.ComboBox proxyTypeCombobox;
            
            #line default
            #line hidden
            
            
            #line 115 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TextBox usernameTextbox;
            
            #line default
            #line hidden
            
            
            #line 118 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.TextBox passwordTextbox;
            
            #line default
            #line hidden
            
            
            #line 120 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
            internal System.Windows.Controls.Button acceptButton;
            
            #line default
            #line hidden
            
            private bool _contentLoaded;
            
            /// <summary>
            /// InitializeComponent
            /// </summary>
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
            public void InitializeComponent() {
                if (_contentLoaded) {
                    return;
                }
                _contentLoaded = true;
                System.Uri resourceLocater = new System.Uri("/OpenBullet;component/views/dialogs/dialogaddproxies.xaml", System.UriKind.Relative);
                
                #line 1 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                System.Windows.Application.LoadComponent(this, resourceLocater);
                
                #line default
                #line hidden
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
            [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
            [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
            void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
                switch (connectionId)
                {
                case 1:
                this.fileMode = ((System.Windows.Controls.Label)(target));
                
                #line 20 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.fileMode.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.FileMode_MouseDown);
                
                #line default
                #line hidden
                return;
                case 2:
                this.pasteMode = ((System.Windows.Controls.Label)(target));
                
                #line 21 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.pasteMode.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PasteMode_MouseDown);
                
                #line default
                #line hidden
                return;
                case 3:
                this.apiMode = ((System.Windows.Controls.Label)(target));
                
                #line 22 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.apiMode.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ApiMode_MouseDown);
                
                #line default
                #line hidden
                return;
                case 4:
                this.vipMode = ((System.Windows.Controls.Label)(target));
                
                #line 23 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.vipMode.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.vipMode_MouseDown);
                
                #line default
                #line hidden
                return;
                case 5:
                this.modeTabControl = ((System.Windows.Controls.TabControl)(target));
                return;
                case 6:
                this.fileTab = ((System.Windows.Controls.TabItem)(target));
                return;
                case 7:
                this.locationTextbox = ((System.Windows.Controls.TextBox)(target));
                return;
                case 8:
                this.loadProxiesButton = ((System.Windows.Controls.Image)(target));
                
                #line 43 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.loadProxiesButton.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.loadProxiesButton_MouseDown);
                
                #line default
                #line hidden
                return;
                case 9:
                this.pasteTab = ((System.Windows.Controls.TabItem)(target));
                return;
                case 10:
                this.proxiesBox = ((System.Windows.Controls.TextBox)(target));
                return;
                case 11:
                this.apiTab = ((System.Windows.Controls.TabItem)(target));
                return;
                case 12:
                this.urlTextbox = ((System.Windows.Controls.TextBox)(target));
                return;
                case 13:
                this.vipTab = ((System.Windows.Controls.TabItem)(target));
                return;
                case 14:
                this.ButtonHTTP = ((System.Windows.Controls.Button)(target));
                
                #line 70 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.ButtonHTTP.Click += new System.Windows.RoutedEventHandler(this.HTTPButton_Click);
                
                #line default
                #line hidden
                return;
                case 15:
                this.ButtonSocks4 = ((System.Windows.Controls.Button)(target));
                
                #line 72 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.ButtonSocks4.Click += new System.Windows.RoutedEventHandler(this.Socks4Button_Click);
                
                #line default
                #line hidden
                return;
                case 16:
                this.ButtonSocks5 = ((System.Windows.Controls.Button)(target));
                
                #line 74 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.ButtonSocks5.Click += new System.Windows.RoutedEventHandler(this.Socks5Button_Click);
                
                #line default
                #line hidden
                return;
                case 17:
                this.listBox1 = ((System.Windows.Controls.ListBox)(target));
                return;
                case 18:
                this.advancedWarning = ((System.Windows.Controls.TextBlock)(target));
                return;
                case 19:
                this.proxyTypeCombobox = ((System.Windows.Controls.ComboBox)(target));
                return;
                case 20:
                this.usernameTextbox = ((System.Windows.Controls.TextBox)(target));
                return;
                case 21:
                this.passwordTextbox = ((System.Windows.Controls.TextBox)(target));
                return;
                case 22:
                this.acceptButton = ((System.Windows.Controls.Button)(target));
                
                #line 120 "..\..\..\..\Views\Dialogs\DialogAddProxies.xaml"
                this.acceptButton.Click += new System.Windows.RoutedEventHandler(this.acceptButton_Click);
                
                #line default
                #line hidden
                return;
                }
                this._contentLoaded = true;
            }
        }
    }


  • The problem with InitializeComponent I don't know what the reason


Log in to reply