コード例 #1
0
ファイル: FormPhoneComps.cs プロジェクト: royedwards/DRDNet
 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
ファイル: FormComputers.cs プロジェクト: royedwards/DRDNet
        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);
            }
        }