public FormInput(FormFrame f) { InitializeComponent(); formFrame = f; ucButtons = new UCButtons(f, this.pnRight); ucButtons.SetAckVisible(true); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); this.pnRight.Controls.Add(ucButtons); listScreen.Add(" 0 "); listScreen.Add(" 1 "); listScreen.Add(" 2 "); listScreen.Add(" 3 "); listScreen.Add(" 4 "); listScreen.Add("+/-"); listScreen.Add("<- "); listScreen.Add(" 5 "); listScreen.Add(" 6 "); listScreen.Add(" 7 "); listScreen.Add(" 8 "); listScreen.Add(" 9 "); listScreen.Add(" . "); listScreen.Add("CE"); }
public UCRadioOnline(FormFrame f) { InitializeComponent(); formFrame = f; ucButtons = new UCButtons(f, this.pnRight); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); this.pnRight.Controls.Add(ucButtons); }
public UCList(FormFrame f) { InitializeComponent(); formFrame = f; ucButtons = new UCButtons(f, this.pnRight); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); this.pnRight.Controls.Add(ucButtons); timer.Interval = 1000; timer.Tick += new EventHandler(timer_Tick); }
public FormRadio(FormFrame f) { InitializeComponent(); formFrame = f; ucButtons = new UCButtons(f, this.pnRight); ucButtons.SetAckVisible(true); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); this.pnRight.Controls.Add(ucButtons); string path = formFrame.configManage.FileDir + @"\check.png"; if (File.Exists(path)) { bmCheck = new Bitmap(path); } path = formFrame.configManage.FileDir + @"\uncheck.png"; if (File.Exists(path)) { bmUncheck = new Bitmap(path); } }
public UCDBList(FormFrame f) { InitializeComponent(); formFrame = f; ucButtons = new UCButtons(f, this.pnRight); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn, ClickExt); ucButtons.SetExtVisible(true); this.pnRight.Controls.Add(ucButtons); bmRightUp = GetBitmap(formFrame.configManage.FileDir + @"\east_btn_up.png"); bmRightDown = GetBitmap(formFrame.configManage.FileDir + @"\east_btn_down.png"); bmLeftUp= GetBitmap(formFrame.configManage.FileDir + @"\west_btn_up.png"); bmLeftDown= GetBitmap(formFrame.configManage.FileDir + @"\west_btn_down.png"); bmDownloadUp = GetBitmap(formFrame.configManage.FileDir + @"\main_btn_up.png"); bmDownloadDown = GetBitmap(formFrame.configManage.FileDir + @"\main_btn_down.png"); pbLeft.Image = bmLeftUp; pbRight.Image = bmRightUp; }
int yCount = 0; //�������� #endregion Fields #region Constructors public FormPlate(FormFrame f) { InitializeComponent(); formFrame = f; ucButtons = new UCButtons(f, this.pnRight); ucButtons.SetAckVisible(true); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); this.pnRight.Controls.Add(ucButtons); plateCharList = new List<PlateChar>(); plateCharList.AddRange(formFrame.configManage.cfg.plateCharList); for (int i = 0; i <= 9; i++) { PlateChar plateChar = new PlateChar(); plateChar.display = i.ToString(); plateChar.value = i.ToString(); plateCharList.Add(plateChar); } for (char i = 'A'; i <= 'Z'; i++) { PlateChar plateChar = new PlateChar(); plateChar.display = i.ToString(); plateChar.value = i.ToString(); plateCharList.Add(plateChar); } yCount = plateCharList.Count / xCount; if (plateCharList.Count % xCount != 0) yCount++; listScreen = new List<string>(xCount * yCount); for (int i = 0; i < plateCharList.Count; i++) { listScreen.Add(plateCharList[i].display); } listScreen.Add("<- "); listScreen.Add("CE"); }
public FormPwd(FormFrame f, Purview pv, bool _bInputOrValid) { InitializeComponent(); formFrame = f; bInputOrValid = _bInputOrValid; LoginPurview = pv; ucButtons = new UCButtons(f, this.pnRight); ucButtons.SetAckVisible(true); if (pv == Purview.None) { ucButtons.SetPageCode(0, 1); } else { ucButtons.SetPageCode(0, 2); } ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); this.pnRight.Controls.Add(ucButtons); listScreen.Add(" 0 "); listScreen.Add(" 1 "); listScreen.Add(" 2 "); listScreen.Add(" 3 "); listScreen.Add(" 4 "); listScreen.Add("+/-"); listScreen.Add("<- "); listScreen.Add(" 5 "); listScreen.Add(" 6 "); listScreen.Add(" 7 "); listScreen.Add(" 8 "); listScreen.Add(" 9 "); listScreen.Add(" . "); listScreen.Add("CE"); }
public void SetStyle(FormFrame formFrame, Form form) { formHost = form; //new class pnLeft = new System.Windows.Forms.Panel(); pnRight = new System.Windows.Forms.Panel(); ucButtons = new UCButtons(formFrame, pnRight); //pnLeft pnLeft.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(225)))), ((int)(((byte)(249)))), ((int)(((byte)(255))))); pnLeft.Location = new System.Drawing.Point(28, 24); pnLeft.Name = "pnLeft"; pnLeft.Size = new System.Drawing.Size(616, 380); //pnRight pnRight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(224)))), ((int)(((byte)(255))))); pnRight.Location = new System.Drawing.Point(650, 0); pnRight.Name = "pnRight"; pnRight.Size = new System.Drawing.Size(150, 432); //ucButtons ucButtons.SetAckVisible(true); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); pnRight.Controls.Add(ucButtons); //form form.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); form.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; form.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(244)))), ((int)(((byte)(255))))); form.ClientSize = new System.Drawing.Size(798, 407); form.Controls.Add(this.pnRight); form.Controls.Add(this.pnLeft); form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; form.Location = new System.Drawing.Point(0, 48); }
public FormDateTime(FormFrame f) { InitializeComponent(); formFrame = f; ucButtons = new UCButtons(f, this.pnRight); ucButtons.SetAckVisible(true); ucButtons.RegisterBtnEvent(ClickUp, ClickDown, ClickAck, ClickReturn,null); this.pnRight.Controls.Add(ucButtons); this.dateTimePicker.Format = DateTimePickerFormat.Custom; this.dateTimePicker.CustomFormat = "yyyyÄêMMÔÂddÈÕ"; for (int i = 0; i < 24; i++ ) { cbHour.Items.Add(i); } for (int i = 0; i < 60; i++) { cbMinute.Items.Add(i); cbSecond.Items.Add(i); } cbHour.Text = "0"; cbMinute.Text = "0"; cbSecond.Text = "0"; }