Пример #1
0
        private void bttAddOSA_Click(object sender, EventArgs e)
        {
            frmOSAServer frmOSA = new frmOSAServer();

            frmOSA.ShowDialog();
            this.cbOSAServers.DataSource = db.OSASettings_Get();
        }
Пример #2
0
 public frmOSAServer()
 {
     database = new DB.Database();
     InitializeComponent();
     lbOSAServers.DataSource    = database.OSASettings_Get();
     lbOSAServers.DisplayMember = "name";
     //lbOSAServers.ValueMember = "id";
 }
Пример #3
0
 public frmOSAServer()
 {
     database = new DB.Database();
     InitializeComponent();
     lbOSAServers.DataSource = database.OSASettings_Get();
     lbOSAServers.DisplayMember = "name";
     //lbOSAServers.ValueMember = "id";
 }
Пример #4
0
        public APSCS()
        {
            db = new DB.Database();

            InitializeComponent();
            this.cbOSAServers.DataSource = db.OSASettings_Get();
            this.cbOSAServers.DisplayMember = "name";

            string lastAPSPackage = Settings.GetLastAPSPackage();
            if (lastAPSPackage.Length != 0)
                this.txtAPSPackage.Text = lastAPSPackage;
            FillConfiguration();
        }
Пример #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (txtOSAName.Text.Length == 0)
            {
                txtOSAName.Focus();
                return;
            }
            if (txtOSAHostname.Text.Length == 0)
            {
                txtOSAHostname.Focus();
                return;
            }

            database.OSASettings_Save(
                lblId.Text,
                txtOSAName.Text,
                txtOSAHostname.Text,
                txtOSAPassword.Text,
                txtEndpointHostname.Text,
                txtEndpointPassword.Text);

            lbOSAServers.DataSource = database.OSASettings_Get();
        }
Пример #6
0
        public APSCS()
        {
            db = new DB.Database();

            InitializeComponent();
            this.cbOSAServers.DataSource    = db.OSASettings_Get();
            this.cbOSAServers.DisplayMember = "name";

            string lastAPSPackage = Settings.GetLastAPSPackage();

            if (lastAPSPackage.Length != 0)
            {
                this.txtAPSPackage.Text = lastAPSPackage;
            }
            FillConfiguration();
        }