//to access wideLocal use base.WideLocal or simple WideLocal public AutoPinger(WideBox wideLocal, WhirlpoolWifi wifiLocal) : base(wideLocal, wifiLocal) { InitializeComponent(); this.Text += " (" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version + ")"; //Add your constructor operations here //AutoSave: Load and Save your CheckBoxes, TextBoxes and ComboBoxes last conditions //Default is true, this line can be removed AutoSave = true; pingresp = ""; timer = new System.Timers.Timer(pingperiod); timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); settextcallback = new SetTextCallback(SetText); listindex = 0; results = new DataTable(); results.Columns.Add("IP Address"); results.Columns.Add("MAC Address"); results.Columns.Add("Avg Resp Time"); results.Columns.Add("# Missed Pings"); results.Columns.Add("Ping Response %"); results.Columns.Add("Link State"); results.Columns.Add("Claim State"); results.Columns.Add("Cloud Disconnect Count"); results.Columns.Add("Current Connected Time"); results.Columns.Add("Current Disconnected Time"); results.Columns.Add("Wifi Resync Statistics"); sbind.DataSource = results; DGV_Data.AutoGenerateColumns = true; DGV_Data.DataSource = results; DGV_Data.DataSource = sbind; TB_LogDir.Text = Directory.GetCurrentDirectory(); iplist = new List <IPData>(); responses = new List <string>(); }
public PayList(Venom ParentForm, WideBox wideLocal, WhirlpoolWifi wifiLocal) : base(wideLocal, wifiLocal) { InitializeComponent(); parent = ParentForm; CB_Type.Items.AddRange(new object[] { "Upgrade", "Downgrade" }); CB_Variant.Items.AddRange(new object[] { "HMI", "ACU", "WiFi", "Multi" }); // Generate tables sbind.DataSource = parent.results; DGV_Data.AutoGenerateColumns = true; DGV_Data.DataSource = parent.results; DGV_Data.DataSource = sbind; // Do not allow columns to be sorted foreach (DataGridViewColumn column in DGV_Data.Columns) { column.SortMode = DataGridViewColumnSortMode.NotSortable; } }
//to access wideLocal use base.WideLocal or simple WideLocal public MQTT_URL(WideBox wideLocal, WhirlpoolWifi wifiLocal) : base(wideLocal, wifiLocal) { InitializeComponent(); this.Text += " (" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version + ")"; }