public static IpXSLT[] GetAvailableTransforms() { IpXSLT ipx0 = new IpXSLT("IP Address", XslFolderPath + "IpAddress.xsl"); IpXSLT ipx1 = new IpXSLT("Inbound IP Traffic", XslFolderPath + "InboundIp.xsl"); IpXSLT ipx2 = new IpXSLT("Outbound IP Traffic", XslFolderPath + "OutboundIp.xsl"); return(new IpXSLT[3] { ipx0, ipx1, ipx2 }); }
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"; */ }
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"; } }