public NewRemoteConnectionControl(SqlConnection cn)
        {
            if (cn == null)
            {
                throw new ArgumentNullException("cn");
            }
            this.cn = cn;
            this.connectionModel = ServiceConnectionModel.FromSql(cn);
            if (this.connectionModel == null)
            {
                this.connectionModel = new ServiceConnectionModel();
            }
            this.DataContext = this.connectionModel;

            InitializeComponent();

            if (this.connectionModel.Competition != null)
            {
                this.cbSelectCompetitions.Items.Add(this.connectionModel.Competition);
            }
            this.pbxPassword.Password = this.connectionModel.Password ?? string.Empty;
        }
 public NewRemoteConnectionControl()
 {
     this.connectionModel = new ServiceConnectionModel();
     this.DataContext     = this.connectionModel;
     this.InitializeComponent();
 }