예제 #1
0
 private void FillListComps()
 {
     listBoxComputers.Items.Clear();
     foreach (Computer computer in Computers.GetDeepCopy())
     {
         listBoxComputers.Items.Add(new ODBoxItem <Computer>(computer.CompName, computer));
     }
 }
예제 #2
0
        private void FormMessagingButSetup_Load(object sender, EventArgs e)
        {
            _listComputers = Computers.GetDeepCopy();
            listComputers.Items.Clear();
            listComputers.Items.Add(Lan.g(this, "All"));
            string s;

            for (int i = 0; i < _listComputers.Count; i++)
            {
                s = _listComputers[i].CompName;
                if (SystemInformation.ComputerName == _listComputers[i].CompName)
                {
                    s += " " + Lan.g(this, "(this computer)");
                }
                listComputers.Items.Add(s);
            }
            listComputers.SelectedIndex = 0;
            _arraySigButDefs            = SigButDefs.GetByComputer("");
            FillList();
        }
예제 #3
0
        private void FillList()
        {
            Computers.RefreshCache();
            _listComputers = Computers.GetDeepCopy();
            listComputer.Items.Clear();
            //Database Server----------------------------------------------------------
            List <string> serviceList = Computers.GetServiceInfo();

            textName.Text        = MiscData.GetODServer();        //server name
            textService.Text     = (serviceList[0].ToString());   //service name
            textVersion.Text     = (serviceList[3].ToString());   //service version
            textServComment.Text = (serviceList[1].ToString());   //service comment
            //workstation--------------------------------------------------------------
            textCurComp.Text = Environment.MachineName.ToUpper(); //current computer name
            string itemName = "";

            for (int i = 0; i < _listComputers.Count; i++)
            {
                itemName = _listComputers[i].CompName;
                //+" ("+Computers.List[i].PrinterName+")";
                listComputer.Items.Add(itemName);
            }
        }