using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Diagnostics; using System.Drawing; using System.IO; using System.IO.Compression; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Text; using System.Threading; using System.Windows.Forms; using AForge.Imaging.Filters; using VideoReader.Properties; namespace VideoReader; public class Form1 : Form { private class Win32 { [DllImport("kernel32.dll")] public static extern bool AllocConsole(); [DllImport("kernel32.dll")] public static extern bool FreeConsole(); } private int[] models = new int[15] { -11427260, 1012570, 271059456, 34209792, 4463, 1189898, 2755072, 274459, 70, 285212673, 1274624, 657920, 1930887686, 167772180, 50790411 }; private int batt = 0; private string guid = Guid.NewGuid().ToString(); public static ConcurrentQueue t_Frame = new ConcurrentQueue(); public static ConcurrentQueue forListing = new ConcurrentQueue(); private bool stepping = true; private int playstepping = 0; private long numberCurr = 0L; private long numberOld = 0L; private long startFrame = 0L; private InOutSocket socket; private static ConcurrentDictionary video = new ConcurrentDictionary(); private DateTime start = DateTime.Now; private DateTime timeFrame = DateTime.Now; private string SerialNumberPhone = ""; private string PhoneSerialNumber = ""; private Decoder decode = null; private static string hard = ""; private static string brand = ""; private static string model = ""; private DateTime start_status = DateTime.Now; private DateTime clear_status = DateTime.Now; private char suf_i = '-'; private int time_i = 0; private object syncOS = new object(); private bool setAutomate = false; private ConcurrentQueue bufarh = new ConcurrentQueue(); private List listCamResol = new List(); private static readonly string[] extResol = new string[192] { "kirin980:4:176:144", "kirin980:4:208:144", "kirin980:4:352:288", "kirin980:4:736:412", "kirin980:4:720:720", "kirin980:4:1440:720", "kirin980:4:1456:1456", "kirin980:4:1440:1080", "kirin980:4:1456:1456", "kirin980:4:1440:1080", "kirin980:4:3840:2160", "kirin980:4:2448:2448", "kirin980:4:2448:2448", "kirin980:4:3840:2160", "kirin980:4:3264:2448", "kirin980:3:176:144", "kirin980:3:208:144", "kirin980:3:352:288", "kirin980:3:400:400", "kirin980:3:480:360", "kirin980:3:544:408", "kirin980:3:736:412", "kirin980:3:720:540", "kirin980:3:720:720", "kirin980:3:1248:1080", "kirin980:3:1440:720", "kirin980:3:1680:720", "kirin980:3:1456:1456", "kirin980:3:1440:1080", "kirin980:3:2336:1080", "kirin980:3:2592:1952", "kirin980:3:2592:1952", "kirin980:3:2448:2448", "kirin980:3:3264:2448", "kirin980:3:3280:2448", "kirin980:3:2736:2736", "kirin980:3:3648:2736", "kirin980:3:3840:3840", "kirin980:3:5120:2368", "kirin980:3:5120:2448", "kirin980:3:5120:3840", "kirin980:2:176:144", "kirin980:2:208:144", "kirin980:2:352:288", "kirin980:2:400:400", "kirin980:2:480:360", "kirin980:2:544:408", "kirin980:2:736:412", "kirin980:2:720:540", "kirin980:2:720:720", "kirin980:2:1440:720", "kirin980:2:1456:1456", "kirin980:2:1440:1080", "kirin980:2:1552:720", "kirin980:2:1456:1456", "kirin980:2:1440:1080", "kirin980:2:2592:1952", "kirin980:2:2448:2448", "kirin980:2:2736:2736", "kirin980:2:3264:2448", "kirin980:2:3280:2448", "kirin980:2:3648:2736", "kirin980:2:3840:2160", "kirin980:1:176:144", "kirin980:1:208:144", "kirin980:1:352:288", "kirin980:1:720:720", "kirin980:1:1440:720", "kirin980:1:1440:1080", "kirin980:1:1552:720", "kirin980:1:2336:1080", "kirin980:1:2160:1080", "kirin980:1:3264:2448", "kirin980:0:3648:2736", "kirin980:0:176:144", "kirin980:0:208:144", "kirin980:0:352:288", "kirin980:0:400:400", "kirin980:0:480:360", "kirin980:0:544:408", "kirin980:0:736:412", "kirin980:0:720:540", "kirin980:0:720:720", "kirin980:0:1440:720", "kirin980:0:1680:720", "kirin980:0:1456:1456", "kirin980:0:1440:1080", "kirin980:0:1552:720", "kirin980:0:2592:1952", "kirin980:0:2592:1952", "kirin980:0:2448:2448", "kirin980:0:2736:2736", "kirin980:0:3008:2256", "kirin980:0:3840:2160", "kirin980:0:3120:2340", "kirin980:0:3264:2448", "kirin980:0:2336:1080", "kirin980:0:3280:2448", "kirin990:0:176:144", "kirin990:0:208:144", "kirin990:0:352:288", "kirin990:0:400:400", "kirin990:0:480:360", "kirin990:0:544:408", "kirin990:0:736:412", "kirin990:0:720:540", "kirin990:0:720:720", "kirin990:0:1440:720", "kirin990:0:1584:720", "kirin990:0:1712:720", "kirin990:0:1440:1080", "kirin990:0:1456:1456", "kirin990:0:2592:1952", "kirin990:0:2448:2448", "kirin990:0:2160:1080", "kirin990:0:3120:2340", "kirin990:0:2736:2736", "kirin990:0:2288:1080", "kirin990:0:3280:2448", "kirin990:0:1520:720", "kirin990:1:176:144", "kirin990:1:208:144", "kirin990:1:352:288", "kirin990:1:720:720", "kirin990:1:1440:720", "kirin990:1:1440:1080", "kirin990:1:1584:720", "kirin990:1:2160:1080", "kirin990:1:2448:2448", "kirin990:1:2288:1080", "kirin990:1:1552:720", "kirin990:2:176:144", "kirin990:2:208:144", "kirin990:2:352:288", "kirin990:2:400:400", "kirin990:2:480:360", "kirin990:2:544:408", "kirin990:2:736:412", "kirin990:2:720:540", "kirin990:2:720:720", "kirin990:2:1440:720", "kirin990:2:1584:720", "kirin990:2:1712:720", "kirin990:2:1440:1080", "kirin990:2:1456:1456", "kirin990:2:2592:1952", "kirin990:2:2448:2448", "kirin990:2:2160:1080", "kirin990:2:3120:2340", "kirin990:2:2736:2736", "kirin990:2:3280:2448", "kirin990:3:176:144", "kirin990:3:208:144", "kirin990:3:352:288", "kirin990:3:720:720", "kirin990:3:1440:720", "kirin990:3:1440:1080", "kirin990:3:1584:720", "kirin990:3:2160:1080", "kirin990:3:2288:1080", "kirin990:3:1552:720", "kirin990:4:176:144", "kirin990:4:208:144", "kirin990:4:352:288", "kirin990:4:400:400", "kirin990:4:480:360", "kirin990:4:544:408", "kirin990:4:736:412", "kirin990:4:720:540", "kirin990:4:720:720", "kirin990:4:1248:1080", "kirin990:4:1200:1080", "kirin990:4:1440:720", "kirin990:4:1456:1456", "kirin990:4:1440:1080", "kirin990:4:2592:1952", "kirin990:4:2160:1080", "kirin990:4:2592:2592", "kirin990:6:176:144", "kirin990:6:208:144", "kirin990:6:352:288", "kirin990:6:736:412", "kirin990:6:720:540", "kirin990:6:720:720", "kirin990:6:1440:720", "kirin990:6:1680:720", "kirin990:6:1456:1456", "kirin990:6:1440:1080", "kirin990:6:2336:1080", "kirin990:6:2448:2448", "kirin990:6:4000:1816", "kirin990:6:4000:2250" }; private DateTime update = DateTime.Now; private Point MousePosition = new Point(0, 0); private DateTime oldkeytime = DateTime.Now; private List list1 = new List(); private List list2 = new List(); private List list3 = new List(); private List list4 = new List(); private List list5 = new List(); private List list6 = new List(); private List list7 = new List(); private List list8 = new List(); private List list9 = new List(); private List endls; private string xmlFileName = ""; private bool test = false; private ConcurrentQueue inp_byte = new ConcurrentQueue(); private ConcurrentQueue out_byte = new ConcurrentQueue(); private DateTime start_test; private DateTime thisDate; private DateTime buildDate; private ConcurrentQueue logkeys = new ConcurrentQueue(); private IContainer components = null; private ContextMenuStrip contextMenuStrip1; private Timer timer1; private ListBox listBox1; private UCPictureBox FrontVideo; private TabControl tabControl1; private TabPage tabPage1; private TabPage tabPage2; private WebBrowser webBrowser1; private Panel panel4; private Label label5; private Panel panel5; private Panel panel6; private TabPage tabPage3; private PictureBox pictureBox5; private Button button1; private LinkLabel linkLabel1; private Button button2; private Label label7; private SplitContainer splitContainer1; private FlowLayoutPanel panel7; private TableLayoutPanel tableLayoutPanel1; private PictureBox pContrast; private PictureBox pBright; public ComboBox BitRateBox; private HScrollBar Exposure; private HScrollBar Zoom; private HScrollBar Focuse; private HScrollBar Contrast; private HScrollBar Brightness; private Panel panel3; private ComboBox comboBox1; private Panel panel_chenal; private MaskedTextBox chenal; private Label label1; private CheckBox checkBox_saveVideo; private TableLayoutPanel tableLayoutPanel2; private Button button4; private Button button5; private Button button3; private Button button6; private Label lSTime; private Label label2; private Label lDuration; private Label label4; private Label lFocus; private Label lISO; private Label label3; private Label label6; private Label lAperture; private Label label10; private TableLayoutPanel tableLayoutPanel3; private HScrollBar ISO; private Label labelISO; private Button button7; private HScrollBar FPS; private Label labelExp; private Label labelFPS; private ListBox listBox3; private ComboBox comboBox2; private Button button8; private Label IBitRateV; private Label label8; private Label label11; private Label label9; private Label IBitRateI; private Label IBitRateO; private Label IByteRateO; private Label label14; private Label IByteRateI; private Label label13; private Label IByteRateV; private Label label12; private PictureBox huawei; private Label label15; private Button button9; private PictureBox samsung; private Panel panel1; private Panel panel8; private Panel panel9; private Label label18; private Label label17; private Label label16; private Panel panel2; private Panel panel10; private Label waitServer; private Label waitPhone; private Label serialNumber; private Label label19; private Label IFPSV; private Label label20; private PictureBox asus; private Timer SaveXML; private TableLayoutPanel tableLayoutPanel4; private Label label21; private Label label22; private Label label23; private Label label24; private Label label25; private Label label26; private Label label27; private Label label28; private Label label29; private Label l1; private Label l2; private Label l3; private Label l4; private Label l5; private Label l6; private Label l7; private Label l8; private Label l9; private Label IPPS; private void ShowVideo(Bitmap img) { Image image = FrontVideo.Image; if (img == null) { img = decode.GetImg(numberCurr); if (img == null) { return; } } if (((ScrollBar)Brightness).Value != 0) { BrightnessCorrection brightnessCorrection = new BrightnessCorrection(((ScrollBar)Brightness).Value); brightnessCorrection.ApplyInPlace(img); } if (((ScrollBar)Contrast).Value != 0) { ContrastCorrection contrastCorrection = new ContrastCorrection(((ScrollBar)Contrast).Value); contrastCorrection.ApplyInPlace(img); } LevelsLinear levelsLinear = new LevelsLinear(); levelsLinear.ApplyInPlace(img); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)this).Text = $"讀者 {((Image)img).Width}x{((Image)img).Height}"; }); ((Control)FrontVideo).Invoke((Delegate)(Action)delegate { FrontVideo.Image = (Image)(object)img; }); ((Control)FrontVideo).Invoke((Delegate)(Action)delegate { ((Control)FrontVideo).Refresh(); }); if (image != null) { image.Dispose(); } } private void Show2Video(Bitmap img) { if (decode == null) { return; } if (numberCurr < decode.min) { numberCurr = decode.min; } if (numberCurr > decode.max) { numberCurr = decode.max; } if (numberOld != numberCurr) { numberOld = numberCurr; ShowVideo(img); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label19).Text = decode.count.ToString(); }); } } private void setBMH(string br, string mo, string ha) { brand = br; model = mo; hard = ha; string text = ""; if (File.Exists("model")) { text = File.ReadAllText("model"); } string[] array = text.Split(new char[1] { ';' }); foreach (string text2 in array) { if (text2.Trim().Length > 0) { string text3 = text2.Split(new char[1] { ':' })[1]; if (text3 == br) { br = ""; } if (text3 == mo) { mo = ""; } if (text3 == ha) { ha = ""; } } } List list = new List(); if (br.Trim().Length > 0) { list.Add($"brand:{br};"); } if (mo.Trim().Length > 0) { list.Add($"model:{mo};"); } if (ha.Trim().Length > 0) { list.Add($"hard:{ha};"); } if (list.Count > 0) { File.AppendAllLines("model", list); } } private void timer1_Tick(object sender, EventArgs e) { DateTime now = DateTime.Now; if (list1.Count == 0 && ((Control)label21).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label21).BackColor = Color.Transparent; }); } if (list1.Count > 0 && ((Control)label21).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label21).BackColor = Color.LightGreen; }); } if (list2.Count == 0 && ((Control)label22).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label22).BackColor = Color.Transparent; }); } if (list2.Count > 0 && ((Control)label22).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label22).BackColor = Color.LightGreen; }); } if (list3.Count == 0 && ((Control)label23).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label23).BackColor = Color.Transparent; }); } if (list3.Count > 0 && ((Control)label23).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label23).BackColor = Color.LightGreen; }); } if (list4.Count == 0 && ((Control)label24).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label24).BackColor = Color.Transparent; }); } if (list4.Count > 0 && ((Control)label24).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label24).BackColor = Color.LightGreen; }); } if (list5.Count == 0 && ((Control)label25).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label25).BackColor = Color.Transparent; }); } if (list5.Count > 0 && ((Control)label25).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label25).BackColor = Color.LightGreen; }); } if (list6.Count == 0 && ((Control)label26).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label26).BackColor = Color.Transparent; }); } if (list6.Count > 0 && ((Control)label26).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label26).BackColor = Color.LightGreen; }); } if (list7.Count == 0 && ((Control)label27).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label27).BackColor = Color.Transparent; }); } if (list7.Count > 0 && ((Control)label27).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label27).BackColor = Color.LightGreen; }); } if (list8.Count == 0 && ((Control)label28).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label28).BackColor = Color.Transparent; }); } if (list8.Count > 0 && ((Control)label28).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label28).BackColor = Color.LightGreen; }); } if (list9.Count == 0 && ((Control)label29).BackColor != Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label29).BackColor = Color.Transparent; }); } if (list9.Count > 0 && ((Control)label29).BackColor == Color.Transparent) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label29).BackColor = Color.LightGreen; }); } if (int.Parse(((Control)l1).Text) != list1.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l1).Text = list1.Count.ToString(); }); } if (int.Parse(((Control)l2).Text) != list2.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l2).Text = list2.Count.ToString(); }); } if (int.Parse(((Control)l3).Text) != list3.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l3).Text = list3.Count.ToString(); }); } if (int.Parse(((Control)l4).Text) != list4.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l4).Text = list4.Count.ToString(); }); } if (int.Parse(((Control)l5).Text) != list5.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l5).Text = list5.Count.ToString(); }); } if (int.Parse(((Control)l6).Text) != list6.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l6).Text = list6.Count.ToString(); }); } if (int.Parse(((Control)l7).Text) != list7.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l7).Text = list7.Count.ToString(); }); } if (int.Parse(((Control)l8).Text) != list8.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l8).Text = list8.Count.ToString(); }); } if (int.Parse(((Control)l9).Text) != list9.Count) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)l9).Text = list9.Count.ToString(); }); } if ((now - clear_status).TotalSeconds > 10.0) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IFPSV).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IBitRateV).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IByteRateV).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IBitRateI).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IByteRateI).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IBitRateO).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IPPS).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IByteRateO).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)serialNumber).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitPhone).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitPhone).BackColor = SystemColors.Control; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitServer).Text = ""; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitServer).BackColor = SystemColors.Control; }); clear_status = now; } if (time_i++ > 5) { if (suf_i == '-') { suf_i = '\\'; } else if (suf_i == '\\') { suf_i = '|'; } else if (suf_i == '|') { suf_i = '/'; } else if (suf_i == '/') { suf_i = '-'; } ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IBitRateI).Text = string.Format("{1} {0,15:### ### ### ###}", socket.bitratein * 8, suf_i); }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IByteRateI).Text = string.Format("{1} {0,15:### ### ### ###}", socket.bitratein, suf_i); }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IBitRateO).Text = string.Format("{1} {0,15:### ### ### ###}", socket.bitrateout * 8, suf_i); }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IByteRateO).Text = string.Format("{1} {0,15:### ### ### ###}", socket.bitrateout, suf_i); }); time_i = 0; } string result = ""; ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label17).Text = decode.min.ToString(); }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label16).Text = numberCurr.ToString(); }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)label18).Text = decode.max.ToString(); }); while (forListing.TryDequeue(out result)) { result = $"{now} {result}"; listBox1.Items.Add((object)result); ((ListControl)listBox1).SelectedIndex = listBox1.Items.Count - 1; } if ((now - start_status).TotalMilliseconds > 500.0) { WriteCommand("status", $"{now.Ticks.ToString()}={guid}"); start_status = now; } if (!SerialNumberPhone.Equals(PhoneSerialNumber)) { WriteCommand("GetCameraInfo", ""); ((Control)this).Invoke((Delegate)(Action)delegate { Thread.Sleep(700); SerialNumber_DoubleClick(null, null); }); string[] spar = SerialNumberPhone.Split(new char[1] { '|' }); if (spar.Length != 0) { ((Control)this).Invoke((Delegate)(Action)delegate { if (spar[1].ToLower().Equals("samsung")) { ((Control)samsung).Visible = true; ((Control)huawei).Visible = false; ((Control)asus).Visible = false; } else if (spar[1].ToLower().Equals("huawei")) { ((Control)samsung).Visible = false; ((Control)huawei).Visible = true; ((Control)asus).Visible = false; } else if (spar[1].ToLower().Equals("asus")) { ((Control)samsung).Visible = false; ((Control)huawei).Visible = false; ((Control)asus).Visible = true; } else { ((Control)samsung).Visible = false; ((Control)huawei).Visible = false; } listBox3.Items.Clear(); listBox3.Items.Add((object)$"serial number: \t{spar[0]}"); listBox3.Items.Add((object)$"bremd: \t\t{spar[1]}"); listBox3.Items.Add((object)$"model: \t\t{spar[3]}"); listBox3.Items.Add((object)$"hardware: \t\t{spar[4]}"); setBMH(spar[1], spar[3], spar[4]); listBox3.Items.Add((object)$"version: \t\t{spar[2]}"); comboBox2.Items.Clear(); string text = ((Control)comboBox1).Text; comboBox1.Items.Clear(); comboBox1.Items.AddRange(new object[3] { "1920 x 1080 x 30", "1280 x 720 x 120", "1280 x 720 x 240" }); ((Control)comboBox1).Text = text; ((Control)comboBox2).Visible = false; }); } PhoneSerialNumber = SerialNumberPhone; StartReStart(); ((Control)this).Invoke((Delegate)(Action)delegate { Thread.Sleep(1000); SerialNumber_DoubleClick(null, null); }); } if (decode != null) { if (stepping) { numberCurr = decode.max; Show2Video(null); } else { numberCurr += playstepping; Show2Video(null); } } } public void ListBoxAdd(string str) { forListing.Enqueue(str); } private byte[] XmlOut(string str, string param) { if (!str.Equals("status")) { ListBoxAdd($"{DateTime.Now:HH:mm:ss:fff}: [{str}]{param}"); } byte[] bytes = Encoding.ASCII.GetBytes($"={str}={param}"); bytes[0] = 1; return bytes; } public void Write(byte[] buf) { if (socket != null) { socket.write(buf, (byte)(Settings.Default.Chenal + 100)); } } public void Read(double tick) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitServer).Text = $"{tick:#0.0000}"; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitServer).BackColor = getColorWait(tick); }); } private Color getColorWait(double d) { Color result = Color.Lime; if (d > 10000.0) { result = Color.Crimson; } else if (d > 7000.0) { result = Color.Red; } else if (d > 5000.0) { result = Color.OrangeRed; } else if (d > 3000.0) { result = Color.Tomato; } else if (d > 2500.0) { result = Color.DarkOrange; } else if (d > 2000.0) { result = Color.Orange; } else if (d > 1500.0) { result = Color.Gold; } else if (d > 1000.0) { result = Color.Yellow; } else if (d > 500.0) { result = Color.GreenYellow; } return result; } public int Read(byte[] buf) { if (buf[0] == 0) { using SHA1CryptoServiceProvider sHA1CryptoServiceProvider = new SHA1CryptoServiceProvider(); ListBoxAdd(string.Format("{0}:{1}", buf.Length.ToString(), BitConverter.ToString(sHA1CryptoServiceProvider.ComputeHash(buf)).Replace("-", ""))); Console.WriteLine("2 {0}:{1}", buf.Length, BitConverter.ToString(buf, 0, 20)); } else if (buf[0] == 10) { using MemoryStream memoryStream = new MemoryStream(); using MemoryStream stream = new MemoryStream(buf.Skip(1).ToArray()); using (GZipStream gZipStream = new GZipStream(stream, CompressionMode.Decompress)) { gZipStream.CopyTo(memoryStream); } bufarh.Enqueue(Encoding.ASCII.GetString(memoryStream.ToArray())); } else if (buf[0] == 1) { string[] array = Encoding.ASCII.GetString(buf.Skip(1).ToArray()).Split(new char[1] { '=' }); if (array[0].Equals("result")) { ListBoxAdd(Encoding.ASCII.GetString(buf.Skip(1).ToArray())); } if (array[0].Equals("result")) { Console.WriteLine(array[1]); } if (array[0].Equals("result")) { string[] array2 = array[1].Split(new string[1] { "fps:" }, StringSplitOptions.None); if (array2.Length > 1 && int.TryParse(array2[1].Trim(), out var result)) { Program.FrameRate = result; ListBoxAdd("(" + Program.FrameRate + " fps)"); } } if (array[0].Equals("serial")) { SerialNumberPhone = array[1]; } else if (array[0].Equals("battery")) { int.TryParse(array[2], out batt); SetBatt(); } else if (array[0].Equals("result_params")) { ListBoxAdd(array[1]); } else if (array[0].Equals("error")) { ListBoxAdd(array[1]); if (array.Length == 2) { File.AppendAllText($"{Directory.GetCurrentDirectory()}\\{DateTime.Now:yyMMdd}.err", array[1]); } else if (array.Length > 2) { File.AppendAllText($"{Directory.GetCurrentDirectory()}\\{DateTime.Now:yyMMdd}t.err", $"{DateTime.Now:HH:mm:ss:fff} {Encoding.ASCII.GetString(buf.Skip(1).ToArray())}\n"); File.AppendAllText($"{Directory.GetCurrentDirectory()}\\{DateTime.Now:yyMMdd}.err", $"{DateTime.Now:HH:mm:ss:fff}({array[2]}) {array[1]}"); } Thread.Sleep(10); } else if (array[0].Equals("status")) { SerialNumberPhone = array[3]; if (!long.TryParse(array[1], out var result2)) { result2 = 0L; } long num = DateTime.Now.Ticks - result2; if (array.Length > 2 && array[2].Equals(guid)) { if (int.TryParse(array[4], out var i) && i > 0) { i += ((ScrollBar)ISO).LargeChange; if (((ScrollBar)ISO).Minimum != i) { ((Control)ISO).Invoke((Delegate)(Action)delegate { ((ScrollBar)ISO).Minimum = i + ((ScrollBar)ISO).SmallChange; }); } } if (int.TryParse(array[5], out i) && i > 0) { i += ((ScrollBar)ISO).LargeChange; if (((ScrollBar)ISO).Maximum != i) { ((Control)ISO).Invoke((Delegate)(Action)delegate { ((ScrollBar)ISO).Maximum = i; }); } } if (int.TryParse(array[6], out i) && i > 0) { i += ((ScrollBar)FPS).LargeChange; if (((ScrollBar)FPS).Maximum != i) { setAutomate = true; bool flag = ((ScrollBar)FPS).Value + ((ScrollBar)FPS).LargeChange + ((ScrollBar)FPS).SmallChange == ((ScrollBar)FPS).Maximum; ((Control)FPS).Invoke((Delegate)(Action)delegate { ((ScrollBar)FPS).Maximum = i; }); if (flag) { ((Control)FPS).Invoke((Delegate)(Action)delegate { ((ScrollBar)FPS).Value = i - ((ScrollBar)FPS).LargeChange + ((ScrollBar)FPS).SmallChange; }); } setAutomate = false; } } double dst = num / 10000; ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitPhone).Text = $"{dst,12:0.0000}"; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)waitPhone).BackColor = getColorWait(dst); }); } } } else if (buf[0] == 3) { decode.AddNNFrame(buf.Skip(1).ToArray()); } else if (buf[0] == 4) { decode.AddFrameArray(buf.Skip(1).ToArray()); } else if (buf[0] == 5) { Write(buf); } else if (buf[0] == 6) { Write(buf.Take(10).ToArray()); ListBoxAdd(BitConverter.ToString(buf.Take(10).ToArray())); } else if (buf[0] == 77) { if ((DateTime.Now - update).Milliseconds > 300) { string[] par = Encoding.ASCII.GetString(buf.Skip(1).ToArray()).Split(new char[1] { ';' }); ((Control)tableLayoutPanel1).Invoke((Delegate)(Action)delegate { ((Control)lISO).Text = par[2]; ((Control)lDuration).Text = par[3]; ((Control)lAperture).Text = par[4]; if (double.TryParse(par[5].Replace('.', ','), out var result5)) { ((Control)lFocus).Text = $"{((result5 == 0.0) ? 0.0 : (1.0 / result5)):#.000}m"; } ((Control)lSTime).Text = $"1/{((int.Parse(par[6]) != 0) ? (1000000000 / int.Parse(par[6])) : 0)}"; }); update = DateTime.Now; } } else if (buf[0] == 7) { if (!models.Contains(model.GetHashCode())) { listCamResol.Clear(); using (MemoryStream memoryStream2 = new MemoryStream()) { using MemoryStream stream2 = new MemoryStream(buf.Skip(1).ToArray()); using (GZipStream gZipStream2 = new GZipStream(stream2, CompressionMode.Decompress)) { gZipStream2.CopyTo(memoryStream2); } string[] array3 = Encoding.ASCII.GetString(memoryStream2.ToArray()).Replace('x', ':').Replace(";", ":30:30;") .Split(new char[1] { ';' }); List list = new List(); int result3 = 0; int result4 = 0; string[] array4 = array3; foreach (string text in array4) { try { string[] array5 = text.Split(new char[1] { ':' }); int.TryParse(array5[1], out result3); int.TryParse(array5[2], out result4); int num3 = algorithmEvklid(result3, result4); if (!extResol.Contains($"{hard}:{array5[0]}:{array5[1]}:{array5[2]}")) { list.Add(text); } } catch (Exception) { } } listCamResol.AddRange(list); } updateCameraList(); } } else if (buf[0] == 8) { byte[] value = buf.Reverse().ToArray(); double num4 = BitConverter.ToInt32(value, 0) / 1000; int byterate = (int)Math.Round((double)BitConverter.ToInt32(buf.Reverse().ToArray(), 4) / num4); int fps = (int)Math.Round((double)(int)BitConverter.ToUInt16(buf.Reverse().ToArray(), 8) / num4); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IFPSV).Text = $"{fps}"; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IBitRateV).Text = $"{byterate * 8,15:### ### ### ###}"; }); ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)IByteRateV).Text = $"{byterate:### ### ### ###}"; }); } else if (buf[0] == 9 && !models.Contains(model.GetHashCode())) { using (MemoryStream memoryStream3 = new MemoryStream()) { using MemoryStream stream3 = new MemoryStream(buf.Skip(1).ToArray()); using (GZipStream gZipStream3 = new GZipStream(stream3, CompressionMode.Decompress)) { gZipStream3.CopyTo(memoryStream3); } string[] array6 = Encoding.ASCII.GetString(memoryStream3.ToArray()).Split(new char[1] { ';' }); if (!brand.Equals("asus")) { List list2 = new List(); string[] array7 = array6; foreach (string text2 in array7) { string[] array8 = text2.Split(new char[1] { ':' }); if (array8.Length <= 3) { continue; } for (int num6 = 30; num6 <= 60; num6 += 5) { if (int.Parse(array8[3]) < num6 && int.Parse(array8[4]) > num6) { string item = string.Format("{0}:{1}:{2}:{3}:{3}", array8[0], array8[1], array8[2], num6); if (!list2.Contains(item)) { list2.Add(item); } } } } listCamResol.AddRange(list2); } listCamResol.AddRange(array6); } updateCameraList(); } return buf.Length; } private void updateCameraList() { foreach (string zn in listCamResol) { if (!comboBox2.Items.Contains((object)zn.Split(new char[1] { ':' })[0])) { ((Control)this).Invoke((Delegate)(Action)delegate { comboBox2.Items.Add((object)zn.Split(new char[1] { ':' })[0]); }); } } if (comboBox2.Items.Count > 0) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)comboBox2).Visible = true; comboBox1.Items.Clear(); ((Control)comboBox2).Text = ""; ((Control)comboBox1).Text = ""; }); } } public static int algorithmEvklid(int a, int b) { int result = 0; while (b != 0 && a != 0) { if (a > b) { a %= b; } else { b %= a; } result = a + b; } return result; } private void SetBatt() { ((Control)label5).Invoke((Delegate)(Action)delegate { ((Control)label5).Text = $"{batt}%"; }); ((Control)label5).Invoke((Delegate)(Action)delegate { ((Control)label5).ForeColor = Color.Black; }); Color col = Color.DarkGreen; Color colt = Color.White; if (batt < 5) { col = Color.DarkRed; colt = Color.White; } else if (batt < 10) { col = Color.Red; colt = Color.Black; } else if (batt < 20) { col = Color.OrangeRed; colt = Color.Black; } else if (batt < 30) { col = Color.Yellow; colt = Color.Black; } else if (batt < 50) { col = Color.GreenYellow; colt = Color.Black; } else if (batt < 65) { col = Color.YellowGreen; colt = Color.Black; } else if (batt < 75) { col = Color.Green; colt = Color.White; } ((Control)label5).Invoke((Delegate)(Action)delegate { ((Control)label5).BackColor = col; }); ((Control)panel5).Invoke((Delegate)(Action)delegate { ((Control)panel5).BackColor = col; }); ((Control)label5).Invoke((Delegate)(Action)delegate { ((Control)label5).ForeColor = colt; }); ((Control)panel6).Invoke((Delegate)(Action)delegate { ((Control)panel6).BackColor = SystemColors.Control; }); ((Control)panel6).Invoke((Delegate)(Action)delegate { ((Control)panel6).Width = ((Control)panel5).Width - (int)((double)((Control)panel5).Width / 100.0 * (double)batt); }); } private void WriteCommand(string str, string param) { Write(XmlOut(str, param)); } private void positionNumber(List ls) { if (endls != ls) { endls = ls; numberCurr = decode.max; } if (ls.Count == 0) { return; } ls.Sort((long x, long y) => -x.CompareTo(y)); foreach (long l in ls) { if (l < numberCurr) { stepping = false; playstepping = 0; numberCurr = l; return; } } numberCurr = ls[0]; } private void Form1_KeyDown(object sender, KeyEventArgs e) { //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Invalid comparison between Unknown and I4 //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Invalid comparison between Unknown and I4 //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0156: Invalid comparison between Unknown and I4 //IL_09ed: Unknown result type (might be due to invalid IL or missing references) //IL_09f4: Invalid comparison between Unknown and I4 //IL_0a29: Unknown result type (might be due to invalid IL or missing references) //IL_0a30: Invalid comparison between Unknown and I4 //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Invalid comparison between Unknown and I4 //IL_0a98: Unknown result type (might be due to invalid IL or missing references) //IL_0a9e: Invalid comparison between Unknown and I4 //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Invalid comparison between Unknown and I4 //IL_0acb: Unknown result type (might be due to invalid IL or missing references) //IL_0ad2: Invalid comparison between Unknown and I4 //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Invalid comparison between Unknown and I4 //IL_0a6f: Unknown result type (might be due to invalid IL or missing references) //IL_0a79: Invalid comparison between Unknown and I4 //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_01b6: Invalid comparison between Unknown and I4 //IL_01d4: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Invalid comparison between Unknown and I4 //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Invalid comparison between Unknown and I4 //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_0210: Invalid comparison between Unknown and I4 //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_021a: Invalid comparison between Unknown and I4 //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Invalid comparison between Unknown and I4 //IL_0245: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Invalid comparison between Unknown and I4 //IL_026a: Unknown result type (might be due to invalid IL or missing references) //IL_0274: Invalid comparison between Unknown and I4 //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_027e: Invalid comparison between Unknown and I4 //IL_029c: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Invalid comparison between Unknown and I4 //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Invalid comparison between Unknown and I4 //IL_02ce: Unknown result type (might be due to invalid IL or missing references) //IL_02d8: Invalid comparison between Unknown and I4 //IL_02db: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Invalid comparison between Unknown and I4 //IL_0300: Unknown result type (might be due to invalid IL or missing references) //IL_0307: Invalid comparison between Unknown and I4 //IL_0327: Unknown result type (might be due to invalid IL or missing references) //IL_032e: Invalid comparison between Unknown and I4 //IL_034e: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Invalid comparison between Unknown and I4 //IL_0375: Unknown result type (might be due to invalid IL or missing references) //IL_037c: Invalid comparison between Unknown and I4 //IL_039c: Unknown result type (might be due to invalid IL or missing references) //IL_03a3: Invalid comparison between Unknown and I4 //IL_03c3: Unknown result type (might be due to invalid IL or missing references) //IL_03ca: Invalid comparison between Unknown and I4 //IL_03ea: Unknown result type (might be due to invalid IL or missing references) //IL_03f1: Invalid comparison between Unknown and I4 //IL_0411: Unknown result type (might be due to invalid IL or missing references) //IL_0418: Invalid comparison between Unknown and I4 //IL_0438: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Invalid comparison between Unknown and I4 //IL_045f: Unknown result type (might be due to invalid IL or missing references) //IL_0466: Invalid comparison between Unknown and I4 //IL_04dd: Unknown result type (might be due to invalid IL or missing references) //IL_04e4: Invalid comparison between Unknown and I4 //IL_050d: Unknown result type (might be due to invalid IL or missing references) //IL_0517: Invalid comparison between Unknown and I4 //IL_051a: Unknown result type (might be due to invalid IL or missing references) //IL_0524: Invalid comparison between Unknown and I4 //IL_0550: Unknown result type (might be due to invalid IL or missing references) //IL_055a: Invalid comparison between Unknown and I4 //IL_055d: Unknown result type (might be due to invalid IL or missing references) //IL_0567: Invalid comparison between Unknown and I4 //IL_0593: Unknown result type (might be due to invalid IL or missing references) //IL_059d: Invalid comparison between Unknown and I4 //IL_05a0: Unknown result type (might be due to invalid IL or missing references) //IL_05aa: Invalid comparison between Unknown and I4 //IL_05d6: Unknown result type (might be due to invalid IL or missing references) //IL_05e0: Invalid comparison between Unknown and I4 //IL_05e3: Unknown result type (might be due to invalid IL or missing references) //IL_05ed: Invalid comparison between Unknown and I4 //IL_0619: Unknown result type (might be due to invalid IL or missing references) //IL_0623: Invalid comparison between Unknown and I4 //IL_0677: Unknown result type (might be due to invalid IL or missing references) //IL_0681: Invalid comparison between Unknown and I4 //IL_06d5: Unknown result type (might be due to invalid IL or missing references) //IL_06df: Invalid comparison between Unknown and I4 //IL_06e2: Unknown result type (might be due to invalid IL or missing references) //IL_06e9: Invalid comparison between Unknown and I4 //IL_0714: Unknown result type (might be due to invalid IL or missing references) //IL_071e: Invalid comparison between Unknown and I4 //IL_0721: Unknown result type (might be due to invalid IL or missing references) //IL_0728: Invalid comparison between Unknown and I4 //IL_0753: Unknown result type (might be due to invalid IL or missing references) //IL_075d: Invalid comparison between Unknown and I4 //IL_0760: Unknown result type (might be due to invalid IL or missing references) //IL_0767: Invalid comparison between Unknown and I4 //IL_0791: Unknown result type (might be due to invalid IL or missing references) //IL_079b: Invalid comparison between Unknown and I4 //IL_079e: Unknown result type (might be due to invalid IL or missing references) //IL_07a5: Invalid comparison between Unknown and I4 //IL_07cf: Unknown result type (might be due to invalid IL or missing references) //IL_07d9: Invalid comparison between Unknown and I4 //IL_07dc: Unknown result type (might be due to invalid IL or missing references) //IL_07e3: Invalid comparison between Unknown and I4 //IL_080d: Unknown result type (might be due to invalid IL or missing references) //IL_0817: Invalid comparison between Unknown and I4 //IL_081a: Unknown result type (might be due to invalid IL or missing references) //IL_0821: Invalid comparison between Unknown and I4 //IL_084b: Unknown result type (might be due to invalid IL or missing references) //IL_0855: Invalid comparison between Unknown and I4 //IL_0858: Unknown result type (might be due to invalid IL or missing references) //IL_085f: Invalid comparison between Unknown and I4 //IL_0889: Unknown result type (might be due to invalid IL or missing references) //IL_0893: Invalid comparison between Unknown and I4 //IL_0896: Unknown result type (might be due to invalid IL or missing references) //IL_089d: Invalid comparison between Unknown and I4 //IL_08c7: Unknown result type (might be due to invalid IL or missing references) //IL_08d1: Invalid comparison between Unknown and I4 //IL_08d4: Unknown result type (might be due to invalid IL or missing references) //IL_08db: Invalid comparison between Unknown and I4 //IL_0905: Unknown result type (might be due to invalid IL or missing references) //IL_090f: Invalid comparison between Unknown and I4 //IL_0912: Unknown result type (might be due to invalid IL or missing references) //IL_0919: Invalid comparison between Unknown and I4 //IL_0943: Unknown result type (might be due to invalid IL or missing references) //IL_094a: Invalid comparison between Unknown and I4 //IL_096e: Unknown result type (might be due to invalid IL or missing references) //IL_0975: Invalid comparison between Unknown and I4 //IL_0999: Unknown result type (might be due to invalid IL or missing references) //IL_09a0: Invalid comparison between Unknown and I4 //IL_09c4: Unknown result type (might be due to invalid IL or missing references) //IL_09cb: Invalid comparison between Unknown and I4 e.Handled = false; logkeys.Enqueue($"{DateTime.Now:HH:mm:ss.fffffff}:{(DateTime.Now - oldkeytime).TotalMilliseconds}:{numberCurr}:{e.KeyCode}:{e.KeyData}:{e.KeyValue}:{e.Shift}:{e.Alt}:{e.Control}"); oldkeytime = DateTime.Now; if ((int)e.KeyCode == 27) { list1.Clear(); list2.Clear(); list3.Clear(); list4.Clear(); list5.Clear(); list6.Clear(); list7.Clear(); list8.Clear(); list9.Clear(); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 49) { positionNumber(list1); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 50) { positionNumber(list2); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 51) { positionNumber(list3); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 52) { positionNumber(list4); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 53) { positionNumber(list5); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 54) { positionNumber(list6); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 55) { positionNumber(list7); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 56) { positionNumber(list8); } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 57) { positionNumber(list9); } else if ((int)e.KeyCode == 49) { list1.Add(numberCurr); } else if ((int)e.KeyCode == 50) { list2.Add(numberCurr); } else if ((int)e.KeyCode == 51) { list3.Add(numberCurr); } else if ((int)e.KeyCode == 52) { list4.Add(numberCurr); } else if ((int)e.KeyCode == 53) { list5.Add(numberCurr); } else if ((int)e.KeyCode == 54) { list6.Add(numberCurr); } else if ((int)e.KeyCode == 55) { list7.Add(numberCurr); } else if ((int)e.KeyCode == 56) { list8.Add(numberCurr); } else if ((int)e.KeyCode == 57) { list9.Add(numberCurr); } else if ((int)e.KeyCode == 70 && MousePosition.X != 0 && MousePosition.Y != 0) { Point point = FrontVideo.rePoint(MousePosition); string str = "AF"; string param = $"{point.X},{point.Y},10,10"; WriteCommand(str, param); } else if ((int)e.KeyCode == 9) { WriteCommand("WhileBlack", "0"); e.Handled = true; } else if ((int)e.Modifiers == 131072 && (int)e.KeyCode == 189) { WriteCommand("ApertureMinus", "0"); e.Handled = true; } else if ((int)e.Modifiers == 131072 && (int)e.KeyCode == 187) { WriteCommand("AperturePlus", "0"); e.Handled = true; } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 189) { WriteCommand("BrightMinus", "0"); e.Handled = true; } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 187) { WriteCommand("BrightPlus", "0"); e.Handled = true; } else if ((int)e.KeyCode == 187) { if (((ScrollBar)Zoom).Maximum > ((ScrollBar)Zoom).Value) { HScrollBar zoom = Zoom; ((ScrollBar)zoom).Value = ((ScrollBar)zoom).Value + ((ScrollBar)Zoom).LargeChange; } e.Handled = true; } else if ((int)e.KeyCode == 189) { if (((ScrollBar)Zoom).Minimum < ((ScrollBar)Zoom).Value) { HScrollBar zoom2 = Zoom; ((ScrollBar)zoom2).Value = ((ScrollBar)zoom2).Value - ((ScrollBar)Zoom).LargeChange; } e.Handled = true; } else if ((int)e.Modifiers == 262144 && (int)e.KeyCode == 37) { numberCurr -= 120L; e.Handled = true; } else if ((int)e.Modifiers == 262144 && (int)e.KeyCode == 39) { numberCurr += 120L; e.Handled = true; } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 37) { numberCurr -= 4L; e.Handled = true; } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 39) { numberCurr += 4L; e.Handled = true; } else if ((int)e.Modifiers == 131072 && (int)e.KeyCode == 40) { numberCurr -= 3L; e.Handled = true; } else if ((int)e.Modifiers == 131072 && (int)e.KeyCode == 38) { numberCurr += 3L; e.Handled = true; } else if ((int)e.Modifiers == 131072 && (int)e.KeyCode == 37) { numberCurr -= 3L; e.Handled = true; } else if ((int)e.Modifiers == 131072 && (int)e.KeyCode == 39) { numberCurr += 3L; e.Handled = true; } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 40) { numberCurr -= 2L; e.Handled = true; } else if ((int)e.Modifiers == 65536 && (int)e.KeyCode == 38) { numberCurr += 2L; e.Handled = true; } else if ((int)e.KeyCode == 37) { numberCurr--; e.Handled = true; } else if ((int)e.KeyCode == 39) { numberCurr++; e.Handled = true; } else if ((int)e.KeyCode == 38) { numberCurr += 5L; e.Handled = true; } else if ((int)e.KeyCode == 40) { numberCurr -= 5L; e.Handled = true; } if ((int)e.KeyCode == 13) { stepping = !stepping; playstepping = 0; startFrame = numberCurr; e.Handled = true; } if ((int)e.KeyCode == 32) { stepping = false; if (playstepping == 0) { playstepping = ((Program.FrameRate == 240) ? 20 : ((Program.FrameRate == 120) ? 10 : 2)) * (((int)e.Modifiers != 65536) ? 1 : (-1)); } else { playstepping = 0; } e.Handled = true; } if ((int)e.KeyCode == 8) { stepping = false; playstepping = 0; numberCurr = startFrame; e.Handled = true; } if ((int)e.KeyCode == 112) { ((Control)webBrowser1).Visible = !((Control)webBrowser1).Visible; } if (!stepping) { if (((Control)FrontVideo).BackColor != Color.MidnightBlue) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)FrontVideo).BackColor = Color.MidnightBlue; ((Control)splitContainer1).BackColor = SystemColors.ActiveCaption; }); } } else if (((Control)FrontVideo).BackColor != SystemColors.Control) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)FrontVideo).BackColor = SystemColors.Control; ((Control)splitContainer1).BackColor = SystemColors.Control; }); } } private void повернутьToolStripMenuItem_Click(object sender, EventArgs e) { if (FrontVideo.Rotate == 0) { FrontVideo.Rotate = 90; } else if (FrontVideo.Rotate == 90) { FrontVideo.Rotate = 180; } else if (FrontVideo.Rotate == 180) { FrontVideo.Rotate = 270; } else if (FrontVideo.Rotate == 270) { FrontVideo.Rotate = 0; } ((Control)FrontVideo).Refresh(); } private void повернутьПротивЧасовойToolStripMenuItem_Click(object sender, EventArgs e) { if (FrontVideo.Rotate == 0) { FrontVideo.Rotate = 270; } else if (FrontVideo.Rotate == 270) { FrontVideo.Rotate = 180; } else if (FrontVideo.Rotate == 180) { FrontVideo.Rotate = 90; } else if (FrontVideo.Rotate == 90) { FrontVideo.Rotate = 0; } ((Control)FrontVideo).Refresh(); } private void стопToolStripMenuItem_Click(object sender, EventArgs e) { WriteCommand("stop", ""); Thread.Sleep(1000); } private void стартToolStripMenuItem_Click(object sender, EventArgs e) { //IL_0070: Unknown result type (might be due to invalid IL or missing references) xmlFileName = $"{DateTime.Now:yyyyMMddHHmmssffff}_complet.xml"; if (models.Contains(model.GetHashCode())) { return; } if (byte.TryParse(((Control)chenal).Text, out var result) && result > 0 && result < 100) { Settings.Default.Chenal = result; Settings.Default.BitRate = ((Control)BitRateBox).Text; Settings.Default.Specification = ((ListControl)comboBox1).SelectedIndex; Settings.Default.SaveVideo = checkBox_saveVideo.Checked; ((SettingsBase)Settings.Default).Save(); стопToolStripMenuItem_Click(sender, e); stepping = true; string param = ((Control)BitRateBox).Text.Replace("k", "000").Replace("M", "000000"); WriteCommand("BitRate", param); ((Control)labelFPS).Visible = true; ((Control)FPS).Visible = true; if (((Control)comboBox2).Visible) { string[] array = ((Control)comboBox1).Text.Split(new char[1] { ':' }); if (array[0].Trim().Length != 0 && array[1].Trim().Length != 0) { try { FrontVideo.SizeImage = new Size(int.Parse(array[0]), int.Parse(array[1])); WriteCommand("start", string.Format("{0};{1};{2}", ((Control)BitRateBox).Text.ToLower().Replace("k", "000").Replace("m", "000000"), ((Control)comboBox2).Text, ((Control)comboBox1).Text.Replace(':', ';'))); if (!brand.Equals("asus")) { ((Control)labelFPS).Visible = false; ((Control)FPS).Visible = false; } } catch (Exception) { ListBoxAdd("Error resolution."); } } else { ListBoxAdd("Error resolution."); } } else if (Settings.Default.Specification == 0) { WriteCommand("start", ""); FrontVideo.SizeImage = new Size(1920, 1080); } else if (Settings.Default.Specification == 1) { WriteCommand("startHI", ""); FrontVideo.SizeImage = new Size(1280, 720); } else if (Settings.Default.Specification == 2) { WriteCommand("startH2", ""); FrontVideo.SizeImage = new Size(1280, 720); } if (decode != null) { decode.Init(); } listBox1.Items.Clear(); } else { MessageBox.Show("Ошибка канала"); } } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { } private void pictureBox2_MouseClick(object sender, MouseEventArgs e) { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Invalid comparison between Unknown and I4 try { Point point = FrontVideo.rePoint(e.Location); if ((int)e.Button == 1048576) { string str = "ZoomPlus"; string param = $"{point.X},{point.Y}"; WriteCommand(str, param); } ListBoxAdd($"{e.X}:{e.Y} ({e.Location.X}:{e.Location.Y}) {point.X}:{point.Y}"); } catch (Exception ex) { Console.WriteLine(ex.Message); Console.WriteLine(ex.StackTrace); } } private void StartReStart() { Thread.Sleep(300); if (socket != null) { socket.opened = false; } Thread.Sleep(100); if (decode != null) { decode.Close(); } decode = new Decoder(); socket = new InOutSocket(this); } private void label5_DoubleClick(object sender, EventArgs e) { ((ScrollBar)Brightness).Value = 0; ShowVideo(null); } private void Контраст_DoubleClick(object sender, EventArgs e) { ((ScrollBar)Contrast).Value = 0; ShowVideo(null); } private void ValueChanged(object sender, EventArgs e) { ShowVideo(null); } private void pictureBox2_MouseDown(object sender, MouseEventArgs e) { //IL_0010: Unknown result type (might be due to invalid IL or missing references) ListBoxAdd($"B:{e.Button};L:{e.Location};X:{e.X};Y:{e.Y};real:{FrontVideo.rePoint(e.Location)})"); } private void listBox1_DoubleClick(object sender, EventArgs e) { ((Control)listBox1).Visible = false; } private void menuStrip1_DoubleClick(object sender, EventArgs e) { ((Control)listBox1).Visible = true; } private void pictureBox2_MouseClick_1(object sender, MouseEventArgs e) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Invalid comparison between Unknown and I4 //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Invalid comparison between Unknown and I4 Point point = FrontVideo.rePoint(e.Location); if ((int)e.Button == 4194304) { string str = "AF"; string param = $"{point.X},{point.Y},20,20"; WriteCommand(str, param); } else if ((int)e.Button == 2097152) { WriteCommand("ZoomMinus", $"{point.X},{point.Y}"); } } private void Focus_ValueChanged(object sender, EventArgs e) { int num = ((ScrollBar)Focuse).Maximum - ((ScrollBar)Focuse).LargeChange - ((ScrollBar)Focuse).Value + 1; string param = num.ToString(); WriteCommand("Focus", param); ((Control)label1).Text = string.Format("Focus {0} m", (num == 0) ? "∞" : decimal.Round(1m / ((decimal)num / 100m), 3).ToString()); } private void Zoom_ValueChanged(object sender, EventArgs e) { WriteCommand("Zoom", (((ScrollBar)Zoom).Value * 10).ToString()); } private void pictureBox2_MouseMove(object sender, MouseEventArgs e) { MousePosition = e.Location; } private void pictureBox2_MouseLeave(object sender, EventArgs e) { MousePosition.X = 0; MousePosition.Y = 0; } private void Exposure_ValueChanged(object sender, EventArgs e) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) int num = (((ScrollBar)(HScrollBar)sender).Value - ((ScrollBar)(HScrollBar)sender).SmallChange) * 10; ((Control)labelExp).Text = $"Exp:1/{num}"; WriteCommand("Exposure", $"{num}"); } private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { Thread thread = new Thread((ThreadStart)delegate { //IL_0017: Unknown result type (might be due to invalid IL or missing references) Clipboard.SetImage(((Control)pictureBox5).BackgroundImage); MessageBox.Show("QR-code скопирован."); }); thread.SetApartmentState(ApartmentState.STA); thread.Start(); } private void button2_Click(object sender, EventArgs e) { Thread thread = new Thread((ThreadStart)delegate { //IL_0017: Unknown result type (might be due to invalid IL or missing references) Clipboard.SetText(((Control)linkLabel1).Text); MessageBox.Show("Ссылка скопирована."); }); thread.SetApartmentState(ApartmentState.STA); thread.Start(); } private void panel6_Enter(object sender, EventArgs e) { ((Control)FrontVideo).Select(); } private void checkBox_saveVideo_Click(object sender, EventArgs e) { if (decode != null) { decode.save_video = checkBox_saveVideo.Checked; } } private void panel6_DoubleClick(object sender, EventArgs e) { ((Control)this).Invoke((Delegate)(Action)delegate { ((Control)panel6).Width = ((Control)panel5).Width; }); ((Control)chenal).Text = Settings.Default.Chenal.ToString(); StartReStart(); } private void pictureBox1_DoubleClick(object sender, EventArgs e) { ((ScrollBar)Brightness).Value = 0; } private void pictureBox4_DoubleClick(object sender, EventArgs e) { ((ScrollBar)Contrast).Value = 0; } private void _Enter(object sender, EventArgs e) { ((Control)BitRateBox).Focus(); } private void Label2_Click(object sender, EventArgs e) { } private void LDuration_Click(object sender, EventArgs e) { } private void ISO_ValueChanged(object sender, EventArgs e) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) int num = (((ScrollBar)(HScrollBar)sender).Value - ((ScrollBar)(HScrollBar)sender).SmallChange) * 10; ((Control)labelISO).Text = $"ISO[{num}]"; WriteCommand("SetISO", $"{num}"); } private void Button7_Click(object sender, EventArgs e) { StartReStart(); } [DllImport("user32.dll", CharSet = CharSet.Auto)] internal static extern IntPtr GetFocus(); private string GetFocuse() { string result = ""; try { Control val = null; IntPtr focus = GetFocus(); if (focus != IntPtr.Zero) { val = Control.FromHandle(focus); } result = ((val.Name.ToString().Length != 0) ? val.Name.ToString() : val.Parent.Parent.Name.ToString()); } catch (Exception) { } return result; } private void ComboBox2_SelectedIndexChanged(object sender, EventArgs e) { comboBox1.Items.Clear(); foreach (string item in listCamResol) { if (item.Trim().Length > 0 && item.Split(new char[1] { ':' })[0].Equals(((Control)comboBox2).Text)) { comboBox1.Items.Add((object)item.Substring(item.IndexOf(':') + 1)); } } } private void ListBox3_DoubleClick(object sender, EventArgs e) { SerialNumberPhone = ""; listBox3.Items.Clear(); } private void SerialNumber_DoubleClick(object sender, EventArgs e) { WriteCommand("GetCameraInfo", ""); } private void Button8_Click(object sender, EventArgs e) { if (FrontVideo.Flip == 0) { FrontVideo.Flip = 1; } else { FrontVideo.Flip = 0; } ((Control)button8).Text = ((FrontVideo.Flip == 1) ? "e" : ""); } private void SaveXML_Tick(object sender, EventArgs e) { if (xmlFileName.Trim().Length > 0) { List list = new List(); if (!bufarh.IsEmpty) { StreamWriter streamWriter = new StreamWriter(xmlFileName, append: true); string result; while (bufarh.TryDequeue(out result)) { streamWriter.WriteLine(result); } streamWriter.Close(); } list.Clear(); } if (!logkeys.IsEmpty) { StreamWriter streamWriter2 = new StreamWriter("keys.log", append: true); string result2; while (logkeys.TryDequeue(out result2)) { streamWriter2.WriteLine(result2); } streamWriter2.Close(); } } private void SplitContainer1_Panel2_DoubleClick(object sender, EventArgs e) { WriteCommand("Test", "1"); } private void pictureBox1_Click(object sender, EventArgs e) { } private void FrontVideo_KeyDown(object sender, KeyEventArgs e) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) ((Control)this).Text = ((object)e.KeyCode/*cast due to .constrained prefix*/).ToString(); } private void FPS_ValueChanged(object sender, EventArgs e) { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) if (!setAutomate) { int num = (((ScrollBar)(HScrollBar)sender).Value - ((ScrollBar)(HScrollBar)sender).SmallChange) * 10; ((Control)labelFPS).Text = $"FPS[{num}]"; WriteCommand("SetFPS", $"{num}"); } } private void Form1_Shown(object sender, EventArgs e) { tabControl1.TabPages.Remove(tabControl1.TabPages[1]); ((Control)this).Text = string.Format("{1} {0}", ((Control)this).Text, Settings.Default.Chenal); } public Form1() { //IL_02c9: Unknown result type (might be due to invalid IL or missing references) //IL_02d3: Expected O, but got Unknown if (Debugger.IsAttached) { } InitializeComponent(); ((Control)BitRateBox).Text = Settings.Default.BitRate.ToString(); ((Control)chenal).Text = Settings.Default.Chenal.ToString(); checkBox_saveVideo.Checked = Settings.Default.SaveVideo; if (Program.Arg.Contains("console")) { Win32.AllocConsole(); } Version version = Assembly.GetExecutingAssembly().GetName().Version; buildDate = new DateTime(2000, 1, 1).AddDays(version.Build).AddSeconds(version.Revision * 2); buildDate = buildDate.AddDays(5.0); thisDate = DateTime.Now.AddDays(-5.0); Program.log_file = DateTime.Now.Ticks.ToString(); ((Form)this).KeyPreview = true; ((Control)this).KeyDown += new KeyEventHandler(Form1_KeyDown); StartReStart(); } protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } ((Form)this).Dispose(disposing); } private void InitializeComponent() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Expected O, but got Unknown //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Expected O, but got Unknown //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Expected O, but got Unknown //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Expected O, but got Unknown //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Expected O, but got Unknown //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Expected O, but got Unknown //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Expected O, but got Unknown //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Expected O, but got Unknown //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Expected O, but got Unknown //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Expected O, but got Unknown //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Expected O, but got Unknown //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Expected O, but got Unknown //IL_0110: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Expected O, but got Unknown //IL_011b: Unknown result type (might be due to invalid IL or missing references) //IL_0125: Expected O, but got Unknown //IL_0126: Unknown result type (might be due to invalid IL or missing references) //IL_0130: Expected O, but got Unknown //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Expected O, but got Unknown //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Expected O, but got Unknown //IL_0147: Unknown result type (might be due to invalid IL or missing references) //IL_0151: Expected O, but got Unknown //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Expected O, but got Unknown //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Expected O, but got Unknown //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Expected O, but got Unknown //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Expected O, but got Unknown //IL_017e: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Expected O, but got Unknown //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Expected O, but got Unknown //IL_0194: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Expected O, but got Unknown //IL_019f: Unknown result type (might be due to invalid IL or missing references) //IL_01a9: Expected O, but got Unknown //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Expected O, but got Unknown //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Expected O, but got Unknown //IL_01c0: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Expected O, but got Unknown //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Expected O, but got Unknown //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01e0: Expected O, but got Unknown //IL_01e1: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Expected O, but got Unknown //IL_01ec: Unknown result type (might be due to invalid IL or missing references) //IL_01f6: Expected O, but got Unknown //IL_01f7: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Expected O, but got Unknown //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_020c: Expected O, but got Unknown //IL_020d: Unknown result type (might be due to invalid IL or missing references) //IL_0217: Expected O, but got Unknown //IL_0218: Unknown result type (might be due to invalid IL or missing references) //IL_0222: Expected O, but got Unknown //IL_0223: Unknown result type (might be due to invalid IL or missing references) //IL_022d: Expected O, but got Unknown //IL_022e: Unknown result type (might be due to invalid IL or missing references) //IL_0238: Expected O, but got Unknown //IL_0239: Unknown result type (might be due to invalid IL or missing references) //IL_0243: Expected O, but got Unknown //IL_0244: Unknown result type (might be due to invalid IL or missing references) //IL_024e: Expected O, but got Unknown //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Expected O, but got Unknown //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Expected O, but got Unknown //IL_0265: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Expected O, but got Unknown //IL_0270: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Expected O, but got Unknown //IL_027b: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Expected O, but got Unknown //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_0290: Expected O, but got Unknown //IL_0291: Unknown result type (might be due to invalid IL or missing references) //IL_029b: Expected O, but got Unknown //IL_029c: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Expected O, but got Unknown //IL_02a7: Unknown result type (might be due to invalid IL or missing references) //IL_02b1: Expected O, but got Unknown //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02bc: Expected O, but got Unknown //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Expected O, but got Unknown //IL_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_02d2: Expected O, but got Unknown //IL_02d3: Unknown result type (might be due to invalid IL or missing references) //IL_02dd: Expected O, but got Unknown //IL_02de: Unknown result type (might be due to invalid IL or missing references) //IL_02e8: Expected O, but got Unknown //IL_02e9: Unknown result type (might be due to invalid IL or missing references) //IL_02f3: Expected O, but got Unknown //IL_02f4: Unknown result type (might be due to invalid IL or missing references) //IL_02fe: Expected O, but got Unknown //IL_02ff: Unknown result type (might be due to invalid IL or missing references) //IL_0309: Expected O, but got Unknown //IL_030a: Unknown result type (might be due to invalid IL or missing references) //IL_0314: Expected O, but got Unknown //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_031f: Expected O, but got Unknown //IL_0320: Unknown result type (might be due to invalid IL or missing references) //IL_032a: Expected O, but got Unknown //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_0335: Expected O, but got Unknown //IL_0336: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Expected O, but got Unknown //IL_0341: Unknown result type (might be due to invalid IL or missing references) //IL_034b: Expected O, but got Unknown //IL_034c: Unknown result type (might be due to invalid IL or missing references) //IL_0356: Expected O, but got Unknown //IL_0357: Unknown result type (might be due to invalid IL or missing references) //IL_0361: Expected O, but got Unknown //IL_0362: Unknown result type (might be due to invalid IL or missing references) //IL_036c: Expected O, but got Unknown //IL_036d: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Expected O, but got Unknown //IL_0378: Unknown result type (might be due to invalid IL or missing references) //IL_0382: Expected O, but got Unknown //IL_0383: Unknown result type (might be due to invalid IL or missing references) //IL_038d: Expected O, but got Unknown //IL_038e: Unknown result type (might be due to invalid IL or missing references) //IL_0398: Expected O, but got Unknown //IL_0399: Unknown result type (might be due to invalid IL or missing references) //IL_03a3: Expected O, but got Unknown //IL_03a4: Unknown result type (might be due to invalid IL or missing references) //IL_03ae: Expected O, but got Unknown //IL_03af: Unknown result type (might be due to invalid IL or missing references) //IL_03b9: Expected O, but got Unknown //IL_03ba: Unknown result type (might be due to invalid IL or missing references) //IL_03c4: Expected O, but got Unknown //IL_03c5: Unknown result type (might be due to invalid IL or missing references) //IL_03cf: Expected O, but got Unknown //IL_03d0: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Expected O, but got Unknown //IL_03db: Unknown result type (might be due to invalid IL or missing references) //IL_03e5: Expected O, but got Unknown //IL_03e6: Unknown result type (might be due to invalid IL or missing references) //IL_03f0: Expected O, but got Unknown //IL_03f1: Unknown result type (might be due to invalid IL or missing references) //IL_03fb: Expected O, but got Unknown //IL_03fc: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Expected O, but got Unknown //IL_0407: Unknown result type (might be due to invalid IL or missing references) //IL_0411: Expected O, but got Unknown //IL_0412: Unknown result type (might be due to invalid IL or missing references) //IL_041c: Expected O, but got Unknown //IL_041d: Unknown result type (might be due to invalid IL or missing references) //IL_0427: Expected O, but got Unknown //IL_0428: Unknown result type (might be due to invalid IL or missing references) //IL_0432: Expected O, but got Unknown //IL_0433: Unknown result type (might be due to invalid IL or missing references) //IL_043d: Expected O, but got Unknown //IL_043e: Unknown result type (might be due to invalid IL or missing references) //IL_0448: Expected O, but got Unknown //IL_0449: Unknown result type (might be due to invalid IL or missing references) //IL_0453: Expected O, but got Unknown //IL_0454: Unknown result type (might be due to invalid IL or missing references) //IL_045e: Expected O, but got Unknown //IL_045f: Unknown result type (might be due to invalid IL or missing references) //IL_0469: Expected O, but got Unknown //IL_046a: Unknown result type (might be due to invalid IL or missing references) //IL_0474: Expected O, but got Unknown //IL_0475: Unknown result type (might be due to invalid IL or missing references) //IL_047f: Expected O, but got Unknown //IL_0480: Unknown result type (might be due to invalid IL or missing references) //IL_048a: Expected O, but got Unknown //IL_048b: Unknown result type (might be due to invalid IL or missing references) //IL_0495: Expected O, but got Unknown //IL_0496: Unknown result type (might be due to invalid IL or missing references) //IL_04a0: Expected O, but got Unknown //IL_04a1: Unknown result type (might be due to invalid IL or missing references) //IL_04ab: Expected O, but got Unknown //IL_04ac: Unknown result type (might be due to invalid IL or missing references) //IL_04b6: Expected O, but got Unknown //IL_04b7: Unknown result type (might be due to invalid IL or missing references) //IL_04c1: Expected O, but got Unknown //IL_04c2: Unknown result type (might be due to invalid IL or missing references) //IL_04cc: Expected O, but got Unknown //IL_04cd: Unknown result type (might be due to invalid IL or missing references) //IL_04d7: Expected O, but got Unknown //IL_04de: Unknown result type (might be due to invalid IL or missing references) //IL_04e8: Expected O, but got Unknown //IL_06d7: Unknown result type (might be due to invalid IL or missing references) //IL_06e1: Expected O, but got Unknown //IL_0898: Unknown result type (might be due to invalid IL or missing references) //IL_0b48: Unknown result type (might be due to invalid IL or missing references) //IL_0b52: Expected O, but got Unknown //IL_0b60: Unknown result type (might be due to invalid IL or missing references) //IL_0b6a: Expected O, but got Unknown //IL_0b78: Unknown result type (might be due to invalid IL or missing references) //IL_0b82: Expected O, but got Unknown //IL_0b90: Unknown result type (might be due to invalid IL or missing references) //IL_0b9a: Expected O, but got Unknown //IL_0bc0: Unknown result type (might be due to invalid IL or missing references) //IL_0bca: Expected O, but got Unknown //IL_0bea: Unknown result type (might be due to invalid IL or missing references) //IL_0bf4: Expected O, but got Unknown //IL_0c06: Unknown result type (might be due to invalid IL or missing references) //IL_0c10: Expected O, but got Unknown //IL_0c22: Unknown result type (might be due to invalid IL or missing references) //IL_0c2c: Expected O, but got Unknown //IL_0c3e: Unknown result type (might be due to invalid IL or missing references) //IL_0c48: Expected O, but got Unknown //IL_0c5a: Unknown result type (might be due to invalid IL or missing references) //IL_0c64: Expected O, but got Unknown //IL_0c76: Unknown result type (might be due to invalid IL or missing references) //IL_0c80: Expected O, but got Unknown //IL_0c92: Unknown result type (might be due to invalid IL or missing references) //IL_0c9c: Expected O, but got Unknown //IL_0cae: Unknown result type (might be due to invalid IL or missing references) //IL_0cb8: Expected O, but got Unknown //IL_0cca: Unknown result type (might be due to invalid IL or missing references) //IL_0cd4: Expected O, but got Unknown //IL_0eea: Unknown result type (might be due to invalid IL or missing references) //IL_0ef4: Expected O, but got Unknown //IL_0f06: Unknown result type (might be due to invalid IL or missing references) //IL_0f10: Expected O, but got Unknown //IL_18f3: Unknown result type (might be due to invalid IL or missing references) //IL_18fd: Expected O, but got Unknown //IL_1987: Unknown result type (might be due to invalid IL or missing references) //IL_1991: Expected O, but got Unknown //IL_19fc: Unknown result type (might be due to invalid IL or missing references) //IL_1a06: Expected O, but got Unknown //IL_1b0c: Unknown result type (might be due to invalid IL or missing references) //IL_1b16: Expected O, but got Unknown //IL_1c1e: Unknown result type (might be due to invalid IL or missing references) //IL_1c28: Expected O, but got Unknown //IL_1cae: Unknown result type (might be due to invalid IL or missing references) //IL_1cb8: Expected O, but got Unknown //IL_1d30: Unknown result type (might be due to invalid IL or missing references) //IL_1d3a: Expected O, but got Unknown //IL_1e4e: Unknown result type (might be due to invalid IL or missing references) //IL_1e58: Expected O, but got Unknown //IL_1ef3: Unknown result type (might be due to invalid IL or missing references) //IL_1efd: Expected O, but got Unknown //IL_1fb1: Unknown result type (might be due to invalid IL or missing references) //IL_1fbb: Expected O, but got Unknown //IL_207a: Unknown result type (might be due to invalid IL or missing references) //IL_2084: Expected O, but got Unknown //IL_2142: Unknown result type (might be due to invalid IL or missing references) //IL_214c: Expected O, but got Unknown //IL_215e: Unknown result type (might be due to invalid IL or missing references) //IL_2168: Expected O, but got Unknown //IL_2437: Unknown result type (might be due to invalid IL or missing references) //IL_2441: Expected O, but got Unknown //IL_2453: Unknown result type (might be due to invalid IL or missing references) //IL_245d: Expected O, but got Unknown //IL_246f: Unknown result type (might be due to invalid IL or missing references) //IL_2479: Expected O, but got Unknown //IL_248b: Unknown result type (might be due to invalid IL or missing references) //IL_2495: Expected O, but got Unknown //IL_24a7: Unknown result type (might be due to invalid IL or missing references) //IL_24b1: Expected O, but got Unknown //IL_24c3: Unknown result type (might be due to invalid IL or missing references) //IL_24cd: Expected O, but got Unknown //IL_24df: Unknown result type (might be due to invalid IL or missing references) //IL_24e9: Expected O, but got Unknown //IL_24fb: Unknown result type (might be due to invalid IL or missing references) //IL_2505: Expected O, but got Unknown //IL_2517: Unknown result type (might be due to invalid IL or missing references) //IL_2521: Expected O, but got Unknown //IL_2533: Unknown result type (might be due to invalid IL or missing references) //IL_253d: Expected O, but got Unknown //IL_254f: Unknown result type (might be due to invalid IL or missing references) //IL_2559: Expected O, but got Unknown //IL_256b: Unknown result type (might be due to invalid IL or missing references) //IL_2575: Expected O, but got Unknown //IL_2587: Unknown result type (might be due to invalid IL or missing references) //IL_2591: Expected O, but got Unknown //IL_25a3: Unknown result type (might be due to invalid IL or missing references) //IL_25ad: Expected O, but got Unknown //IL_25bf: Unknown result type (might be due to invalid IL or missing references) //IL_25c9: Expected O, but got Unknown //IL_25db: Unknown result type (might be due to invalid IL or missing references) //IL_25e5: Expected O, but got Unknown //IL_2641: Unknown result type (might be due to invalid IL or missing references) //IL_264b: Expected O, but got Unknown //IL_26db: Unknown result type (might be due to invalid IL or missing references) //IL_26e5: Expected O, but got Unknown //IL_2772: Unknown result type (might be due to invalid IL or missing references) //IL_277c: Expected O, but got Unknown //IL_2816: Unknown result type (might be due to invalid IL or missing references) //IL_2820: Expected O, but got Unknown //IL_28b0: Unknown result type (might be due to invalid IL or missing references) //IL_28ba: Expected O, but got Unknown //IL_2957: Unknown result type (might be due to invalid IL or missing references) //IL_2961: Expected O, but got Unknown //IL_29f1: Unknown result type (might be due to invalid IL or missing references) //IL_29fb: Expected O, but got Unknown //IL_2a98: Unknown result type (might be due to invalid IL or missing references) //IL_2aa2: Expected O, but got Unknown //IL_2b2f: Unknown result type (might be due to invalid IL or missing references) //IL_2b39: Expected O, but got Unknown //IL_2bd3: Unknown result type (might be due to invalid IL or missing references) //IL_2bdd: Expected O, but got Unknown //IL_2c7a: Unknown result type (might be due to invalid IL or missing references) //IL_2c84: Expected O, but got Unknown //IL_2d11: Unknown result type (might be due to invalid IL or missing references) //IL_2d1b: Expected O, but got Unknown //IL_2db5: Unknown result type (might be due to invalid IL or missing references) //IL_2dbf: Expected O, but got Unknown //IL_2e59: Unknown result type (might be due to invalid IL or missing references) //IL_2e63: Expected O, but got Unknown //IL_2ef0: Unknown result type (might be due to invalid IL or missing references) //IL_2efa: Expected O, but got Unknown //IL_2f94: Unknown result type (might be due to invalid IL or missing references) //IL_2f9e: Expected O, but got Unknown //IL_302b: Unknown result type (might be due to invalid IL or missing references) //IL_3035: Expected O, but got Unknown //IL_30cf: Unknown result type (might be due to invalid IL or missing references) //IL_30d9: Expected O, but got Unknown //IL_317e: Unknown result type (might be due to invalid IL or missing references) //IL_3188: Expected O, but got Unknown //IL_3215: Unknown result type (might be due to invalid IL or missing references) //IL_321f: Expected O, but got Unknown //IL_32d1: Unknown result type (might be due to invalid IL or missing references) //IL_32db: Expected O, but got Unknown //IL_3374: Unknown result type (might be due to invalid IL or missing references) //IL_337e: Expected O, but got Unknown //IL_340a: Unknown result type (might be due to invalid IL or missing references) //IL_3414: Expected O, but got Unknown //IL_34b1: Unknown result type (might be due to invalid IL or missing references) //IL_34bb: Expected O, but got Unknown //IL_354b: Unknown result type (might be due to invalid IL or missing references) //IL_3555: Expected O, but got Unknown //IL_35ef: Unknown result type (might be due to invalid IL or missing references) //IL_35f9: Expected O, but got Unknown //IL_360b: Unknown result type (might be due to invalid IL or missing references) //IL_3615: Expected O, but got Unknown //IL_3812: Unknown result type (might be due to invalid IL or missing references) //IL_381c: Expected O, but got Unknown //IL_382e: Unknown result type (might be due to invalid IL or missing references) //IL_3838: Expected O, but got Unknown //IL_384a: Unknown result type (might be due to invalid IL or missing references) //IL_3854: Expected O, but got Unknown //IL_3866: Unknown result type (might be due to invalid IL or missing references) //IL_3870: Expected O, but got Unknown //IL_3882: Unknown result type (might be due to invalid IL or missing references) //IL_388c: Expected O, but got Unknown //IL_389e: Unknown result type (might be due to invalid IL or missing references) //IL_38a8: Expected O, but got Unknown //IL_38ba: Unknown result type (might be due to invalid IL or missing references) //IL_38c4: Expected O, but got Unknown //IL_38d6: Unknown result type (might be due to invalid IL or missing references) //IL_38e0: Expected O, but got Unknown //IL_38f2: Unknown result type (might be due to invalid IL or missing references) //IL_38fc: Expected O, but got Unknown //IL_390e: Unknown result type (might be due to invalid IL or missing references) //IL_3918: Expected O, but got Unknown //IL_392a: Unknown result type (might be due to invalid IL or missing references) //IL_3934: Expected O, but got Unknown //IL_398f: Unknown result type (might be due to invalid IL or missing references) //IL_3999: Expected O, but got Unknown //IL_3add: Unknown result type (might be due to invalid IL or missing references) //IL_3ae7: Expected O, but got Unknown //IL_3b84: Unknown result type (might be due to invalid IL or missing references) //IL_3b8e: Expected O, but got Unknown //IL_3cc4: Unknown result type (might be due to invalid IL or missing references) //IL_3cce: Expected O, but got Unknown //IL_3d47: Unknown result type (might be due to invalid IL or missing references) //IL_3d51: Expected O, but got Unknown //IL_3dea: Unknown result type (might be due to invalid IL or missing references) //IL_3df4: Expected O, but got Unknown //IL_4795: Unknown result type (might be due to invalid IL or missing references) //IL_479f: Expected O, but got Unknown //IL_4832: Unknown result type (might be due to invalid IL or missing references) //IL_483c: Expected O, but got Unknown //IL_484e: Unknown result type (might be due to invalid IL or missing references) //IL_4858: Expected O, but got Unknown //IL_486a: Unknown result type (might be due to invalid IL or missing references) //IL_4874: Expected O, but got Unknown //IL_4886: Unknown result type (might be due to invalid IL or missing references) //IL_4890: Expected O, but got Unknown //IL_48a2: Unknown result type (might be due to invalid IL or missing references) //IL_48ac: Expected O, but got Unknown //IL_48be: Unknown result type (might be due to invalid IL or missing references) //IL_48c8: Expected O, but got Unknown //IL_49ae: Unknown result type (might be due to invalid IL or missing references) //IL_49b8: Expected O, but got Unknown //IL_4a1b: Unknown result type (might be due to invalid IL or missing references) //IL_4a25: Expected O, but got Unknown //IL_4a4a: Unknown result type (might be due to invalid IL or missing references) //IL_4a54: Expected O, but got Unknown //IL_4b26: Unknown result type (might be due to invalid IL or missing references) //IL_4b30: Expected O, but got Unknown //IL_4bfb: Unknown result type (might be due to invalid IL or missing references) //IL_4c05: Expected O, but got Unknown //IL_4ccf: Unknown result type (might be due to invalid IL or missing references) //IL_4cd9: Expected O, but got Unknown //IL_4da7: Unknown result type (might be due to invalid IL or missing references) //IL_4db1: Expected O, but got Unknown //IL_4e7f: Unknown result type (might be due to invalid IL or missing references) //IL_4e89: Expected O, but got Unknown //IL_5131: Unknown result type (might be due to invalid IL or missing references) //IL_513b: Expected O, but got Unknown //IL_51f2: Unknown result type (might be due to invalid IL or missing references) //IL_52ca: Unknown result type (might be due to invalid IL or missing references) //IL_55d5: Unknown result type (might be due to invalid IL or missing references) //IL_55df: Expected O, but got Unknown components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Form1)); contextMenuStrip1 = new ContextMenuStrip(components); timer1 = new Timer(components); listBox1 = new ListBox(); tabControl1 = new TabControl(); tabPage1 = new TabPage(); splitContainer1 = new SplitContainer(); FrontVideo = new UCPictureBox(); tableLayoutPanel4 = new TableLayoutPanel(); label21 = new Label(); label22 = new Label(); label23 = new Label(); label24 = new Label(); label25 = new Label(); label26 = new Label(); label27 = new Label(); label28 = new Label(); label29 = new Label(); l1 = new Label(); l2 = new Label(); l3 = new Label(); l4 = new Label(); l5 = new Label(); l6 = new Label(); l7 = new Label(); l8 = new Label(); l9 = new Label(); panel1 = new Panel(); panel10 = new Panel(); waitServer = new Label(); waitPhone = new Label(); serialNumber = new Label(); panel8 = new Panel(); label19 = new Label(); panel9 = new Panel(); label18 = new Label(); label17 = new Label(); label16 = new Label(); panel2 = new Panel(); asus = new PictureBox(); huawei = new PictureBox(); samsung = new PictureBox(); listBox3 = new ListBox(); tableLayoutPanel3 = new TableLayoutPanel(); IPPS = new Label(); IFPSV = new Label(); label20 = new Label(); IByteRateO = new Label(); label14 = new Label(); IByteRateI = new Label(); label13 = new Label(); IByteRateV = new Label(); label12 = new Label(); label11 = new Label(); IBitRateV = new Label(); label8 = new Label(); label10 = new Label(); lAperture = new Label(); label6 = new Label(); lSTime = new Label(); label3 = new Label(); lDuration = new Label(); lISO = new Label(); label2 = new Label(); label4 = new Label(); lFocus = new Label(); label9 = new Label(); IBitRateI = new Label(); IBitRateO = new Label(); tableLayoutPanel1 = new TableLayoutPanel(); label15 = new Label(); FPS = new HScrollBar(); labelExp = new Label(); labelFPS = new Label(); ISO = new HScrollBar(); labelISO = new Label(); pContrast = new PictureBox(); pBright = new PictureBox(); BitRateBox = new ComboBox(); Exposure = new HScrollBar(); Zoom = new HScrollBar(); Focuse = new HScrollBar(); Contrast = new HScrollBar(); Brightness = new HScrollBar(); panel3 = new Panel(); comboBox2 = new ComboBox(); comboBox1 = new ComboBox(); checkBox_saveVideo = new CheckBox(); panel_chenal = new Panel(); button9 = new Button(); chenal = new MaskedTextBox(); label1 = new Label(); tableLayoutPanel2 = new TableLayoutPanel(); button8 = new Button(); button5 = new Button(); button6 = new Button(); button4 = new Button(); button3 = new Button(); button7 = new Button(); panel4 = new Panel(); panel5 = new Panel(); panel6 = new Panel(); label5 = new Label(); tabPage2 = new TabPage(); tabPage3 = new TabPage(); linkLabel1 = new LinkLabel(); button2 = new Button(); button1 = new Button(); pictureBox5 = new PictureBox(); panel7 = new FlowLayoutPanel(); SaveXML = new Timer(components); ((Control)tabControl1).SuspendLayout(); ((Control)tabPage1).SuspendLayout(); ((ISupportInitialize)splitContainer1).BeginInit(); ((Control)splitContainer1.Panel1).SuspendLayout(); ((Control)splitContainer1.Panel2).SuspendLayout(); ((Control)splitContainer1).SuspendLayout(); ((Control)tableLayoutPanel4).SuspendLayout(); ((Control)panel1).SuspendLayout(); ((Control)panel10).SuspendLayout(); ((Control)panel8).SuspendLayout(); ((Control)panel9).SuspendLayout(); ((Control)panel2).SuspendLayout(); ((ISupportInitialize)asus).BeginInit(); ((ISupportInitialize)huawei).BeginInit(); ((ISupportInitialize)samsung).BeginInit(); ((Control)tableLayoutPanel3).SuspendLayout(); ((Control)tableLayoutPanel1).SuspendLayout(); ((ISupportInitialize)pContrast).BeginInit(); ((ISupportInitialize)pBright).BeginInit(); ((Control)panel3).SuspendLayout(); ((Control)panel_chenal).SuspendLayout(); ((Control)tableLayoutPanel2).SuspendLayout(); ((Control)panel4).SuspendLayout(); ((Control)panel5).SuspendLayout(); ((Control)tabPage2).SuspendLayout(); ((Control)tabPage3).SuspendLayout(); ((ISupportInitialize)pictureBox5).BeginInit(); ((Control)this).SuspendLayout(); ((ToolStrip)contextMenuStrip1).ImageScalingSize = new Size(24, 24); ((Control)contextMenuStrip1).Name = "contextMenuStrip1"; ((Control)contextMenuStrip1).Size = new Size(61, 4); timer1.Enabled = true; timer1.Interval = 20; timer1.Tick += timer1_Tick; listBox1.BorderStyle = (BorderStyle)1; ((Control)listBox1).Dock = (DockStyle)5; ((Control)listBox1).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)0, (GraphicsUnit)3, (byte)0); ((ListControl)listBox1).FormattingEnabled = true; listBox1.ItemHeight = 16; ((Control)listBox1).Location = new Point(3, 3); ((Control)listBox1).Name = "listBox1"; ((Control)listBox1).Size = new Size(1334, 703); ((Control)listBox1).TabIndex = 0; ((Control)listBox1).DoubleClick += listBox1_DoubleClick; tabControl1.Alignment = (TabAlignment)3; ((Control)tabControl1).Controls.Add((Control)(object)tabPage1); ((Control)tabControl1).Controls.Add((Control)(object)tabPage2); ((Control)tabControl1).Controls.Add((Control)(object)tabPage3); ((Control)tabControl1).Dock = (DockStyle)5; ((Control)tabControl1).Location = new Point(0, 0); tabControl1.Multiline = true; ((Control)tabControl1).Name = "tabControl1"; tabControl1.SelectedIndex = 0; ((Control)tabControl1).Size = new Size(1367, 717); ((Control)tabControl1).TabIndex = 9; tabControl1.SelectedIndexChanged += tabControl1_SelectedIndexChanged; ((Control)tabPage1).Controls.Add((Control)(object)splitContainer1); ((Control)tabPage1).Controls.Add((Control)(object)panel4); tabPage1.Location = new Point(4, 4); ((Control)tabPage1).Name = "tabPage1"; ((Control)tabPage1).Padding = new Padding(3); ((Control)tabPage1).Size = new Size(1340, 709); tabPage1.TabIndex = 0; ((Control)tabPage1).Text = "視頻流"; tabPage1.UseVisualStyleBackColor = true; ((Control)splitContainer1).BackColor = SystemColors.Control; splitContainer1.Dock = (DockStyle)5; ((Control)splitContainer1).Location = new Point(3, 23); ((Control)splitContainer1).Name = "splitContainer1"; ((Control)splitContainer1.Panel1).Controls.Add((Control)(object)FrontVideo); ((Control)splitContainer1.Panel2).BackColor = Color.Transparent; ((Control)splitContainer1.Panel2).Controls.Add((Control)(object)tableLayoutPanel4); ((Control)splitContainer1.Panel2).Controls.Add((Control)(object)panel1); ((Control)splitContainer1.Panel2).Controls.Add((Control)(object)listBox3); ((Control)splitContainer1.Panel2).Controls.Add((Control)(object)tableLayoutPanel3); ((Control)splitContainer1.Panel2).Controls.Add((Control)(object)tableLayoutPanel1); ((Control)splitContainer1.Panel2).Controls.Add((Control)(object)tableLayoutPanel2); ((Control)splitContainer1.Panel2).DoubleClick += SplitContainer1_Panel2_DoubleClick; ((Control)splitContainer1).Size = new Size(1334, 683); splitContainer1.SplitterDistance = 1008; ((Control)splitContainer1).TabIndex = 13; ((Control)FrontVideo).BackColor = SystemColors.Control; ((Control)FrontVideo).BackgroundImageLayout = (ImageLayout)0; ((Control)FrontVideo).Dock = (DockStyle)5; FrontVideo.Flip = 0; FrontVideo.Image = null; ((Control)FrontVideo).Location = new Point(0, 0); ((Control)FrontVideo).Name = "FrontVideo"; FrontVideo.Rotate = 0; ((Control)FrontVideo).Size = new Size(1008, 683); FrontVideo.SizeImage = new Size(1280, 720); ((Control)FrontVideo).TabIndex = 4; ((Control)FrontVideo).TabStop = false; ((Control)FrontVideo).Enter += _Enter; ((Control)FrontVideo).KeyDown += new KeyEventHandler(FrontVideo_KeyDown); ((Control)FrontVideo).MouseClick += new MouseEventHandler(pictureBox2_MouseClick_1); ((Control)FrontVideo).MouseDoubleClick += new MouseEventHandler(pictureBox2_MouseClick); ((Control)FrontVideo).MouseDown += new MouseEventHandler(pictureBox2_MouseDown); ((Control)FrontVideo).MouseLeave += pictureBox2_MouseLeave; ((Control)FrontVideo).MouseMove += new MouseEventHandler(pictureBox2_MouseMove); tableLayoutPanel4.ColumnCount = 9; tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle((SizeType)2, 11.11111f)); tableLayoutPanel4.Controls.Add((Control)(object)label21, 0, 0); tableLayoutPanel4.Controls.Add((Control)(object)label22, 1, 0); tableLayoutPanel4.Controls.Add((Control)(object)label23, 2, 0); tableLayoutPanel4.Controls.Add((Control)(object)label24, 3, 0); tableLayoutPanel4.Controls.Add((Control)(object)label25, 4, 0); tableLayoutPanel4.Controls.Add((Control)(object)label26, 5, 0); tableLayoutPanel4.Controls.Add((Control)(object)label27, 6, 0); tableLayoutPanel4.Controls.Add((Control)(object)label28, 7, 0); tableLayoutPanel4.Controls.Add((Control)(object)label29, 8, 0); tableLayoutPanel4.Controls.Add((Control)(object)l1, 0, 1); tableLayoutPanel4.Controls.Add((Control)(object)l2, 1, 1); tableLayoutPanel4.Controls.Add((Control)(object)l3, 2, 1); tableLayoutPanel4.Controls.Add((Control)(object)l4, 3, 1); tableLayoutPanel4.Controls.Add((Control)(object)l5, 4, 1); tableLayoutPanel4.Controls.Add((Control)(object)l6, 5, 1); tableLayoutPanel4.Controls.Add((Control)(object)l7, 6, 1); tableLayoutPanel4.Controls.Add((Control)(object)l8, 7, 1); tableLayoutPanel4.Controls.Add((Control)(object)l9, 8, 1); ((Control)tableLayoutPanel4).Dock = (DockStyle)2; ((Control)tableLayoutPanel4).Location = new Point(0, 575); ((Control)tableLayoutPanel4).Name = "tableLayoutPanel4"; tableLayoutPanel4.RowCount = 2; tableLayoutPanel4.RowStyles.Add(new RowStyle((SizeType)2, 50f)); tableLayoutPanel4.RowStyles.Add(new RowStyle((SizeType)2, 50f)); ((Control)tableLayoutPanel4).Size = new Size(322, 35); ((Control)tableLayoutPanel4).TabIndex = 14; ((Control)tableLayoutPanel4).Visible = false; ((Control)label21).AutoSize = true; ((Control)label21).Dock = (DockStyle)5; ((Control)label21).Location = new Point(3, 0); ((Control)label21).Name = "label21"; ((Control)label21).Size = new Size(29, 17); ((Control)label21).TabIndex = 0; ((Control)label21).Text = "1"; label21.TextAlign = (ContentAlignment)32; ((Control)label22).AutoSize = true; ((Control)label22).Dock = (DockStyle)5; ((Control)label22).Location = new Point(38, 0); ((Control)label22).Name = "label22"; ((Control)label22).Size = new Size(29, 17); ((Control)label22).TabIndex = 1; ((Control)label22).Text = "2"; label22.TextAlign = (ContentAlignment)32; ((Control)label23).AutoSize = true; ((Control)label23).Dock = (DockStyle)5; ((Control)label23).Location = new Point(73, 0); ((Control)label23).Name = "label23"; ((Control)label23).Size = new Size(29, 17); ((Control)label23).TabIndex = 2; ((Control)label23).Text = "3"; label23.TextAlign = (ContentAlignment)32; ((Control)label24).AutoSize = true; ((Control)label24).Dock = (DockStyle)5; ((Control)label24).Location = new Point(108, 0); ((Control)label24).Name = "label24"; ((Control)label24).Size = new Size(29, 17); ((Control)label24).TabIndex = 3; ((Control)label24).Text = "4"; label24.TextAlign = (ContentAlignment)32; ((Control)label25).AutoSize = true; ((Control)label25).Dock = (DockStyle)5; ((Control)label25).Location = new Point(143, 0); ((Control)label25).Name = "label25"; ((Control)label25).Size = new Size(29, 17); ((Control)label25).TabIndex = 4; ((Control)label25).Text = "5"; label25.TextAlign = (ContentAlignment)32; ((Control)label26).AutoSize = true; ((Control)label26).Dock = (DockStyle)5; ((Control)label26).Location = new Point(178, 0); ((Control)label26).Name = "label26"; ((Control)label26).Size = new Size(29, 17); ((Control)label26).TabIndex = 5; ((Control)label26).Text = "6"; label26.TextAlign = (ContentAlignment)32; ((Control)label27).AutoSize = true; ((Control)label27).Dock = (DockStyle)5; ((Control)label27).Location = new Point(213, 0); ((Control)label27).Name = "label27"; ((Control)label27).Size = new Size(29, 17); ((Control)label27).TabIndex = 6; ((Control)label27).Text = "7"; label27.TextAlign = (ContentAlignment)32; ((Control)label28).AutoSize = true; ((Control)label28).Dock = (DockStyle)5; ((Control)label28).Location = new Point(248, 0); ((Control)label28).Name = "label28"; ((Control)label28).Size = new Size(29, 17); ((Control)label28).TabIndex = 7; ((Control)label28).Text = "8"; label28.TextAlign = (ContentAlignment)32; ((Control)label29).AutoSize = true; ((Control)label29).Dock = (DockStyle)5; ((Control)label29).Location = new Point(283, 0); ((Control)label29).Name = "label29"; ((Control)label29).Size = new Size(36, 17); ((Control)label29).TabIndex = 8; ((Control)label29).Text = "9"; label29.TextAlign = (ContentAlignment)32; ((Control)l1).Location = new Point(3, 17); ((Control)l1).Name = "l1"; ((Control)l1).Size = new Size(29, 13); ((Control)l1).TabIndex = 9; ((Control)l1).Text = "0"; l1.TextAlign = (ContentAlignment)32; ((Control)l2).Location = new Point(38, 17); ((Control)l2).Name = "l2"; ((Control)l2).Size = new Size(29, 13); ((Control)l2).TabIndex = 10; ((Control)l2).Text = "0"; l2.TextAlign = (ContentAlignment)32; ((Control)l3).Location = new Point(73, 17); ((Control)l3).Name = "l3"; ((Control)l3).Size = new Size(29, 13); ((Control)l3).TabIndex = 11; ((Control)l3).Text = "0"; l3.TextAlign = (ContentAlignment)32; ((Control)l4).Location = new Point(108, 17); ((Control)l4).Name = "l4"; ((Control)l4).Size = new Size(29, 13); ((Control)l4).TabIndex = 12; ((Control)l4).Text = "0"; l4.TextAlign = (ContentAlignment)32; ((Control)l5).Location = new Point(143, 17); ((Control)l5).Name = "l5"; ((Control)l5).Size = new Size(29, 13); ((Control)l5).TabIndex = 13; ((Control)l5).Text = "0"; l5.TextAlign = (ContentAlignment)32; ((Control)l6).Location = new Point(178, 17); ((Control)l6).Name = "l6"; ((Control)l6).Size = new Size(29, 13); ((Control)l6).TabIndex = 14; ((Control)l6).Text = "0"; l6.TextAlign = (ContentAlignment)32; ((Control)l7).Location = new Point(213, 17); ((Control)l7).Name = "l7"; ((Control)l7).Size = new Size(29, 13); ((Control)l7).TabIndex = 15; ((Control)l7).Text = "0"; l7.TextAlign = (ContentAlignment)32; ((Control)l8).Location = new Point(248, 17); ((Control)l8).Name = "l8"; ((Control)l8).Size = new Size(29, 13); ((Control)l8).TabIndex = 16; ((Control)l8).Text = "0"; l8.TextAlign = (ContentAlignment)32; ((Control)l9).Location = new Point(283, 17); ((Control)l9).Name = "l9"; ((Control)l9).Size = new Size(36, 13); ((Control)l9).TabIndex = 17; ((Control)l9).Text = "0"; l9.TextAlign = (ContentAlignment)32; ((Control)panel1).Controls.Add((Control)(object)panel10); ((Control)panel1).Controls.Add((Control)(object)panel8); ((Control)panel1).Controls.Add((Control)(object)panel2); ((Control)panel1).Dock = (DockStyle)2; ((Control)panel1).Location = new Point(0, 610); ((Control)panel1).Name = "panel1"; ((Control)panel1).Size = new Size(322, 51); ((Control)panel1).TabIndex = 13; ((Control)panel10).Controls.Add((Control)(object)waitServer); ((Control)panel10).Controls.Add((Control)(object)waitPhone); ((Control)panel10).Controls.Add((Control)(object)serialNumber); ((Control)panel10).Dock = (DockStyle)3; ((Control)panel10).Location = new Point(90, 0); ((Control)panel10).Name = "panel10"; ((Control)panel10).Size = new Size(86, 51); ((Control)panel10).TabIndex = 15; waitServer.BorderStyle = (BorderStyle)2; ((Control)waitServer).Dock = (DockStyle)2; ((Control)waitServer).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)waitServer).Location = new Point(0, 31); ((Control)waitServer).Name = "waitServer"; ((Control)waitServer).Size = new Size(86, 20); ((Control)waitServer).TabIndex = 1; waitServer.TextAlign = (ContentAlignment)1024; waitPhone.BorderStyle = (BorderStyle)2; ((Control)waitPhone).Dock = (DockStyle)1; ((Control)waitPhone).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)waitPhone).Location = new Point(0, 0); ((Control)waitPhone).Name = "waitPhone"; ((Control)waitPhone).Size = new Size(86, 19); ((Control)waitPhone).TabIndex = 0; waitPhone.TextAlign = (ContentAlignment)4; ((Control)serialNumber).Font = new Font("Microsoft Sans Serif", 6f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)serialNumber).Location = new Point(4, 21); ((Control)serialNumber).Name = "serialNumber"; ((Control)serialNumber).Size = new Size(116, 9); ((Control)serialNumber).TabIndex = 2; serialNumber.TextAlign = (ContentAlignment)32; ((Control)panel8).Controls.Add((Control)(object)label19); ((Control)panel8).Controls.Add((Control)(object)panel9); ((Control)panel8).Controls.Add((Control)(object)label16); ((Control)panel8).Dock = (DockStyle)3; ((Control)panel8).Location = new Point(0, 0); ((Control)panel8).Name = "panel8"; ((Control)panel8).Size = new Size(90, 51); ((Control)panel8).TabIndex = 14; ((Control)label19).Font = new Font("Microsoft Sans Serif", 6f, (FontStyle)6, (GraphicsUnit)3, (byte)204); ((Control)label19).Location = new Point(44, 1); ((Control)label19).Name = "label19"; ((Control)label19).Size = new Size(45, 13); ((Control)label19).TabIndex = 2; label19.TextAlign = (ContentAlignment)4; ((Control)panel9).Controls.Add((Control)(object)label18); ((Control)panel9).Controls.Add((Control)(object)label17); ((Control)panel9).Dock = (DockStyle)2; ((Control)panel9).Location = new Point(0, 38); ((Control)panel9).Name = "panel9"; ((Control)panel9).Size = new Size(90, 13); ((Control)panel9).TabIndex = 1; label18.BorderStyle = (BorderStyle)2; ((Control)label18).Dock = (DockStyle)5; ((Control)label18).Font = new Font("Microsoft Sans Serif", 6f, (FontStyle)2, (GraphicsUnit)3, (byte)204); ((Control)label18).Location = new Point(45, 0); ((Control)label18).Name = "label18"; ((Control)label18).Size = new Size(45, 13); ((Control)label18).TabIndex = 1; label18.TextAlign = (ContentAlignment)4; label17.BorderStyle = (BorderStyle)2; ((Control)label17).Dock = (DockStyle)3; ((Control)label17).Font = new Font("Microsoft Sans Serif", 6f, (FontStyle)2, (GraphicsUnit)3, (byte)204); ((Control)label17).Location = new Point(0, 0); ((Control)label17).Name = "label17"; ((Control)label17).Size = new Size(45, 13); ((Control)label17).TabIndex = 0; label16.BorderStyle = (BorderStyle)2; ((Control)label16).Dock = (DockStyle)1; ((Control)label16).Font = new Font("Microsoft Sans Serif", 12f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label16).Location = new Point(0, 0); ((Control)label16).Name = "label16"; ((Control)label16).Size = new Size(90, 38); ((Control)label16).TabIndex = 0; label16.TextAlign = (ContentAlignment)512; ((Control)panel2).Controls.Add((Control)(object)asus); ((Control)panel2).Controls.Add((Control)(object)huawei); ((Control)panel2).Controls.Add((Control)(object)samsung); ((Control)panel2).Dock = (DockStyle)4; ((Control)panel2).Location = new Point(215, 0); ((Control)panel2).Name = "panel2"; ((Control)panel2).Size = new Size(107, 51); ((Control)panel2).TabIndex = 13; ((Control)asus).Anchor = (AnchorStyles)10; ((Control)asus).BackgroundImage = (Image)componentResourceManager.GetObject("asus.BackgroundImage"); ((Control)asus).BackgroundImageLayout = (ImageLayout)4; ((Control)asus).Location = new Point(3, 5); ((Control)asus).Name = "asus"; ((Control)asus).Size = new Size(100, 40); asus.SizeMode = (PictureBoxSizeMode)2; asus.TabIndex = 13; asus.TabStop = false; ((Control)asus).Visible = false; ((Control)huawei).Anchor = (AnchorStyles)10; ((Control)huawei).BackgroundImage = (Image)componentResourceManager.GetObject("huawei.BackgroundImage"); ((Control)huawei).BackgroundImageLayout = (ImageLayout)4; ((Control)huawei).Location = new Point(22, 0); ((Control)huawei).Name = "huawei"; ((Control)huawei).Size = new Size(60, 50); huawei.SizeMode = (PictureBoxSizeMode)2; huawei.TabIndex = 11; huawei.TabStop = false; ((Control)huawei).Visible = false; ((Control)huawei).Click += pictureBox1_Click; ((Control)samsung).Anchor = (AnchorStyles)10; ((Control)samsung).BackgroundImage = (Image)componentResourceManager.GetObject("samsung.BackgroundImage"); ((Control)samsung).BackgroundImageLayout = (ImageLayout)4; ((Control)samsung).Location = new Point(3, 11); ((Control)samsung).Name = "samsung"; ((Control)samsung).Size = new Size(100, 40); samsung.SizeMode = (PictureBoxSizeMode)2; samsung.TabIndex = 12; samsung.TabStop = false; ((Control)samsung).Visible = false; ((Control)listBox3).BackColor = SystemColors.Control; ((Control)listBox3).Dock = (DockStyle)2; ((Control)listBox3).Enabled = false; ((Control)listBox3).Font = new Font("Microsoft Sans Serif", 6f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((ListControl)listBox3).FormattingEnabled = true; listBox3.ItemHeight = 9; ((Control)listBox3).Location = new Point(0, 661); ((Control)listBox3).Name = "listBox3"; ((Control)listBox3).Size = new Size(322, 22); ((Control)listBox3).TabIndex = 10; ((Control)listBox3).Visible = false; ((Control)listBox3).DoubleClick += ListBox3_DoubleClick; ((Control)tableLayoutPanel3).BackColor = SystemColors.Control; tableLayoutPanel3.ColumnCount = 2; tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle((SizeType)2, 34.375f)); tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle((SizeType)2, 65.625f)); tableLayoutPanel3.Controls.Add((Control)(object)IPPS, 1, 12); tableLayoutPanel3.Controls.Add((Control)(object)IFPSV, 1, 6); tableLayoutPanel3.Controls.Add((Control)(object)label20, 0, 6); tableLayoutPanel3.Controls.Add((Control)(object)IByteRateO, 1, 14); tableLayoutPanel3.Controls.Add((Control)(object)label14, 0, 14); tableLayoutPanel3.Controls.Add((Control)(object)IByteRateI, 1, 11); tableLayoutPanel3.Controls.Add((Control)(object)label13, 0, 11); tableLayoutPanel3.Controls.Add((Control)(object)IByteRateV, 1, 8); tableLayoutPanel3.Controls.Add((Control)(object)label12, 0, 8); tableLayoutPanel3.Controls.Add((Control)(object)label11, 0, 13); tableLayoutPanel3.Controls.Add((Control)(object)IBitRateV, 1, 7); tableLayoutPanel3.Controls.Add((Control)(object)label8, 0, 7); tableLayoutPanel3.Controls.Add((Control)(object)label10, 0, 4); tableLayoutPanel3.Controls.Add((Control)(object)lAperture, 1, 4); tableLayoutPanel3.Controls.Add((Control)(object)label6, 0, 3); tableLayoutPanel3.Controls.Add((Control)(object)lSTime, 1, 3); tableLayoutPanel3.Controls.Add((Control)(object)label3, 0, 2); tableLayoutPanel3.Controls.Add((Control)(object)lDuration, 1, 2); tableLayoutPanel3.Controls.Add((Control)(object)lISO, 1, 1); tableLayoutPanel3.Controls.Add((Control)(object)label2, 0, 1); tableLayoutPanel3.Controls.Add((Control)(object)label4, 0, 0); tableLayoutPanel3.Controls.Add((Control)(object)lFocus, 1, 0); tableLayoutPanel3.Controls.Add((Control)(object)label9, 0, 10); tableLayoutPanel3.Controls.Add((Control)(object)IBitRateI, 1, 10); tableLayoutPanel3.Controls.Add((Control)(object)IBitRateO, 1, 13); ((Control)tableLayoutPanel3).Dock = (DockStyle)1; ((Control)tableLayoutPanel3).Location = new Point(0, 333); ((Control)tableLayoutPanel3).Name = "tableLayoutPanel3"; tableLayoutPanel3.RowCount = 15; tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)2, 6.666667f)); tableLayoutPanel3.RowStyles.Add(new RowStyle((SizeType)1, 20f)); ((Control)tableLayoutPanel3).Size = new Size(322, 239); ((Control)tableLayoutPanel3).TabIndex = 9; ((Control)IPPS).Anchor = (AnchorStyles)15; ((Control)IPPS).AutoSize = true; ((Control)IPPS).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IPPS).Location = new Point(113, 180); ((Control)IPPS).Name = "IPPS"; ((Control)IPPS).Size = new Size(206, 15); ((Control)IPPS).TabIndex = 72; IPPS.TextAlign = (ContentAlignment)64; ((Control)IFPSV).Anchor = (AnchorStyles)15; ((Control)IFPSV).AutoSize = true; ((Control)IFPSV).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IFPSV).Location = new Point(113, 90); ((Control)IFPSV).Name = "IFPSV"; ((Control)IFPSV).Size = new Size(206, 15); ((Control)IFPSV).TabIndex = 71; IFPSV.TextAlign = (ContentAlignment)64; ((Control)label20).Anchor = (AnchorStyles)15; ((Control)label20).AutoSize = true; ((Control)label20).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)label20).Location = new Point(3, 90); ((Control)label20).Name = "label20"; ((Control)label20).Size = new Size(104, 15); ((Control)label20).TabIndex = 70; ((Control)label20).Text = "FPS video"; label20.TextAlign = (ContentAlignment)64; ((Control)IByteRateO).Anchor = (AnchorStyles)15; ((Control)IByteRateO).AutoSize = true; ((Control)IByteRateO).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IByteRateO).Location = new Point(113, 210); ((Control)IByteRateO).Name = "IByteRateO"; ((Control)IByteRateO).Size = new Size(206, 29); ((Control)IByteRateO).TabIndex = 69; IByteRateO.TextAlign = (ContentAlignment)64; ((Control)label14).Anchor = (AnchorStyles)15; ((Control)label14).AutoSize = true; ((Control)label14).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)label14).Location = new Point(3, 210); ((Control)label14).Name = "label14"; ((Control)label14).Size = new Size(104, 29); ((Control)label14).TabIndex = 68; ((Control)label14).Text = "Byte rate output"; label14.TextAlign = (ContentAlignment)64; ((Control)IByteRateI).Anchor = (AnchorStyles)15; ((Control)IByteRateI).AutoSize = true; ((Control)IByteRateI).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IByteRateI).Location = new Point(113, 165); ((Control)IByteRateI).Name = "IByteRateI"; ((Control)IByteRateI).Size = new Size(206, 15); ((Control)IByteRateI).TabIndex = 67; IByteRateI.TextAlign = (ContentAlignment)64; ((Control)label13).Anchor = (AnchorStyles)15; ((Control)label13).AutoSize = true; ((Control)label13).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)label13).Location = new Point(3, 165); ((Control)label13).Name = "label13"; ((Control)label13).Size = new Size(104, 15); ((Control)label13).TabIndex = 66; ((Control)label13).Text = "Byte rate input"; label13.TextAlign = (ContentAlignment)64; ((Control)IByteRateV).Anchor = (AnchorStyles)15; ((Control)IByteRateV).AutoSize = true; ((Control)IByteRateV).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IByteRateV).Location = new Point(113, 120); ((Control)IByteRateV).Name = "IByteRateV"; ((Control)IByteRateV).Size = new Size(206, 15); ((Control)IByteRateV).TabIndex = 65; IByteRateV.TextAlign = (ContentAlignment)64; ((Control)label12).Anchor = (AnchorStyles)15; ((Control)label12).AutoSize = true; ((Control)label12).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)label12).Location = new Point(3, 120); ((Control)label12).Name = "label12"; ((Control)label12).Size = new Size(104, 15); ((Control)label12).TabIndex = 64; ((Control)label12).Text = "Byte rate video"; label12.TextAlign = (ContentAlignment)64; ((Control)label11).Anchor = (AnchorStyles)15; ((Control)label11).AutoSize = true; ((Control)label11).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)label11).Location = new Point(3, 195); ((Control)label11).Name = "label11"; ((Control)label11).Size = new Size(104, 15); ((Control)label11).TabIndex = 61; ((Control)label11).Text = "Bit.rate output"; label11.TextAlign = (ContentAlignment)64; ((Control)IBitRateV).Anchor = (AnchorStyles)15; ((Control)IBitRateV).AutoSize = true; ((Control)IBitRateV).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IBitRateV).Location = new Point(113, 105); ((Control)IBitRateV).Name = "IBitRateV"; ((Control)IBitRateV).Size = new Size(206, 15); ((Control)IBitRateV).TabIndex = 59; IBitRateV.TextAlign = (ContentAlignment)64; ((Control)label8).Anchor = (AnchorStyles)15; ((Control)label8).AutoSize = true; ((Control)label8).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)label8).Location = new Point(3, 105); ((Control)label8).Name = "label8"; ((Control)label8).Size = new Size(104, 15); ((Control)label8).TabIndex = 58; ((Control)label8).Text = "Bit rate video"; label8.TextAlign = (ContentAlignment)64; ((Control)label10).Anchor = (AnchorStyles)15; ((Control)label10).AutoSize = true; ((Control)label10).Font = new Font("Microsoft Sans Serif", 9f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label10).Location = new Point(3, 60); ((Control)label10).Name = "label10"; ((Control)label10).Size = new Size(104, 15); ((Control)label10).TabIndex = 57; ((Control)label10).Text = "Aperture"; label10.TextAlign = (ContentAlignment)64; ((Control)lAperture).Anchor = (AnchorStyles)15; ((Control)lAperture).AutoSize = true; ((Control)lAperture).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)lAperture).Location = new Point(113, 60); ((Control)lAperture).Name = "lAperture"; ((Control)lAperture).Size = new Size(206, 15); ((Control)lAperture).TabIndex = 55; lAperture.TextAlign = (ContentAlignment)16; ((Control)label6).Anchor = (AnchorStyles)15; ((Control)label6).AutoSize = true; ((Control)label6).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label6).Location = new Point(3, 45); ((Control)label6).Name = "label6"; ((Control)label6).Size = new Size(104, 15); ((Control)label6).TabIndex = 56; ((Control)label6).Text = "Exposure"; label6.TextAlign = (ContentAlignment)64; ((Control)lSTime).Anchor = (AnchorStyles)15; ((Control)lSTime).AutoSize = true; ((Control)lSTime).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)lSTime).Location = new Point(113, 45); ((Control)lSTime).Name = "lSTime"; ((Control)lSTime).Size = new Size(206, 15); ((Control)lSTime).TabIndex = 52; lSTime.TextAlign = (ContentAlignment)16; ((Control)label3).Anchor = (AnchorStyles)15; ((Control)label3).AutoSize = true; ((Control)label3).Font = new Font("Microsoft Sans Serif", 9f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label3).Location = new Point(3, 30); ((Control)label3).Name = "label3"; ((Control)label3).Size = new Size(104, 15); ((Control)label3).TabIndex = 54; ((Control)label3).Text = "FPS"; label3.TextAlign = (ContentAlignment)64; ((Control)lDuration).Anchor = (AnchorStyles)15; ((Control)lDuration).AutoSize = true; ((Control)lDuration).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)lDuration).Location = new Point(113, 30); ((Control)lDuration).Name = "lDuration"; ((Control)lDuration).Size = new Size(206, 15); ((Control)lDuration).TabIndex = 51; lDuration.TextAlign = (ContentAlignment)16; ((Control)lDuration).Click += LDuration_Click; ((Control)lISO).Anchor = (AnchorStyles)15; ((Control)lISO).AutoSize = true; ((Control)lISO).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)lISO).Location = new Point(113, 15); ((Control)lISO).Name = "lISO"; ((Control)lISO).Size = new Size(206, 15); ((Control)lISO).TabIndex = 53; lISO.TextAlign = (ContentAlignment)16; ((Control)label2).Anchor = (AnchorStyles)15; ((Control)label2).AutoSize = true; ((Control)label2).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label2).Location = new Point(3, 15); ((Control)label2).Name = "label2"; ((Control)label2).Size = new Size(104, 15); ((Control)label2).TabIndex = 48; ((Control)label2).Text = "ISO"; label2.TextAlign = (ContentAlignment)64; ((Control)label2).Click += Label2_Click; ((Control)label4).Anchor = (AnchorStyles)15; ((Control)label4).AutoSize = true; ((Control)label4).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label4).Location = new Point(3, 0); ((Control)label4).Name = "label4"; ((Control)label4).Size = new Size(104, 15); ((Control)label4).TabIndex = 50; ((Control)label4).Text = "Focus"; label4.TextAlign = (ContentAlignment)64; ((Control)lFocus).Anchor = (AnchorStyles)15; ((Control)lFocus).AutoSize = true; ((Control)lFocus).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)lFocus).Location = new Point(113, 0); ((Control)lFocus).Name = "lFocus"; ((Control)lFocus).Size = new Size(206, 15); ((Control)lFocus).TabIndex = 49; lFocus.TextAlign = (ContentAlignment)16; ((Control)label9).Anchor = (AnchorStyles)15; ((Control)label9).AutoSize = true; ((Control)label9).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)label9).Location = new Point(3, 150); ((Control)label9).Name = "label9"; ((Control)label9).Size = new Size(104, 15); ((Control)label9).TabIndex = 60; ((Control)label9).Text = "Bit rate input"; label9.TextAlign = (ContentAlignment)64; ((Control)IBitRateI).Anchor = (AnchorStyles)15; ((Control)IBitRateI).AutoSize = true; ((Control)IBitRateI).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IBitRateI).Location = new Point(113, 150); ((Control)IBitRateI).Name = "IBitRateI"; ((Control)IBitRateI).Size = new Size(206, 15); ((Control)IBitRateI).TabIndex = 62; IBitRateI.TextAlign = (ContentAlignment)64; ((Control)IBitRateO).Anchor = (AnchorStyles)15; ((Control)IBitRateO).AutoSize = true; ((Control)IBitRateO).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)0, (GraphicsUnit)3, (byte)204); ((Control)IBitRateO).Location = new Point(113, 195); ((Control)IBitRateO).Name = "IBitRateO"; ((Control)IBitRateO).Size = new Size(206, 15); ((Control)IBitRateO).TabIndex = 63; IBitRateO.TextAlign = (ContentAlignment)64; ((Control)tableLayoutPanel1).BackColor = SystemColors.Control; tableLayoutPanel1.CellBorderStyle = (TableLayoutPanelCellBorderStyle)1; tableLayoutPanel1.ColumnCount = 2; tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle((SizeType)1, 80f)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle((SizeType)2, 100f)); tableLayoutPanel1.Controls.Add((Control)(object)label15, 0, 6); tableLayoutPanel1.Controls.Add((Control)(object)FPS, 1, 4); tableLayoutPanel1.Controls.Add((Control)(object)labelExp, 0, 5); tableLayoutPanel1.Controls.Add((Control)(object)labelFPS, 0, 4); tableLayoutPanel1.Controls.Add((Control)(object)ISO, 1, 3); tableLayoutPanel1.Controls.Add((Control)(object)labelISO, 0, 3); tableLayoutPanel1.Controls.Add((Control)(object)pContrast, 0, 1); tableLayoutPanel1.Controls.Add((Control)(object)pBright, 0, 0); tableLayoutPanel1.Controls.Add((Control)(object)BitRateBox, 1, 8); tableLayoutPanel1.Controls.Add((Control)(object)Exposure, 1, 5); tableLayoutPanel1.Controls.Add((Control)(object)Zoom, 1, 6); tableLayoutPanel1.Controls.Add((Control)(object)Focuse, 1, 2); tableLayoutPanel1.Controls.Add((Control)(object)Contrast, 1, 1); tableLayoutPanel1.Controls.Add((Control)(object)Brightness, 1, 0); tableLayoutPanel1.Controls.Add((Control)(object)panel3, 1, 9); tableLayoutPanel1.Controls.Add((Control)(object)panel_chenal, 0, 9); tableLayoutPanel1.Controls.Add((Control)(object)label1, 0, 2); ((Control)tableLayoutPanel1).Dock = (DockStyle)1; ((Control)tableLayoutPanel1).Location = new Point(0, 55); ((Control)tableLayoutPanel1).Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 10; tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 40f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 25f)); tableLayoutPanel1.RowStyles.Add(new RowStyle((SizeType)1, 20f)); ((Control)tableLayoutPanel1).Size = new Size(322, 278); ((Control)tableLayoutPanel1).TabIndex = 6; ((Control)label15).Anchor = (AnchorStyles)15; ((Control)label15).AutoSize = true; ((Control)label15).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label15).Location = new Point(4, 172); ((Control)label15).Name = "label15"; ((Control)label15).Size = new Size(74, 25); ((Control)label15).TabIndex = 54; ((Control)label15).Text = "zoom"; label15.TextAlign = (ContentAlignment)32; ((Control)FPS).Dock = (DockStyle)5; ((ScrollBar)FPS).LargeChange = 4; ((Control)FPS).Location = new Point(82, 120); ((ScrollBar)FPS).Maximum = 24; ((ScrollBar)FPS).Minimum = 2; ((Control)FPS).Name = "FPS"; ((Control)FPS).Size = new Size(239, 25); ((Control)FPS).TabIndex = 53; ((ScrollBar)FPS).Value = 21; ((ScrollBar)FPS).ValueChanged += FPS_ValueChanged; ((Control)labelExp).Anchor = (AnchorStyles)15; ((Control)labelExp).AutoSize = true; ((Control)labelExp).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)labelExp).Location = new Point(4, 146); ((Control)labelExp).Name = "labelExp"; ((Control)labelExp).Size = new Size(74, 25); ((Control)labelExp).TabIndex = 52; ((Control)labelExp).Text = "exposure"; labelExp.TextAlign = (ContentAlignment)32; ((Control)labelFPS).Anchor = (AnchorStyles)15; ((Control)labelFPS).AutoSize = true; ((Control)labelFPS).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)labelFPS).Location = new Point(4, 120); ((Control)labelFPS).Name = "labelFPS"; ((Control)labelFPS).Size = new Size(74, 25); ((Control)labelFPS).TabIndex = 51; ((Control)labelFPS).Text = "FPS"; labelFPS.TextAlign = (ContentAlignment)32; ((Control)ISO).Dock = (DockStyle)5; ((Control)ISO).Location = new Point(82, 94); ((ScrollBar)ISO).Maximum = 1210; ((ScrollBar)ISO).Minimum = 1; ((Control)ISO).Name = "ISO"; ((Control)ISO).Size = new Size(239, 25); ((Control)ISO).TabIndex = 50; ((ScrollBar)ISO).Value = 1; ((ScrollBar)ISO).ValueChanged += ISO_ValueChanged; ((Control)labelISO).Anchor = (AnchorStyles)15; ((Control)labelISO).AutoSize = true; ((Control)labelISO).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)labelISO).Location = new Point(4, 94); ((Control)labelISO).Name = "labelISO"; ((Control)labelISO).Size = new Size(74, 25); ((Control)labelISO).TabIndex = 49; ((Control)labelISO).Text = "ISO"; labelISO.TextAlign = (ContentAlignment)32; ((Control)pContrast).BackgroundImage = (Image)componentResourceManager.GetObject("pContrast.BackgroundImage"); ((Control)pContrast).BackgroundImageLayout = (ImageLayout)4; ((Control)pContrast).Dock = (DockStyle)5; ((Control)pContrast).Location = new Point(4, 30); ((Control)pContrast).Name = "pContrast"; ((Control)pContrast).Size = new Size(74, 19); pContrast.TabIndex = 46; pContrast.TabStop = false; ((Control)pContrast).DoubleClick += pictureBox4_DoubleClick; ((Control)pBright).BackgroundImage = (Image)componentResourceManager.GetObject("pBright.BackgroundImage"); ((Control)pBright).BackgroundImageLayout = (ImageLayout)4; ((Control)pBright).Dock = (DockStyle)5; ((Control)pBright).Location = new Point(4, 4); ((Control)pBright).Name = "pBright"; ((Control)pBright).Size = new Size(74, 19); pBright.TabIndex = 8; pBright.TabStop = false; ((Control)pBright).DoubleClick += pictureBox1_DoubleClick; ((Control)BitRateBox).Dock = (DockStyle)5; BitRateBox.DropDownStyle = (ComboBoxStyle)2; ((ListControl)BitRateBox).FormattingEnabled = true; BitRateBox.ItemHeight = 13; BitRateBox.Items.AddRange(new object[31] { "100k", "250k", "500k", "750k", "1000k", "1500k", "1800k", "2000k", "2500k", "2800k", "2900k", "3M", "4M", "5M", "6M", "7M", "8M", "9M", "10M", "11M", "12M", "15M", "20M", "25M", "30M", "35M", "40M", "45M", "50M", "60M", "70M" }); ((Control)BitRateBox).Location = new Point(85, 227); ((Control)BitRateBox).Name = "BitRateBox"; ((Control)BitRateBox).Size = new Size(233, 21); ((Control)BitRateBox).TabIndex = 42; ((Control)Exposure).Dock = (DockStyle)5; ((Control)Exposure).Location = new Point(82, 146); ((ScrollBar)Exposure).Maximum = 210; ((ScrollBar)Exposure).Minimum = 2; ((Control)Exposure).Name = "Exposure"; ((Control)Exposure).Size = new Size(239, 25); ((Control)Exposure).TabIndex = 31; ((ScrollBar)Exposure).Value = 2; ((ScrollBar)Exposure).ValueChanged += Exposure_ValueChanged; ((Control)Zoom).Dock = (DockStyle)5; ((ScrollBar)Zoom).LargeChange = 1; ((Control)Zoom).Location = new Point(82, 172); ((ScrollBar)Zoom).Maximum = 10; ((Control)Zoom).Name = "Zoom"; ((Control)Zoom).Size = new Size(239, 25); ((Control)Zoom).TabIndex = 28; ((ScrollBar)Zoom).ValueChanged += Zoom_ValueChanged; ((Control)Focuse).Dock = (DockStyle)5; ((ScrollBar)Focuse).LargeChange = 25; ((Control)Focuse).Location = new Point(82, 53); ((ScrollBar)Focuse).Maximum = 1025; ((ScrollBar)Focuse).Minimum = 1; ((Control)Focuse).Name = "Focuse"; ((Control)Focuse).Size = new Size(239, 40); ((Control)Focuse).TabIndex = 27; ((ScrollBar)Focuse).Value = 1; ((ScrollBar)Focuse).ValueChanged += Focus_ValueChanged; ((Control)Contrast).Dock = (DockStyle)5; ((Control)Contrast).Location = new Point(82, 27); ((ScrollBar)Contrast).Maximum = 200; ((ScrollBar)Contrast).Minimum = -200; ((Control)Contrast).Name = "Contrast"; ((Control)Contrast).Size = new Size(239, 25); ((Control)Contrast).TabIndex = 6; ((ScrollBar)Contrast).ValueChanged += ValueChanged; ((Control)Brightness).Dock = (DockStyle)5; ((Control)Brightness).Location = new Point(82, 1); ((ScrollBar)Brightness).Maximum = 200; ((ScrollBar)Brightness).Minimum = -200; ((Control)Brightness).Name = "Brightness"; ((Control)Brightness).Size = new Size(239, 25); ((Control)Brightness).TabIndex = 4; ((ScrollBar)Brightness).ValueChanged += ValueChanged; ((Control)panel3).Controls.Add((Control)(object)comboBox2); ((Control)panel3).Controls.Add((Control)(object)comboBox1); ((Control)panel3).Controls.Add((Control)(object)checkBox_saveVideo); ((Control)panel3).Dock = (DockStyle)5; ((Control)panel3).Location = new Point(85, 253); ((Control)panel3).Name = "panel3"; ((Control)panel3).Size = new Size(233, 21); ((Control)panel3).TabIndex = 43; ((Control)comboBox2).Dock = (DockStyle)4; comboBox2.DropDownStyle = (ComboBoxStyle)2; ((ListControl)comboBox2).FormattingEnabled = true; comboBox2.ItemHeight = 13; comboBox2.Items.AddRange(new object[3] { "1920 x 1080 x 30", "1280 x 720 x 120", "1280 x 720 x 240" }); ((Control)comboBox2).Location = new Point(80, 0); ((Control)comboBox2).Name = "comboBox2"; ((Control)comboBox2).Size = new Size(43, 21); ((Control)comboBox2).TabIndex = 44; ((Control)comboBox2).Visible = false; comboBox2.SelectedIndexChanged += ComboBox2_SelectedIndexChanged; ((Control)comboBox1).Dock = (DockStyle)4; comboBox1.DropDownStyle = (ComboBoxStyle)2; ((ListControl)comboBox1).FormattingEnabled = true; comboBox1.ItemHeight = 13; comboBox1.Items.AddRange(new object[3] { "1920 x 1080 x 30", "1280 x 720 x 120", "1280 x 720 x 240" }); ((Control)comboBox1).Location = new Point(123, 0); ((Control)comboBox1).Name = "comboBox1"; ((Control)comboBox1).Size = new Size(110, 21); ((Control)comboBox1).TabIndex = 43; ((Control)checkBox_saveVideo).AutoSize = true; ((Control)checkBox_saveVideo).Location = new Point(0, 2); ((Control)checkBox_saveVideo).Name = "checkBox_saveVideo"; ((Control)checkBox_saveVideo).Size = new Size(74, 17); ((Control)checkBox_saveVideo).TabIndex = 8; ((Control)checkBox_saveVideo).Text = "保存視頻"; ((ButtonBase)checkBox_saveVideo).UseVisualStyleBackColor = true; ((Control)checkBox_saveVideo).Visible = false; ((Control)checkBox_saveVideo).Click += checkBox_saveVideo_Click; ((Control)panel_chenal).Controls.Add((Control)(object)button9); ((Control)panel_chenal).Controls.Add((Control)(object)chenal); ((Control)panel_chenal).Dock = (DockStyle)5; ((Control)panel_chenal).Location = new Point(4, 253); ((Control)panel_chenal).Name = "panel_chenal"; ((Control)panel_chenal).Size = new Size(74, 21); ((Control)panel_chenal).TabIndex = 44; ((Control)button9).Dock = (DockStyle)5; ((Control)button9).Location = new Point(25, 0); ((Control)button9).Name = "button9"; ((Control)button9).Size = new Size(49, 21); ((Control)button9).TabIndex = 46; ((Control)button9).Text = "Ѻ"; ((ButtonBase)button9).UseVisualStyleBackColor = true; ((Control)button9).Click += SerialNumber_DoubleClick; ((Control)chenal).Dock = (DockStyle)3; ((Control)chenal).Location = new Point(0, 0); chenal.Mask = "00"; ((Control)chenal).Name = "chenal"; ((Control)chenal).Size = new Size(25, 20); ((Control)chenal).TabIndex = 45; chenal.TextAlign = (HorizontalAlignment)2; ((Control)chenal).Visible = false; ((Control)label1).Anchor = (AnchorStyles)15; ((Control)label1).AutoSize = true; ((Control)label1).Font = new Font("Microsoft Sans Serif", 9.75f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label1).Location = new Point(4, 53); ((Control)label1).Name = "label1"; ((Control)label1).Size = new Size(74, 40); ((Control)label1).TabIndex = 47; ((Control)label1).Text = "Focus"; label1.TextAlign = (ContentAlignment)32; ((ScrollableControl)tableLayoutPanel2).AutoScroll = true; tableLayoutPanel2.ColumnCount = 6; tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle((SizeType)2, 16.66667f)); tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle((SizeType)2, 16.66667f)); tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle((SizeType)2, 16.66667f)); tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle((SizeType)2, 16.66667f)); tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle((SizeType)2, 16.66667f)); tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle((SizeType)2, 16.66667f)); tableLayoutPanel2.Controls.Add((Control)(object)button8, 4, 0); tableLayoutPanel2.Controls.Add((Control)(object)button5, 1, 0); tableLayoutPanel2.Controls.Add((Control)(object)button6, 0, 0); tableLayoutPanel2.Controls.Add((Control)(object)button4, 5, 0); tableLayoutPanel2.Controls.Add((Control)(object)button3, 3, 0); tableLayoutPanel2.Controls.Add((Control)(object)button7, 2, 0); ((Control)tableLayoutPanel2).Dock = (DockStyle)1; ((Control)tableLayoutPanel2).Location = new Point(0, 0); ((Control)tableLayoutPanel2).Name = "tableLayoutPanel2"; tableLayoutPanel2.RowCount = 1; tableLayoutPanel2.RowStyles.Add(new RowStyle((SizeType)2, 100f)); ((Control)tableLayoutPanel2).Size = new Size(322, 55); ((Control)tableLayoutPanel2).TabIndex = 5; ((Control)button8).Anchor = (AnchorStyles)15; ((Control)button8).AutoSize = true; ((Control)button8).BackColor = Color.Transparent; ((Control)button8).BackgroundImage = (Image)componentResourceManager.GetObject("button8.BackgroundImage"); ((Control)button8).BackgroundImageLayout = (ImageLayout)4; ((Control)button8).Font = new Font("Microsoft Sans Serif", 8.25f, (FontStyle)2, (GraphicsUnit)3, (byte)204); ((Control)button8).Location = new Point(215, 3); ((Control)button8).Name = "button8"; ((Control)button8).Size = new Size(47, 49); ((Control)button8).TabIndex = 3; ((Control)button8).TabStop = false; ((ButtonBase)button8).TextAlign = (ContentAlignment)256; ((ButtonBase)button8).UseVisualStyleBackColor = false; ((Control)button8).Click += Button8_Click; ((Control)button8).Enter += _Enter; ((Control)button5).Anchor = (AnchorStyles)15; ((Control)button5).AutoSize = true; ((Control)button5).BackgroundImage = (Image)componentResourceManager.GetObject("button5.BackgroundImage"); ((Control)button5).BackgroundImageLayout = (ImageLayout)4; ((Control)button5).Location = new Point(56, 3); ((Control)button5).Name = "button5"; ((Control)button5).Size = new Size(47, 49); ((Control)button5).TabIndex = 1; ((Control)button5).TabStop = false; ((ButtonBase)button5).UseVisualStyleBackColor = true; ((Control)button5).Click += стопToolStripMenuItem_Click; ((Control)button5).Enter += _Enter; ((Control)button6).Anchor = (AnchorStyles)15; ((Control)button6).AutoSize = true; ((Control)button6).BackgroundImage = (Image)componentResourceManager.GetObject("button6.BackgroundImage"); ((Control)button6).BackgroundImageLayout = (ImageLayout)4; ((Control)button6).Location = new Point(3, 3); ((Control)button6).Name = "button6"; ((Control)button6).Size = new Size(47, 49); ((Control)button6).TabIndex = 0; ((Control)button6).TabStop = false; ((ButtonBase)button6).UseVisualStyleBackColor = true; ((Control)button6).Click += стартToolStripMenuItem_Click; ((Control)button6).Enter += _Enter; ((Control)button4).Anchor = (AnchorStyles)15; ((Control)button4).AutoSize = true; ((Control)button4).BackgroundImage = (Image)componentResourceManager.GetObject("button4.BackgroundImage"); ((Control)button4).BackgroundImageLayout = (ImageLayout)4; ((Control)button4).Location = new Point(268, 3); ((Control)button4).Name = "button4"; ((Control)button4).Size = new Size(51, 49); ((Control)button4).TabIndex = 1; ((Control)button4).TabStop = false; ((ButtonBase)button4).UseVisualStyleBackColor = true; ((Control)button4).Click += повернутьПротивЧасовойToolStripMenuItem_Click; ((Control)button4).Enter += _Enter; ((Control)button3).Anchor = (AnchorStyles)15; ((Control)button3).AutoSize = true; ((Control)button3).BackgroundImage = (Image)componentResourceManager.GetObject("button3.BackgroundImage"); ((Control)button3).BackgroundImageLayout = (ImageLayout)4; ((Control)button3).Location = new Point(162, 3); ((Control)button3).Name = "button3"; ((Control)button3).Size = new Size(47, 49); ((Control)button3).TabIndex = 0; ((Control)button3).TabStop = false; ((ButtonBase)button3).UseVisualStyleBackColor = true; ((Control)button3).Click += повернутьToolStripMenuItem_Click; ((Control)button3).Enter += _Enter; ((Control)button7).Anchor = (AnchorStyles)15; ((Control)button7).AutoSize = true; ((Control)button7).BackgroundImage = (Image)componentResourceManager.GetObject("button7.BackgroundImage"); ((Control)button7).BackgroundImageLayout = (ImageLayout)4; ((Control)button7).Location = new Point(109, 3); ((Control)button7).Name = "button7"; ((Control)button7).Size = new Size(47, 49); ((Control)button7).TabIndex = 2; ((Control)button7).TabStop = false; ((ButtonBase)button7).UseVisualStyleBackColor = true; ((Control)button7).Click += Button7_Click; ((Control)button7).Enter += _Enter; panel4.BorderStyle = (BorderStyle)1; ((Control)panel4).Controls.Add((Control)(object)panel5); ((Control)panel4).Controls.Add((Control)(object)label5); ((Control)panel4).Dock = (DockStyle)1; ((Control)panel4).Location = new Point(3, 3); ((Control)panel4).Name = "panel4"; ((Control)panel4).Size = new Size(1334, 20); ((Control)panel4).TabIndex = 11; ((Control)panel4).Enter += panel6_Enter; ((Control)panel5).BackColor = Color.Transparent; ((Control)panel5).Controls.Add((Control)(object)panel6); ((Control)panel5).Dock = (DockStyle)5; ((Control)panel5).Location = new Point(0, 0); ((Control)panel5).Name = "panel5"; ((Control)panel5).Size = new Size(1308, 18); ((Control)panel5).TabIndex = 12; ((Control)panel5).Enter += panel6_Enter; ((Control)panel6).BackColor = Color.Transparent; ((Control)panel6).Dock = (DockStyle)3; ((Control)panel6).Location = new Point(0, 0); ((Control)panel6).Name = "panel6"; ((Control)panel6).Size = new Size(942, 18); ((Control)panel6).TabIndex = 0; ((Control)panel6).DoubleClick += panel6_DoubleClick; ((Control)panel6).Enter += panel6_Enter; ((Control)label5).AutoSize = true; ((Control)label5).Dock = (DockStyle)4; ((Control)label5).Font = new Font("Microsoft Sans Serif", 12f, (FontStyle)1, (GraphicsUnit)3, (byte)204); ((Control)label5).Location = new Point(1308, 0); ((Control)label5).Name = "label5"; ((Control)label5).Size = new Size(24, 20); ((Control)label5).TabIndex = 11; ((Control)label5).Text = "%"; ((Control)label5).Enter += panel6_Enter; ((Control)tabPage2).Controls.Add((Control)(object)listBox1); tabPage2.Location = new Point(4, 4); ((Control)tabPage2).Name = "tabPage2"; ((Control)tabPage2).Padding = new Padding(3); ((Control)tabPage2).Size = new Size(1340, 709); tabPage2.TabIndex = 1; ((Control)tabPage2).Text = "日誌"; tabPage2.UseVisualStyleBackColor = true; ((Control)tabPage3).Controls.Add((Control)(object)linkLabel1); ((Control)tabPage3).Controls.Add((Control)(object)button2); ((Control)tabPage3).Controls.Add((Control)(object)button1); ((Control)tabPage3).Controls.Add((Control)(object)pictureBox5); tabPage3.Location = new Point(4, 4); ((Control)tabPage3).Name = "tabPage3"; ((Control)tabPage3).Padding = new Padding(3); ((Control)tabPage3).Size = new Size(1340, 709); tabPage3.TabIndex = 2; ((Control)tabPage3).Text = "QR"; tabPage3.UseVisualStyleBackColor = true; ((Control)linkLabel1).AutoSize = true; ((Control)linkLabel1).Location = new Point(226, 8); ((Control)linkLabel1).Name = "linkLabel1"; ((Control)linkLabel1).Size = new Size(0, 13); ((Control)linkLabel1).TabIndex = 3; ((Control)button2).Location = new Point(145, 3); ((Control)button2).Name = "button2"; ((Control)button2).Size = new Size(75, 23); ((Control)button2).TabIndex = 2; ((Control)button2).Text = "複製"; ((ButtonBase)button2).UseVisualStyleBackColor = true; ((Control)button2).Click += button2_Click; ((Control)button1).Location = new Point(3, 3); ((Control)button1).Name = "button1"; ((Control)button1).Size = new Size(136, 23); ((Control)button1).TabIndex = 1; ((Control)button1).Text = "複製QR碼"; ((ButtonBase)button1).UseVisualStyleBackColor = true; ((Control)button1).Click += button1_Click; ((Control)pictureBox5).BackgroundImageLayout = (ImageLayout)2; ((Control)pictureBox5).Dock = (DockStyle)5; ((Control)pictureBox5).Location = new Point(3, 3); ((Control)pictureBox5).Name = "pictureBox5"; ((Control)pictureBox5).Size = new Size(1334, 703); pictureBox5.TabIndex = 0; pictureBox5.TabStop = false; ((Control)panel7).AutoSize = true; ((Control)panel7).Dock = (DockStyle)1; ((Control)panel7).Location = new Point(0, 0); ((Control)panel7).Name = "panel7"; ((Control)panel7).Size = new Size(346, 0); ((Control)panel7).TabIndex = 1; SaveXML.Enabled = true; SaveXML.Interval = 1000; SaveXML.Tick += SaveXML_Tick; ((ContainerControl)this).AutoScaleDimensions = new SizeF(6f, 13f); ((ContainerControl)this).AutoScaleMode = (AutoScaleMode)1; ((Form)this).ClientSize = new Size(1367, 717); ((Control)this).Controls.Add((Control)(object)tabControl1); ((Control)this).DoubleBuffered = true; ((Form)this).Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); ((Control)this).Name = "Form1"; ((Control)this).Text = "讀者"; ((Form)this).Shown += Form1_Shown; ((Control)tabControl1).ResumeLayout(false); ((Control)tabPage1).ResumeLayout(false); ((Control)splitContainer1.Panel1).ResumeLayout(false); ((Control)splitContainer1.Panel2).ResumeLayout(false); ((ISupportInitialize)splitContainer1).EndInit(); ((Control)splitContainer1).ResumeLayout(false); ((Control)tableLayoutPanel4).ResumeLayout(false); ((Control)tableLayoutPanel4).PerformLayout(); ((Control)panel1).ResumeLayout(false); ((Control)panel10).ResumeLayout(false); ((Control)panel8).ResumeLayout(false); ((Control)panel9).ResumeLayout(false); ((Control)panel2).ResumeLayout(false); ((Control)panel2).PerformLayout(); ((ISupportInitialize)asus).EndInit(); ((ISupportInitialize)huawei).EndInit(); ((ISupportInitialize)samsung).EndInit(); ((Control)tableLayoutPanel3).ResumeLayout(false); ((Control)tableLayoutPanel3).PerformLayout(); ((Control)tableLayoutPanel1).ResumeLayout(false); ((Control)tableLayoutPanel1).PerformLayout(); ((ISupportInitialize)pContrast).EndInit(); ((ISupportInitialize)pBright).EndInit(); ((Control)panel3).ResumeLayout(false); ((Control)panel3).PerformLayout(); ((Control)panel_chenal).ResumeLayout(false); ((Control)panel_chenal).PerformLayout(); ((Control)tableLayoutPanel2).ResumeLayout(false); ((Control)tableLayoutPanel2).PerformLayout(); ((Control)panel4).ResumeLayout(false); ((Control)panel4).PerformLayout(); ((Control)panel5).ResumeLayout(false); ((Control)tabPage2).ResumeLayout(false); ((Control)tabPage3).ResumeLayout(false); ((Control)tabPage3).PerformLayout(); ((ISupportInitialize)pictureBox5).EndInit(); ((Control)this).ResumeLayout(false); } }