コード例 #1
0
        public NetDevice(ref perfo p)
        {
            //
            // Erforderlich für die Windows Form-Designerunterstützung
            //
            InitializeComponent();

            comboBox1_Fill(ref p);
            comboBox1.Text = p.NetDevice;
        }
コード例 #2
0
 private void comboBox1_Fill(ref perfo p)
 {
     comboBox1.Items.Clear();
     string [] s = p.GetAllInstanceNames();
     foreach (string x in s)
     {
         comboBox1.Items.Add(x);
     }
     comboBox1.Text = (string)comboBox1.Items[0];
 }