示例#1
0
 public void MoveConnectionStringToFirst(ConnectionStringInfo info)
 {
     if (this.ConnectionStrings.Remove(info) == true)
     {
         this.ConnectionStrings.Insert(0, info);
     }
 }
示例#2
0
        public void MoveConnectionStringToFirst(ConnectionStringInfo info)
        {
            if (this.ConnectionStrings.Remove(info) == true)
            {
                this.ConnectionStrings.Insert(0, info);
            }
            var f = this.GetCurrentRecentSchemaFile();

            if (f != null)
            {
                f.ConnectionStringName = info.Name;
            }
            this.Save();
        }
        public EditConnectionStringWindow(ConnectionStringInfo info)
        {
            InitializeComponent();
            for (int i = 0; i < 24; i++)
            {
                this.TimeZoneComboBox.Items.Add(i - 11);
            }

            if (info != null)
            {
                this.NameTextBox.Text = info.Name;
                this.ConnectionStringTextBox.Text = info.ConnectionString;
                this.TimeZoneComboBox.SelectedValue = info.TimeZone;
            }
            AValue.ConfigData.EditConnectionStringWindow.Initialize(this);
        }
 public EditConnectionStringWindowSavedEventArgs(String name, String connectionString, Int32 timeZone)
 {
     var ci = new ConnectionStringInfo();
     ci.Name = name;
     ci.ConnectionString = connectionString;
     if (String.IsNullOrEmpty(ci.Name) == true)
     {
         ci.Name = ci.ConnectionString;
     }
     ci.TimeZone = timeZone;
     this.ConnectionStringInfo = ci;
 }
示例#5
0
 public void MoveConnectionStringToFirst(ConnectionStringInfo info)
 {
     if (this.ConnectionStrings.Remove(info) == true)
     {
         this.ConnectionStrings.Insert(0, info);
     }
 }