コード例 #1
0
        public TestForm()
        {
            InitializeComponent();
            sqlMan.SetDb("LCTEST");
            comboBox1.Items.AddRange(IpXSLT.GetAvailableTransforms());
            comboBox1.DisplayMember = "DisplayText";
            comboBox1.ValueMember   = "XslFilePath";
            comboBox1.Text          = "IP Address";

            /*
             * bindingSource1.DataSource = vseDbDataSet1;
             * bindingSource1.DataMember = "ForeignIP_Stats";
             */
        }
コード例 #2
0
ファイル: AnalForgnIps.cs プロジェクト: dzstoever/SeeTCPIP200
 public AnalForgnIps(string name, string dbName, bool realTime)
 {
     InitializeComponent();
     sqlMan.SetDb(dbName);
     statStart.Text = startDT.ToString();
     statEnd.Text   = endDT.ToString();
     comboBox1.Items.AddRange(IpXSLT.GetAvailableTransforms());
     comboBox1.DisplayMember = "DisplayText";
     comboBox1.ValueMember   = "XslFilePath";
     comboBox1.Text          = "IP Address";
     if (!realTime)
     {
         button1.Visible = false;
         labelType.Text  = "Historical";
     }
     else
     {
         labelType.Text = "Recent Activity";
     }
 }