Exemplo n.º 1
0
 /// <summary>
 /// Setups the controls.
 /// </summary>
 protected virtual void SetupControls()
 {
     ServerNameComboBox.Focus();
     PasswordBox.PasswordChanged += (sender, args) =>
     {
         OnPropertyChanged("IsValid");
     };
 }
Exemplo n.º 2
0
        private void populateDeviceTypeComboBox()
        {
            //8/21/14 WS moved for VSPLUS-
            string    location = "";
            DataTable dt       = new DataTable();

            if (LocationComboBox.SelectedIndex != -1)
            {
                location = LocationComboBox.SelectedItem.Text.ToString();
                //2/5/2014 NS added
                if (DeviceTypeComboBox.SelectedItem.Text == "URL")
                {
                    //6/30/2014 NS added for VSPLUS-789
                    try
                    {
                        dt = VSWebBL.ConfiguratorBL.URLsBL.Ins.GetAllData();
                        if (dt.Rows.Count > 0)
                        {
                            ServerNameComboBox.DataSource = dt;
                            ServerNameComboBox.TextField  = "Name";
                            ServerNameComboBox.ValueField = "ID";
                            ServerNameComboBox.DataBind();
                            ServerNameComboBox.Enabled = true;
                        }
                    }
                    catch (Exception ex)
                    {
                        //6/27/2014 NS added for VSPLUS-634
                        Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                    }
                }
                else
                {
                    //6/30/2014 NS added for VSPLUS-789
                    try
                    {
                        dt = VSWebBL.SecurityBL.AdminTabBL.Ins.Getserversbyloction(location);
                        if (dt.Rows.Count > 0)
                        {
                            ServerNameComboBox.DataSource = dt;
                            ServerNameComboBox.TextField  = "ServerName";
                            ServerNameComboBox.ValueField = "ID";
                            ServerNameComboBox.DataBind();
                            ServerNameComboBox.Enabled = true;
                        }
                    }
                    catch (Exception ex)
                    {
                        //6/27/2014 NS added for VSPLUS-634
                        Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                    }
                }
            }
        }
Exemplo n.º 3
0
 private void fillServerComboBox()
 {
     //6/30/2014 NS added for VSPLUS-789
     try
     {
         DataTable ServersTable = VSWebBL.SecurityBL.ServersBL.Ins.GetAllData();
         if (ServersTable.Rows.Count > 0)
         {
             ServerNameComboBox.DataSource = ServersTable;
             ServerNameComboBox.TextField  = "ServerName";
             ServerNameComboBox.ValueField = "ID";
             ServerNameComboBox.DataBind();
         }
     }
     catch (Exception ex)
     {
         //6/27/2014 NS added for VSPLUS-634
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
     }
 }