.Net Applikation für den PC um den Arduino-FSRemotePowerSwitch zu steuern
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. namespace FSRemotePowerSwitch {
  2. partial class MainForm {
  3. /// <summary>
  4. /// Erforderliche Designervariable.
  5. /// </summary>
  6. private System.ComponentModel.IContainer components = null;
  7. /// <summary>
  8. /// Verwendete Ressourcen bereinigen.
  9. /// </summary>
  10. /// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
  11. protected override void Dispose(bool disposing) {
  12. if (disposing && (components != null)) {
  13. components.Dispose();
  14. }
  15. base.Dispose(disposing);
  16. }
  17. #region Vom Windows Form-Designer generierter Code
  18. /// <summary>
  19. /// Erforderliche Methode für die Designerunterstützung.
  20. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
  21. /// </summary>
  22. private void InitializeComponent() {
  23. this.components = new System.ComponentModel.Container();
  24. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
  25. this.serialPort = new System.IO.Ports.SerialPort(this.components);
  26. this.openBtn = new System.Windows.Forms.Button();
  27. this.closeBtn = new System.Windows.Forms.Button();
  28. this.serialPortsCboBox = new System.Windows.Forms.ComboBox();
  29. this.serialPortLbl = new System.Windows.Forms.Label();
  30. this.switchOffStateLbl = new System.Windows.Forms.Label();
  31. this.switchOnStateLbl = new System.Windows.Forms.Label();
  32. this.switchStateTitelLbl = new System.Windows.Forms.Label();
  33. this.label1 = new System.Windows.Forms.Label();
  34. this.statusTimer = new System.Windows.Forms.Timer(this.components);
  35. this.statusBar = new System.Windows.Forms.StatusStrip();
  36. this.hrzStrut = new System.Windows.Forms.ToolStripStatusLabel();
  37. this.initStatusLbl = new System.Windows.Forms.ToolStripStatusLabel();
  38. this.initProgressBar = new System.Windows.Forms.ToolStripProgressBar();
  39. this.reconnectBtn = new System.Windows.Forms.ToolStripSplitButton();
  40. this.connectedSerialPortLbl = new System.Windows.Forms.ToolStripStatusLabel();
  41. this.fwVersionLbl = new System.Windows.Forms.ToolStripStatusLabel();
  42. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  43. this.powerStateLed = new System.Windows.Forms.PictureBox();
  44. this.rotatorActValue = new System.Windows.Forms.Label();
  45. this.webCamRotatorLbl = new System.Windows.Forms.Label();
  46. this.webCamRotPowerLbl = new System.Windows.Forms.Label();
  47. this.webCamRotatorPowerStatusLed = new System.Windows.Forms.PictureBox();
  48. this.webCamRotPwrStatusLbl = new System.Windows.Forms.Label();
  49. this.webCamRotatorPowerOffLbl = new System.Windows.Forms.Label();
  50. this.webCamRotatorPowerOnLbl = new System.Windows.Forms.Label();
  51. this.label2 = new System.Windows.Forms.Label();
  52. this.button1 = new System.Windows.Forms.Button();
  53. this.webCamRotVelocityLbl = new System.Windows.Forms.Label();
  54. this.webCamRotatorVelocitySlowLbl = new System.Windows.Forms.Label();
  55. this.webCamRotatorVelocityFastLbl = new System.Windows.Forms.Label();
  56. this.webCamRotator = new KnobControl.KnobControl();
  57. this.webCamRotatorVelocitySwitch = new FSRemotePowerSwitch.SButton();
  58. this.webCamRotatorPowerSwitch = new FSRemotePowerSwitch.SButton();
  59. this.powerSwitchButton = new FSRemotePowerSwitch.SButton();
  60. this.statusBar.SuspendLayout();
  61. ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
  62. ((System.ComponentModel.ISupportInitialize)(this.powerStateLed)).BeginInit();
  63. ((System.ComponentModel.ISupportInitialize)(this.webCamRotatorPowerStatusLed)).BeginInit();
  64. this.SuspendLayout();
  65. //
  66. // serialPort
  67. //
  68. this.serialPort.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.onSerialPortDataReceived);
  69. //
  70. // openBtn
  71. //
  72. this.openBtn.Enabled = false;
  73. this.openBtn.Location = new System.Drawing.Point(204, 13);
  74. this.openBtn.Name = "openBtn";
  75. this.openBtn.Size = new System.Drawing.Size(100, 29);
  76. this.openBtn.TabIndex = 1;
  77. this.openBtn.Text = "Öffnen";
  78. this.openBtn.UseVisualStyleBackColor = true;
  79. this.openBtn.Click += new System.EventHandler(this.onOpenBtnClick);
  80. //
  81. // closeBtn
  82. //
  83. this.closeBtn.Enabled = false;
  84. this.closeBtn.Location = new System.Drawing.Point(310, 13);
  85. this.closeBtn.Name = "closeBtn";
  86. this.closeBtn.Size = new System.Drawing.Size(100, 29);
  87. this.closeBtn.TabIndex = 2;
  88. this.closeBtn.Text = "Schliessen";
  89. this.closeBtn.UseVisualStyleBackColor = true;
  90. this.closeBtn.Click += new System.EventHandler(this.onCloseBtnClick);
  91. //
  92. // serialPortsCboBox
  93. //
  94. this.serialPortsCboBox.FormattingEnabled = true;
  95. this.serialPortsCboBox.Location = new System.Drawing.Point(111, 14);
  96. this.serialPortsCboBox.Name = "serialPortsCboBox";
  97. this.serialPortsCboBox.Size = new System.Drawing.Size(80, 26);
  98. this.serialPortsCboBox.TabIndex = 5;
  99. this.serialPortsCboBox.SelectedIndexChanged += new System.EventHandler(this.onSerialPortsCboBoxSelectedIndexChanged);
  100. //
  101. // serialPortLbl
  102. //
  103. this.serialPortLbl.AutoSize = true;
  104. this.serialPortLbl.Location = new System.Drawing.Point(14, 15);
  105. this.serialPortLbl.Name = "serialPortLbl";
  106. this.serialPortLbl.Size = new System.Drawing.Size(91, 18);
  107. this.serialPortLbl.TabIndex = 6;
  108. this.serialPortLbl.Text = "Serieller Port:";
  109. //
  110. // switchOffStateLbl
  111. //
  112. this.switchOffStateLbl.AutoSize = true;
  113. this.switchOffStateLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  114. this.switchOffStateLbl.ForeColor = System.Drawing.Color.Red;
  115. this.switchOffStateLbl.Location = new System.Drawing.Point(22, 143);
  116. this.switchOffStateLbl.Name = "switchOffStateLbl";
  117. this.switchOffStateLbl.Size = new System.Drawing.Size(44, 25);
  118. this.switchOffStateLbl.TabIndex = 9;
  119. this.switchOffStateLbl.Text = "AUS";
  120. //
  121. // switchOnStateLbl
  122. //
  123. this.switchOnStateLbl.AutoSize = true;
  124. this.switchOnStateLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  125. this.switchOnStateLbl.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  126. this.switchOnStateLbl.Location = new System.Drawing.Point(158, 143);
  127. this.switchOnStateLbl.Name = "switchOnStateLbl";
  128. this.switchOnStateLbl.Size = new System.Drawing.Size(39, 25);
  129. this.switchOnStateLbl.TabIndex = 10;
  130. this.switchOnStateLbl.Text = "EIN";
  131. //
  132. // switchStateTitelLbl
  133. //
  134. this.switchStateTitelLbl.AutoSize = true;
  135. this.switchStateTitelLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  136. this.switchStateTitelLbl.ForeColor = System.Drawing.SystemColors.HotTrack;
  137. this.switchStateTitelLbl.Location = new System.Drawing.Point(36, 96);
  138. this.switchStateTitelLbl.Name = "switchStateTitelLbl";
  139. this.switchStateTitelLbl.Size = new System.Drawing.Size(147, 19);
  140. this.switchStateTitelLbl.TabIndex = 11;
  141. this.switchStateTitelLbl.Text = "Relais Power Schalter";
  142. //
  143. // label1
  144. //
  145. this.label1.AutoSize = true;
  146. this.label1.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  147. this.label1.ForeColor = System.Drawing.SystemColors.HotTrack;
  148. this.label1.Location = new System.Drawing.Point(44, 230);
  149. this.label1.Name = "label1";
  150. this.label1.Size = new System.Drawing.Size(135, 19);
  151. this.label1.TabIndex = 13;
  152. this.label1.Text = "Relais Power Status";
  153. //
  154. // statusTimer
  155. //
  156. this.statusTimer.Interval = 10000;
  157. this.statusTimer.Tick += new System.EventHandler(this.onStatusTimerTick);
  158. //
  159. // statusBar
  160. //
  161. this.statusBar.Font = new System.Drawing.Font("Bahnschrift SemiLight SemiConde", 11F);
  162. this.statusBar.ImageScalingSize = new System.Drawing.Size(24, 24);
  163. this.statusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
  164. this.hrzStrut,
  165. this.initStatusLbl,
  166. this.initProgressBar,
  167. this.reconnectBtn,
  168. this.connectedSerialPortLbl,
  169. this.fwVersionLbl});
  170. this.statusBar.Location = new System.Drawing.Point(0, 327);
  171. this.statusBar.Name = "statusBar";
  172. this.statusBar.Padding = new System.Windows.Forms.Padding(1, 0, 16, 0);
  173. this.statusBar.Size = new System.Drawing.Size(584, 34);
  174. this.statusBar.SizingGrip = false;
  175. this.statusBar.TabIndex = 0;
  176. this.statusBar.Text = "statusBar";
  177. //
  178. // hrzStrut
  179. //
  180. this.hrzStrut.Name = "hrzStrut";
  181. this.hrzStrut.Size = new System.Drawing.Size(204, 29);
  182. this.hrzStrut.Spring = true;
  183. //
  184. // initStatusLbl
  185. //
  186. this.initStatusLbl.Name = "initStatusLbl";
  187. this.initStatusLbl.Size = new System.Drawing.Size(101, 29);
  188. this.initStatusLbl.Text = "Am Verbinden ...";
  189. //
  190. // initProgressBar
  191. //
  192. this.initProgressBar.AutoSize = false;
  193. this.initProgressBar.Margin = new System.Windows.Forms.Padding(1, 9, 1, 9);
  194. this.initProgressBar.MarqueeAnimationSpeed = 20;
  195. this.initProgressBar.Name = "initProgressBar";
  196. this.initProgressBar.Size = new System.Drawing.Size(100, 16);
  197. this.initProgressBar.Step = 25;
  198. this.initProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee;
  199. //
  200. // reconnectBtn
  201. //
  202. this.reconnectBtn.AutoSize = false;
  203. this.reconnectBtn.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
  204. this.reconnectBtn.DropDownButtonWidth = 0;
  205. this.reconnectBtn.Image = ((System.Drawing.Image)(resources.GetObject("reconnectBtn.Image")));
  206. this.reconnectBtn.ImageTransparentColor = System.Drawing.Color.Magenta;
  207. this.reconnectBtn.Margin = new System.Windows.Forms.Padding(10, 2, 0, 0);
  208. this.reconnectBtn.Name = "reconnectBtn";
  209. this.reconnectBtn.Size = new System.Drawing.Size(22, 32);
  210. this.reconnectBtn.Visible = false;
  211. this.reconnectBtn.ButtonClick += new System.EventHandler(this.onReconnectBtnClick);
  212. //
  213. // connectedSerialPortLbl
  214. //
  215. this.connectedSerialPortLbl.AutoSize = false;
  216. this.connectedSerialPortLbl.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left;
  217. this.connectedSerialPortLbl.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
  218. this.connectedSerialPortLbl.Margin = new System.Windows.Forms.Padding(10, 3, 0, 2);
  219. this.connectedSerialPortLbl.Name = "connectedSerialPortLbl";
  220. this.connectedSerialPortLbl.Size = new System.Drawing.Size(70, 29);
  221. this.connectedSerialPortLbl.Text = "Port: ";
  222. this.connectedSerialPortLbl.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  223. //
  224. // fwVersionLbl
  225. //
  226. this.fwVersionLbl.AutoSize = false;
  227. this.fwVersionLbl.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left;
  228. this.fwVersionLbl.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
  229. this.fwVersionLbl.Margin = new System.Windows.Forms.Padding(10, 3, 0, 2);
  230. this.fwVersionLbl.Name = "fwVersionLbl";
  231. this.fwVersionLbl.Size = new System.Drawing.Size(70, 29);
  232. this.fwVersionLbl.Text = "Ver: ";
  233. this.fwVersionLbl.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  234. //
  235. // pictureBox1
  236. //
  237. this.pictureBox1.BackgroundImage = global::FSRemotePowerSwitch.Properties.Resources.Arduino_Logo;
  238. this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
  239. this.pictureBox1.Location = new System.Drawing.Point(472, 12);
  240. this.pictureBox1.Name = "pictureBox1";
  241. this.pictureBox1.Size = new System.Drawing.Size(100, 75);
  242. this.pictureBox1.TabIndex = 14;
  243. this.pictureBox1.TabStop = false;
  244. //
  245. // powerStateLed
  246. //
  247. this.powerStateLed.BackgroundImage = global::FSRemotePowerSwitch.Properties.Resources.blue_led_off;
  248. this.powerStateLed.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
  249. this.powerStateLed.InitialImage = null;
  250. this.powerStateLed.Location = new System.Drawing.Point(92, 269);
  251. this.powerStateLed.Name = "powerStateLed";
  252. this.powerStateLed.Size = new System.Drawing.Size(40, 40);
  253. this.powerStateLed.TabIndex = 12;
  254. this.powerStateLed.TabStop = false;
  255. //
  256. // rotatorActValue
  257. //
  258. this.rotatorActValue.BackColor = System.Drawing.Color.Black;
  259. this.rotatorActValue.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  260. this.rotatorActValue.Font = new System.Drawing.Font("Bahnschrift", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  261. this.rotatorActValue.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  262. this.rotatorActValue.Location = new System.Drawing.Point(296, 275);
  263. this.rotatorActValue.Name = "rotatorActValue";
  264. this.rotatorActValue.Size = new System.Drawing.Size(40, 20);
  265. this.rotatorActValue.TabIndex = 18;
  266. this.rotatorActValue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  267. //
  268. // webCamRotatorLbl
  269. //
  270. this.webCamRotatorLbl.AutoSize = true;
  271. this.webCamRotatorLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  272. this.webCamRotatorLbl.ForeColor = System.Drawing.SystemColors.HotTrack;
  273. this.webCamRotatorLbl.Location = new System.Drawing.Point(243, 96);
  274. this.webCamRotatorLbl.Name = "webCamRotatorLbl";
  275. this.webCamRotatorLbl.Size = new System.Drawing.Size(137, 19);
  276. this.webCamRotatorLbl.TabIndex = 19;
  277. this.webCamRotatorLbl.Text = "Drehwinkel WebCam";
  278. //
  279. // webCamRotPowerLbl
  280. //
  281. this.webCamRotPowerLbl.AutoSize = true;
  282. this.webCamRotPowerLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  283. this.webCamRotPowerLbl.ForeColor = System.Drawing.SystemColors.HotTrack;
  284. this.webCamRotPowerLbl.Location = new System.Drawing.Point(400, 230);
  285. this.webCamRotPowerLbl.Name = "webCamRotPowerLbl";
  286. this.webCamRotPowerLbl.Size = new System.Drawing.Size(157, 19);
  287. this.webCamRotPowerLbl.TabIndex = 21;
  288. this.webCamRotPowerLbl.Text = "WebCam Stepper Power";
  289. //
  290. // webCamRotatorPowerStatusLed
  291. //
  292. this.webCamRotatorPowerStatusLed.BackgroundImage = global::FSRemotePowerSwitch.Properties.Resources.blue_led_off;
  293. this.webCamRotatorPowerStatusLed.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
  294. this.webCamRotatorPowerStatusLed.InitialImage = null;
  295. this.webCamRotatorPowerStatusLed.Location = new System.Drawing.Point(512, 269);
  296. this.webCamRotatorPowerStatusLed.Name = "webCamRotatorPowerStatusLed";
  297. this.webCamRotatorPowerStatusLed.Size = new System.Drawing.Size(40, 40);
  298. this.webCamRotatorPowerStatusLed.TabIndex = 20;
  299. this.webCamRotatorPowerStatusLed.TabStop = false;
  300. //
  301. // webCamRotPwrStatusLbl
  302. //
  303. this.webCamRotPwrStatusLbl.AutoSize = true;
  304. this.webCamRotPwrStatusLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 10F, System.Drawing.FontStyle.Bold);
  305. this.webCamRotPwrStatusLbl.ForeColor = System.Drawing.SystemColors.HotTrack;
  306. this.webCamRotPwrStatusLbl.Location = new System.Drawing.Point(511, 252);
  307. this.webCamRotPwrStatusLbl.Name = "webCamRotPwrStatusLbl";
  308. this.webCamRotPwrStatusLbl.Size = new System.Drawing.Size(43, 17);
  309. this.webCamRotPwrStatusLbl.TabIndex = 22;
  310. this.webCamRotPwrStatusLbl.Text = "Status";
  311. //
  312. // webCamRotatorPowerOffLbl
  313. //
  314. this.webCamRotatorPowerOffLbl.AutoSize = true;
  315. this.webCamRotatorPowerOffLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold);
  316. this.webCamRotatorPowerOffLbl.ForeColor = System.Drawing.Color.Red;
  317. this.webCamRotatorPowerOffLbl.Location = new System.Drawing.Point(400, 278);
  318. this.webCamRotatorPowerOffLbl.Name = "webCamRotatorPowerOffLbl";
  319. this.webCamRotatorPowerOffLbl.Size = new System.Drawing.Size(34, 19);
  320. this.webCamRotatorPowerOffLbl.TabIndex = 23;
  321. this.webCamRotatorPowerOffLbl.Text = "AUS";
  322. //
  323. // webCamRotatorPowerOnLbl
  324. //
  325. this.webCamRotatorPowerOnLbl.AutoSize = true;
  326. this.webCamRotatorPowerOnLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold);
  327. this.webCamRotatorPowerOnLbl.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  328. this.webCamRotatorPowerOnLbl.Location = new System.Drawing.Point(478, 279);
  329. this.webCamRotatorPowerOnLbl.Name = "webCamRotatorPowerOnLbl";
  330. this.webCamRotatorPowerOnLbl.Size = new System.Drawing.Size(30, 19);
  331. this.webCamRotatorPowerOnLbl.TabIndex = 24;
  332. this.webCamRotatorPowerOnLbl.Text = "EIN";
  333. //
  334. // label2
  335. //
  336. this.label2.AutoSize = true;
  337. this.label2.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  338. this.label2.ForeColor = System.Drawing.SystemColors.HotTrack;
  339. this.label2.Location = new System.Drawing.Point(400, 96);
  340. this.label2.Name = "label2";
  341. this.label2.Size = new System.Drawing.Size(128, 19);
  342. this.label2.TabIndex = 26;
  343. this.label2.Text = "WebCam 0° Azimut";
  344. //
  345. // button1
  346. //
  347. this.button1.Location = new System.Drawing.Point(403, 123);
  348. this.button1.Name = "button1";
  349. this.button1.Size = new System.Drawing.Size(75, 26);
  350. this.button1.TabIndex = 27;
  351. this.button1.Text = "0° setzen";
  352. this.button1.UseVisualStyleBackColor = true;
  353. this.button1.Click += new System.EventHandler(this.onSetWebCamZero);
  354. //
  355. // webCamRotVelocityLbl
  356. //
  357. this.webCamRotVelocityLbl.AutoSize = true;
  358. this.webCamRotVelocityLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
  359. this.webCamRotVelocityLbl.ForeColor = System.Drawing.SystemColors.HotTrack;
  360. this.webCamRotVelocityLbl.Location = new System.Drawing.Point(400, 165);
  361. this.webCamRotVelocityLbl.Name = "webCamRotVelocityLbl";
  362. this.webCamRotVelocityLbl.Size = new System.Drawing.Size(170, 19);
  363. this.webCamRotVelocityLbl.TabIndex = 28;
  364. this.webCamRotVelocityLbl.Text = "WebCam Geschwindigkeit";
  365. //
  366. // webCamRotatorVelocitySlowLbl
  367. //
  368. this.webCamRotatorVelocitySlowLbl.AutoSize = true;
  369. this.webCamRotatorVelocitySlowLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold);
  370. this.webCamRotatorVelocitySlowLbl.ForeColor = System.Drawing.Color.Red;
  371. this.webCamRotatorVelocitySlowLbl.Location = new System.Drawing.Point(400, 194);
  372. this.webCamRotatorVelocitySlowLbl.Name = "webCamRotatorVelocitySlowLbl";
  373. this.webCamRotatorVelocitySlowLbl.Size = new System.Drawing.Size(45, 19);
  374. this.webCamRotatorVelocitySlowLbl.TabIndex = 29;
  375. this.webCamRotatorVelocitySlowLbl.Text = "SLOW";
  376. //
  377. // webCamRotatorVelocityFastLbl
  378. //
  379. this.webCamRotatorVelocityFastLbl.AutoSize = true;
  380. this.webCamRotatorVelocityFastLbl.Font = new System.Drawing.Font("Bahnschrift SemiBold SemiConden", 12F, System.Drawing.FontStyle.Bold);
  381. this.webCamRotatorVelocityFastLbl.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  382. this.webCamRotatorVelocityFastLbl.Location = new System.Drawing.Point(494, 195);
  383. this.webCamRotatorVelocityFastLbl.Name = "webCamRotatorVelocityFastLbl";
  384. this.webCamRotatorVelocityFastLbl.Size = new System.Drawing.Size(38, 19);
  385. this.webCamRotatorVelocityFastLbl.TabIndex = 30;
  386. this.webCamRotatorVelocityFastLbl.Text = "FAST";
  387. //
  388. // webCamRotator
  389. //
  390. this.webCamRotator.EndAngle = 420F;
  391. this.webCamRotator.ForeColor = System.Drawing.Color.AliceBlue;
  392. this.webCamRotator.ImeMode = System.Windows.Forms.ImeMode.On;
  393. this.webCamRotator.KnobBackColor = System.Drawing.Color.Silver;
  394. this.webCamRotator.KnobPointerStyle = KnobControl.KnobControl.KnobPointerStyles.circle;
  395. this.webCamRotator.LargeChange = 5;
  396. this.webCamRotator.Location = new System.Drawing.Point(234, 133);
  397. this.webCamRotator.Maximum = 180;
  398. this.webCamRotator.Minimum = -180;
  399. this.webCamRotator.Name = "webCamRotator";
  400. this.webCamRotator.PointerColor = System.Drawing.SystemColors.HotTrack;
  401. this.webCamRotator.ScaleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  402. this.webCamRotator.ScaleDivisions = 13;
  403. this.webCamRotator.ScaleFont = new System.Drawing.Font("Bahnschrift SemiLight SemiConde", 9F);
  404. this.webCamRotator.ScaleFontAutoSize = false;
  405. this.webCamRotator.ScaleSubDivisions = 2;
  406. this.webCamRotator.ShowLargeScale = true;
  407. this.webCamRotator.ShowSmallScale = true;
  408. this.webCamRotator.Size = new System.Drawing.Size(165, 165);
  409. this.webCamRotator.SmallChange = 1;
  410. this.webCamRotator.StartAngle = 120F;
  411. this.webCamRotator.TabIndex = 17;
  412. this.webCamRotator.Value = 0;
  413. this.webCamRotator.ValueChanged += new KnobControl.ValueChangedEventHandler(this.onWebCamRotatorValueChanged);
  414. this.webCamRotator.MiddleAreaClicked += new KnobControl.MiddleAreaMouseClickEventHandler(this.onWebCamRotatorMiddleAreaClicked);
  415. //
  416. // webCamRotatorVelocitySwitch
  417. //
  418. this.webCamRotatorVelocitySwitch.Location = new System.Drawing.Point(447, 194);
  419. this.webCamRotatorVelocitySwitch.MinimumSize = new System.Drawing.Size(45, 22);
  420. this.webCamRotatorVelocitySwitch.Name = "webCamRotatorVelocitySwitch";
  421. this.webCamRotatorVelocitySwitch.OffBackColor = System.Drawing.Color.Gray;
  422. this.webCamRotatorVelocitySwitch.OffToggleColor = System.Drawing.Color.Gainsboro;
  423. this.webCamRotatorVelocitySwitch.OnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  424. this.webCamRotatorVelocitySwitch.OnToggleColor = System.Drawing.Color.WhiteSmoke;
  425. this.webCamRotatorVelocitySwitch.Size = new System.Drawing.Size(45, 22);
  426. this.webCamRotatorVelocitySwitch.TabIndex = 31;
  427. this.webCamRotatorVelocitySwitch.UseVisualStyleBackColor = true;
  428. this.webCamRotatorVelocitySwitch.CheckStateChanged += new System.EventHandler(this.onWebCamVelocitySwitchCheckedStateChanged);
  429. //
  430. // webCamRotatorPowerSwitch
  431. //
  432. this.webCamRotatorPowerSwitch.Location = new System.Drawing.Point(434, 278);
  433. this.webCamRotatorPowerSwitch.MinimumSize = new System.Drawing.Size(45, 22);
  434. this.webCamRotatorPowerSwitch.Name = "webCamRotatorPowerSwitch";
  435. this.webCamRotatorPowerSwitch.OffBackColor = System.Drawing.Color.Gray;
  436. this.webCamRotatorPowerSwitch.OffToggleColor = System.Drawing.Color.Gainsboro;
  437. this.webCamRotatorPowerSwitch.OnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  438. this.webCamRotatorPowerSwitch.OnToggleColor = System.Drawing.Color.WhiteSmoke;
  439. this.webCamRotatorPowerSwitch.Size = new System.Drawing.Size(45, 22);
  440. this.webCamRotatorPowerSwitch.TabIndex = 25;
  441. this.webCamRotatorPowerSwitch.UseVisualStyleBackColor = true;
  442. this.webCamRotatorPowerSwitch.CheckStateChanged += new System.EventHandler(this.onWebCamPowerSwitchCheckStateChanged);
  443. //
  444. // powerSwitchButton
  445. //
  446. this.powerSwitchButton.Location = new System.Drawing.Point(72, 135);
  447. this.powerSwitchButton.MinimumSize = new System.Drawing.Size(45, 22);
  448. this.powerSwitchButton.Name = "powerSwitchButton";
  449. this.powerSwitchButton.OffBackColor = System.Drawing.Color.Gray;
  450. this.powerSwitchButton.OffToggleColor = System.Drawing.Color.Gainsboro;
  451. this.powerSwitchButton.OnBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(151)))), ((int)(((byte)(156)))));
  452. this.powerSwitchButton.OnToggleColor = System.Drawing.Color.WhiteSmoke;
  453. this.powerSwitchButton.Size = new System.Drawing.Size(80, 40);
  454. this.powerSwitchButton.TabIndex = 16;
  455. this.powerSwitchButton.UseVisualStyleBackColor = true;
  456. this.powerSwitchButton.CheckStateChanged += new System.EventHandler(this.onSwitchCheckStateChanged);
  457. //
  458. // MainForm
  459. //
  460. this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 18F);
  461. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  462. this.ClientSize = new System.Drawing.Size(584, 361);
  463. this.Controls.Add(this.webCamRotatorVelocitySwitch);
  464. this.Controls.Add(this.webCamRotatorVelocitySlowLbl);
  465. this.Controls.Add(this.webCamRotatorVelocityFastLbl);
  466. this.Controls.Add(this.webCamRotVelocityLbl);
  467. this.Controls.Add(this.button1);
  468. this.Controls.Add(this.label2);
  469. this.Controls.Add(this.webCamRotatorPowerSwitch);
  470. this.Controls.Add(this.webCamRotatorPowerOffLbl);
  471. this.Controls.Add(this.webCamRotatorPowerOnLbl);
  472. this.Controls.Add(this.webCamRotPwrStatusLbl);
  473. this.Controls.Add(this.webCamRotPowerLbl);
  474. this.Controls.Add(this.webCamRotatorPowerStatusLed);
  475. this.Controls.Add(this.webCamRotatorLbl);
  476. this.Controls.Add(this.rotatorActValue);
  477. this.Controls.Add(this.webCamRotator);
  478. this.Controls.Add(this.powerSwitchButton);
  479. this.Controls.Add(this.serialPortLbl);
  480. this.Controls.Add(this.serialPortsCboBox);
  481. this.Controls.Add(this.openBtn);
  482. this.Controls.Add(this.closeBtn);
  483. this.Controls.Add(this.pictureBox1);
  484. this.Controls.Add(this.switchStateTitelLbl);
  485. this.Controls.Add(this.switchOffStateLbl);
  486. this.Controls.Add(this.switchOnStateLbl);
  487. this.Controls.Add(this.label1);
  488. this.Controls.Add(this.powerStateLed);
  489. this.Controls.Add(this.statusBar);
  490. this.Font = new System.Drawing.Font("Bahnschrift SemiLight SemiConde", 11F);
  491. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  492. this.Margin = new System.Windows.Forms.Padding(2, 4, 2, 4);
  493. this.MaximizeBox = false;
  494. this.MaximumSize = new System.Drawing.Size(600, 400);
  495. this.MinimumSize = new System.Drawing.Size(600, 400);
  496. this.Name = "MainForm";
  497. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  498. this.Text = "FSRemotePowerSwitch";
  499. this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.onMainFormClosing);
  500. this.Shown += new System.EventHandler(this.onFormShown);
  501. this.statusBar.ResumeLayout(false);
  502. this.statusBar.PerformLayout();
  503. ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
  504. ((System.ComponentModel.ISupportInitialize)(this.powerStateLed)).EndInit();
  505. ((System.ComponentModel.ISupportInitialize)(this.webCamRotatorPowerStatusLed)).EndInit();
  506. this.ResumeLayout(false);
  507. this.PerformLayout();
  508. }
  509. #endregion
  510. private System.IO.Ports.SerialPort serialPort;
  511. private System.Windows.Forms.Button openBtn;
  512. private System.Windows.Forms.Button closeBtn;
  513. private System.Windows.Forms.ComboBox serialPortsCboBox;
  514. private System.Windows.Forms.Label serialPortLbl;
  515. private System.Windows.Forms.Label switchOffStateLbl;
  516. private System.Windows.Forms.Label switchOnStateLbl;
  517. private System.Windows.Forms.Label switchStateTitelLbl;
  518. private System.Windows.Forms.PictureBox powerStateLed;
  519. private System.Windows.Forms.Label label1;
  520. private System.Windows.Forms.PictureBox pictureBox1;
  521. private System.Windows.Forms.Timer statusTimer;
  522. private System.Windows.Forms.StatusStrip statusBar;
  523. private System.Windows.Forms.ToolStripProgressBar initProgressBar;
  524. private System.Windows.Forms.ToolStripStatusLabel fwVersionLbl;
  525. private System.Windows.Forms.ToolStripStatusLabel connectedSerialPortLbl;
  526. private System.Windows.Forms.ToolStripStatusLabel hrzStrut;
  527. private System.Windows.Forms.ToolStripStatusLabel initStatusLbl;
  528. private System.Windows.Forms.ToolStripSplitButton reconnectBtn;
  529. private FSRemotePowerSwitch.SButton powerSwitchButton;
  530. private KnobControl.KnobControl webCamRotator;
  531. private System.Windows.Forms.Label rotatorActValue;
  532. private System.Windows.Forms.Label webCamRotatorLbl;
  533. private System.Windows.Forms.Label webCamRotPowerLbl;
  534. private System.Windows.Forms.PictureBox webCamRotatorPowerStatusLed;
  535. private System.Windows.Forms.Label webCamRotPwrStatusLbl;
  536. private SButton webCamRotatorPowerSwitch;
  537. private System.Windows.Forms.Label webCamRotatorPowerOffLbl;
  538. private System.Windows.Forms.Label webCamRotatorPowerOnLbl;
  539. private System.Windows.Forms.Label label2;
  540. private System.Windows.Forms.Button button1;
  541. private System.Windows.Forms.Label webCamRotVelocityLbl;
  542. private SButton webCamRotatorVelocitySwitch;
  543. private System.Windows.Forms.Label webCamRotatorVelocitySlowLbl;
  544. private System.Windows.Forms.Label webCamRotatorVelocityFastLbl;
  545. }
  546. }