예제 #1
0
        //to access wideLocal use base.WideLocal or simple WideLocal
        public Revelation_OTA(WideBox wideLocal, WhirlpoolWifi wifiLocal)
            : base(wideLocal, wifiLocal)
        {
            InitializeComponent();
            this.Text += " (" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version + ")";
            AutoSave   = true;


            // Build log and window table
            results = new DataTable();
            results.Columns.Add("IP Address");
            results.Columns.Add("MAC");
            results.Columns.Add("OTA Payload");
            results.Columns.Add("Model");
            results.Columns.Add("Serial");
            results.Columns.Add("Version");
            results.Columns.Add("OTA Result");

            // Generate tables
            sbind.DataSource             = results;
            DGV_Data.AutoGenerateColumns = true;
            DGV_Data.DataSource          = results;
            DGV_Data.DataSource          = sbind;
            TB_LogDir.Text = Directory.GetCurrentDirectory();

            // Do not allow columns to be sorted
            foreach (DataGridViewColumn column in DGV_Data.Columns)
            {
                column.SortMode = DataGridViewColumnSortMode.NotSortable;
            }

            // Generate lists
            iplist = new List <IPData>();
            waits  = new List <Thread> ();
        }
예제 #2
0
        public AutoGen(Venom ParentForm, WideBox wideLocal, WhirlpoolWifi wifiLocal)
            : base(wideLocal, wifiLocal)
        {
            InitializeComponent();
            parent = ParentForm;
            CB_Product.Items.AddRange(new object[] { "NAR Cooking",
                                                     "EMEA Cooking", "NAR Laundry", "EMEA Laundry", "Other (any remote cycle)" });
            CB_Variant.Items.AddRange(new object[] { "HMI", "ACU", "WiFi", "Expansion" });
            CB_Type.Items.AddRange(new object[] { "Indigo", "Gen4" });

            // Generate tables
            sbind.DataSource = parent.results;
            parent.DGV_Data.AutoGenerateColumns = true;
            parent.DGV_Data.DataSource          = parent.results;
            parent.DGV_Data.DataSource          = sbind;

            // Do not allow columns to be sorted
            foreach (DataGridViewColumn column in parent.DGV_Data.Columns)
            {
                column.SortMode = DataGridViewColumnSortMode.NotSortable;
            }
        }
예제 #3
0
        //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>();
        }
예제 #4
0
파일: PayList.cs 프로젝트: abmantis/InDev
        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;
            }
        }
예제 #5
0
 //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 + ")";
 }