/// <summary> /// 設定課程Button /// </summary> private ButtonX SetBotton(CLUBRecord cr) { //顏色每7個社團,顏色重置 if (ButtonCount > 6) { ButtonCount = 0; } ButtonX item1 = new ButtonX(); item1.FocusCuesEnabled = false; item1.Style = eDotNetBarStyle.Office2007; item1.ColorTable = eButtonColor.Flat;// eButtonColor.Office2007WithBackground; //item1.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; //item1.ImagePaddingHorizontal = 8; item1.AutoSize = true; item1.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor(15); item1.TextAlignment = eButtonTextAlignment.Left; item1.Size = new Size(110, 23); item1.Text = cr.ClubName; item1.Image = GetColorBallImage(colors[ButtonCount]); _ClubNameList.Add("" + cr.UID, cr.ClubName); _ClubColorList.Add("" + cr.UID, colors[ButtonCount++]); item1.Tag = cr; item1.Click += new EventHandler(item1_Click); return(item1); }
private void btKeyBorad_Click(object sender, EventArgs e) { ButtonX bt = (ButtonX)sender; if (bt.Text == "¡û") { if (func.Count == 0) { return; } func.RemoveAt(func.Count - 1); } else if (bt.Text == "C") { func.Clear(); } else if (reg.IsMatch(bt.Text)) { if (func.Count == 0 || !reg.IsMatch(func[func.Count - 1].ToString())) { func.Add(bt.Text); } else { func[func.Count - 1] = func[func.Count - 1] + bt.Text; } } else { func.Add(bt.Text); } showtxtWindow(); }
/// <summary> /// 當按鈕被按下 /// </summary> void item1_Click(object sender, EventArgs e) { ButtonX item1 = (ButtonX)sender; CLUBRecord cr = (CLUBRecord)item1.Tag; //int count = 0; //foreach (DataGridViewRow row in dataGridViewX1.SelectedRows) //{ // StudentJoinRow scjRow = (StudentJoinRow)row.DataBoundItem; // if (scjRow.SCJoinList.Count > 1) // { // count++; // } //} //if (count != 0) // MsgBox.Show("有重覆參與社團之學生「" + count + "」名\n無法設定為「" + cr.ClubName + "」"); foreach (DataGridViewRow row in dataGridViewX1.SelectedRows) { StudentJoinRow scjRow = (StudentJoinRow)row.DataBoundItem; if (scjRow.SCJoinList.Count > 1) { continue; } scjRow.ChangeCLUB(cr); ((DataGridViewColorBallTextCell)row.Cells[7]).Color = _ClubColorList[((CLUBRecord)item1.Tag).UID]; ((DataGridViewColorBallTextCell)row.Cells[7]).Value = _ClubNameList[((CLUBRecord)item1.Tag).UID]; } CountStudents(); }
/// <summary> /// 課程按鈕事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Swap(object sender, EventArgs e) { ButtonX button = (ButtonX)sender; foreach (DataGridViewRow row in dataGridViewX1.SelectedRows) { ((DataGridViewColorBallTextCell)row.Cells[5]).Color = _CourseColor["" + button.Tag]; ((DataGridViewColorBallTextCell)row.Cells[5]).Value = _CourseName["" + button.Tag]; dataGridViewX1.Rows[row.Index].Cells[5].Tag = button.Tag; } #region 重新計算課班人數 _CourseStudentIDdic.Clear(); foreach (DataGridViewRow dgvrow in dataGridViewX1.Rows) { if (!_CourseStudentIDdic.ContainsKey("" + dgvrow.Cells[5].Tag)) { _CourseStudentIDdic.Add("" + dgvrow.Cells[5].Tag, new List <string>()); } _CourseStudentIDdic["" + dgvrow.Cells[5].Tag].Add("" + dgvrow.Tag); } #endregion UpdateCourseBtn(); }
void initPager() { this.pager1.PageChanged += new WHC.Pager.WinControl.PageChangedEventHandler(pager1_PageChanged); ButtonX btnExport = (ButtonX)pager1.Controls[0]; btnExport.Visible = false; ButtonX btnCurrent = (ButtonX)pager1.Controls[1]; btnCurrent.Visible = false; ButtonX btn2 = (ButtonX)pager1.Controls[2]; ButtonX btn3 = (ButtonX)pager1.Controls[3]; ButtonX btn4 = (ButtonX)pager1.Controls[4]; ButtonX btn5 = (ButtonX)pager1.Controls[5]; PanelEx p = (PanelEx)pager1.Controls[7]; LabelX lab = (LabelX)p.Controls[0]; btn2.Height = 20; btn3.Height = 20; btn4.Height = 20; btn5.Height = 20; p.Height = 40; lab.Height = 30; pager1.PageSize = 10; pager1_PageChanged(null, null); }
private void btnPagerCommand_Click(object sender, EventArgs e) { ButtonX btn = sender as ButtonX; switch (btn.CommandParameter.ToString()) { case "First": CurrentIndex = 0; break; case "Previous": CurrentIndex = CurrentIndex - 1; break; case "Next": CurrentIndex = CurrentIndex + 1; break; case "Last": CurrentIndex = PageCount - 1; break; } BindData(); }
/// <summary> /// 文件下载事件 /// 2017/04/12(zhuguanjun) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void File_DownLoad(object sender, EventArgs e) { #region 检查 if (string.IsNullOrEmpty(ID)) { MessageHelper.ShowMsg(MessageID.W000000002, MessageType.Alert, "分包合同"); return; } #endregion ButtonX button = (ButtonX)sender; int Type = int.Parse(button.Name.Substring(4, 1)); DomainDLL.Supplier entity = bll.GetSupplier(ID); if (entity == null) { MessageHelper.ShowMsg(MessageID.W000000005, MessageType.Alert); return; } //取得上传文件类型 string fileName = string.Empty; switch (Type) { case 1: fileName = entity.PathYYZZ; break; case 2: fileName = entity.PathZGZ; break; case 3: fileName = entity.PathDMZ; break; } FileHelper.DownLoadFile(UploadType.Supplier, ProjectId, null, fileName); }
private void Hotel_Load(object sender, EventArgs e) { flowLayoutPanel2.AllowDrop = true; DataTable dt = blhr.getAllRoomCategory(); if (dt.Rows.Count > 0) { for (int x = 0; dt.Rows.Count > x; x++) { btn_area = new ButtonX(); btn_area.Text = dt.Rows[x]["category_name"].ToString(); btn_area.Location = System.Drawing.Point.Add(new Point(4 + x * 70, 4), new Size(50, 50)); btn_area.Name = dt.Rows[x]["room_category_id"].ToString(); btn_area.ForeColor = Color.White; this.btn_area.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor(29, 0, 0, 26); this.btn_area.Size = new System.Drawing.Size(100, 50); this.btn_area.TabIndex = 311; btn_area.Click += new System.EventHandler(this.btn_area_click); flowLayoutPanel1.Controls.Add(btn_area); btn_area.AutoSizeMode = AutoSizeMode.GrowAndShrink; } } }
public void hotDiscount() { DataTable dt = bldd.get_all_data(); if (dt.Rows.Count > 0) { pnlHotDiscount.Controls.Clear(); for (int x = 0; dt.Rows.Count > x; x++) { btn_hot_discount = new ButtonX(); btn_hot_discount.Text = dt.Rows[x]["discount_type"].ToString() + " " + dt.Rows[x]["discount_percent"].ToString(); // btn_hot_discount.Location = System.Drawing.Point.Add(new Point(4 + x * 70, 4), new Size(100, 100)); btn_hot_discount.Name = dt.Rows[x]["discount_percent"].ToString(); btn_hot_discount.ForeColor = Color.White; this.btn_hot_discount.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor(15, 15, 15, 15); this.btn_hot_discount.Size = new System.Drawing.Size(100, 100); this.btn_hot_discount.TabIndex = 311; btn_hot_discount.Click += new System.EventHandler(this.btn_hot_discount_click); pnlHotDiscount.Controls.Add(btn_hot_discount); btn_hot_discount.AutoSizeMode = AutoSizeMode.GrowAndShrink; } } }
private void SelectResolution(ResolutionV2 resolution, ToolStripMenuItem resolutionMenuItem, ButtonX resolutionButton) { if (resolution == null || resolutionMenuItem == null || resolutionButton == null) { throw new ArgumentNullException("resolution", "选择分辨率时传入了无效的参数."); } // 先 deselect 之前选中的分辨率 if (m_selectedResolutionMenuItem != null) { m_selectedResolutionMenuItem.Checked = false; } if (m_selectedResolutionButton != null) { m_selectedResolutionButton.Checked = false; } m_selectedResolution = resolution; m_resolutionLabel.Text = string.Format("当前分辨率 - {0}: {1}x{2}", m_resolutionCategories[m_selectedResolution.category], m_selectedResolution.width, m_selectedResolution.height); if (!string.IsNullOrEmpty(m_selectedResolution.tag)) { m_resolutionLabel.Text += string.Format(" ({0})", m_selectedResolution.tag);; } m_renderBuffer.ResWidth = m_selectedResolution.width; m_renderBuffer.ResHeight = m_selectedResolution.height; // 选中新的分辨率对应的菜单和按钮 m_selectedResolutionMenuItem = resolutionMenuItem; m_selectedResolutionMenuItem.Checked = true; m_selectedResolutionButton = resolutionButton; m_selectedResolutionButton.Checked = true; }
private void btnSplitStatus_Click(object sender, EventArgs e) { ButtonX btn = sender as ButtonX; m_SplitStatusID = Convert.ToInt32(btn.Tag); this.Close(); }
/////////////////////// http://www.csharp-examples.net/inputbox/ ////////////////////// public static DialogResult InputBox(string title, string promptText, ref string value) { Office2007Form form = new Office2007Form(); LabelX label = new LabelX(); DevComponents.DotNetBar.Controls.TextBoxX textBox = new DevComponents.DotNetBar.Controls.TextBoxX(); ButtonX buttonOk = new ButtonX(); ButtonX buttonCancel = new ButtonX(); form.Text = title; label.Text = promptText; textBox.Text = value; textBox.Border.Class = "TextBoxBorder"; textBox.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; textBox.Location = new System.Drawing.Point(240, 151); textBox.Name = "textbox"; textBox.ReadOnly = false; textBox.Size = new System.Drawing.Size(275, 20); textBox.TabIndex = 1; buttonOk.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; buttonOk.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; buttonCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; buttonCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; buttonOk.Text = "OK"; buttonCancel.Text = "Cancel"; buttonOk.DialogResult = DialogResult.OK; buttonCancel.DialogResult = DialogResult.Cancel; label.SetBounds(9, 20, 372, 13); textBox.SetBounds(12, 36, 372, 20); buttonOk.SetBounds(228, 72, 75, 23); buttonCancel.SetBounds(309, 72, 75, 23); label.AutoSize = true; textBox.Anchor = textBox.Anchor | AnchorStyles.Right; buttonOk.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; form.ClientSize = new Size(396, 107); form.Controls.AddRange(new Control[] { label, textBox, buttonOk, buttonCancel }); form.ClientSize = new Size(Math.Max(300, label.Right + 10), form.ClientSize.Height); form.FormBorderStyle = FormBorderStyle.FixedDialog; form.StartPosition = FormStartPosition.CenterScreen; form.MinimizeBox = false; form.MaximizeBox = false; form.AcceptButton = buttonOk; form.CancelButton = buttonCancel; form.EnableGlass = false; DialogResult dialogResult = form.ShowDialog(); value = textBox.Text; return(dialogResult); }
/// <summary> /// 化验室网络 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnOpenAssayManage_Click(object sender, EventArgs e) { ButtonX button = (ButtonX)sender; SetColorTable(button != null ? button.Name : ""); OpenAssayManage(); }
private void cmbSymbolClass_SelectedIndexChanged(object sender, EventArgs e) { if (cmbSymbolClass.SelectedValue != null) { flpSymbol.Controls.Clear(); DataView dictSymbol = new DataView((DataTable)cmbSymbolClass.Tag); dictSymbol.RowFilter = "ClassID=" + Convert.ToString(cmbSymbolClass.SelectedValue); foreach (DataRowView dr in dictSymbol) { ButtonX btnSymbol = new ButtonX(); btnSymbol.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; btnSymbol.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; btnSymbol.Text = dr["SymbolText"].ToString(); btnSymbol.Tooltip = dr["SymbolText"].ToString(); btnSymbol.Cursor = Cursors.Hand; btnSymbol.Shape = new RoundRectangleShapeDescriptor(); btnSymbol.Size = new Size(23, 23); btnSymbol.FocusCuesEnabled = false; btnSymbol.TabStop = false; btnSymbol.Click += new EventHandler(btnSymbol_Click); flpSymbol.Controls.Add(btnSymbol); } } }
protected override void setupPattern() { string[] patternArray = new string[] { "A", "B", "X", "Y" }; pattern = patternArray [Random.Range(0, patternArray.Length)]; //Get First Button to highlight currentButton = "Button" + pattern[0]; faceDict.TryGetValue(currentButton, out buttonValue); ButtonsOverlay.GetComponent <UI_Glyphs_PressThis>().faceID = buttonValue; //Get the animators AAnimator = ButtonA.GetComponent <Animator>(); BAnimator = ButtonB.GetComponent <Animator>(); XAnimator = ButtonX.GetComponent <Animator>(); YAnimator = ButtonY.GetComponent <Animator>(); //Light up the buttons contained in the pattern e.g. BABY will not light up X if (pattern.Contains("A")) { AAnimator.SetBool("On", true); } if (pattern.Contains("B")) { BAnimator.SetBool("On", true); } if (pattern.Contains("X")) { XAnimator.SetBool("On", true); } if (pattern.Contains("Y")) { YAnimator.SetBool("On", true); } }
private void DeleteCurentElement() { if (_currentElement == null) { return; } var currWidth = GetStringWidth(_currentElement.Text) + 1; var currLeft = _currentElement.Location.X; if (ui_panelEx_formula.Controls.Contains(_currentElement)) { var currIndex = GetCurrentIndex(); var item = _elements[currIndex]; _elements.Remove(item); ui_panelEx_formula.Controls.Remove(_currentElement); } if (ui_panelEx_formula.Controls.Count == 0) { _currentElement = null; ChangeArrowLocation(null); } else { ShiftElements(null, -currWidth, currLeft); SetNextElement(currLeft); } OnFormulaChanged(); }
private void btnGoiMon_Click(object sender, EventArgs e) { lsNhomTU.Clear(); picMenu.Visible = false; flayoutNhomThucUong.Controls.Clear(); try { dtBanHang = new DataTable(); dtBanHang.Clear(); DataSet ds = dbBanHang.LaySoNhomThucUong(); dtBanHang = ds.Tables[0]; dataGridViewX1.DataSource = dtBanHang; int n = Int32.Parse(dataGridViewX1.Rows[0].Cells[0].Value.ToString()); ds = dbBanHang.LayNhomThucUong(); dtBanHang = ds.Tables[0]; dataGridViewX1.DataSource = dtBanHang; for (int i = 0; i < n; i++) { ButtonX btnNhomTU = new ButtonX(); btnNhomTU = TaoNhomTU(i); btnNhomTU.Text = dataGridViewX1.Rows[i].Cells[1].Value.ToString(); lsNhomTU.Add(btnNhomTU); flayoutNhomThucUong.Controls.Add(btnNhomTU); } } catch (SqlException) { MessageBox.Show("Không lấy được nội dung trong table THANHPHO. Lỗi rồi!!!"); } }
private async Task AnimateButtons() { Button1.Scale = 0; Button2.Scale = 0; Button3.Scale = 0; Button4.Scale = 0; Button5.Scale = 0; Button6.Scale = 0; Button7.Scale = 0; Button8.Scale = 0; Button9.Scale = 0; Button0.Scale = 0; ButtonX.Scale = 0; await Task.Delay(300); var tasks = new Task[] { Button1.ScaleTo(1, 200), Button2.ScaleTo(1, 200), Button3.ScaleTo(1, 200), Button4.ScaleTo(1, 200), Button5.ScaleTo(1, 200), Button6.ScaleTo(1, 200), Button7.ScaleTo(1, 200), Button8.ScaleTo(1, 200), Button9.ScaleTo(1, 200), Button0.ScaleTo(1, 200), ButtonX.ScaleTo(1, 200) }; await Task.WhenAll(tasks); }
public void Xoa(ButtonX them, ButtonX sua, ButtonX luu, ButtonX xoa, ButtonX thoat) { them.Enabled = true; xoa.Enabled = false; sua.Enabled = true; thoat.Enabled = true; }
private async Task SetProductsAsync() { try { var list = await ProductBussines.GetAllAsync(); fPanel.AutoScroll = true; for (var i = fPanel.Controls.Count - 1; i >= 0; i--) { fPanel.Controls[i].Dispose(); } foreach (var item in list) { var btn = new ButtonX(); Controls.Add(btn); btn.Size = new Size(190, 56); btn.Name = item.Guid.ToString(); btn.Cursor = Cursors.Hand; btn.Text = $"{item.Name} \r\n ({item.Price:N0})"; btn.ColorTable = eButtonColor.Flat; btn.BackColor = Color.DarkSlateGray; btn.TextColor = Color.White; btn.Click += Btn_Click; fPanel.Controls.Add(btn); } } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }
private void btnPhong_Click(object sender, EventArgs e) { ButtonX btnPhong = sender as ButtonX; int maPhong = (int)btnPhong.Tag; PHONG phong = listPhong.SingleOrDefault(item => item.MaPhong == maPhong); if (phong != null) { txtMaPhong.Text = phong.MaPhong.ToString(); txtGhiChu.Text = phong.GhiChu == null ? "" : phong.GhiChu.ToString(); txtTienPhong.Text = phong.LOAIPHONG.DonGia.ToString(); cboLoaiPhong.Text = phong.LOAIPHONG.TenLoaiPhong; cboTinhTrang.Text = phong.LOAITINHTRANG.TenLoaiTinhTrang; if (phong.LOAITINHTRANG.TenLoaiTinhTrang == "Đặt" || phong.LOAITINHTRANG.TenLoaiTinhTrang == "Có người ở") { btnDatPhong.Enabled = false; } else { btnDatPhong.Enabled = true; } if (phong.LOAITINHTRANG.TenLoaiTinhTrang == "Có người ở") { btnThanhToan.Enabled = true; } else { btnThanhToan.Enabled = false; } } }
public void InitControls(IEnumerable <Quarter> quarters, Quarter selectedQuarter) { SelectedQuarter = selectedQuarter; Controls.Clear(); _quarterButtons.Clear(); var scaleFactor = Utilities.GetScaleFactor(CreateGraphics().DpiX); foreach (var quarter in quarters) { var button = new ButtonX { ColorTable = eButtonColor.OrangeWithBackground, Style = eDotNetBarStyle.StyleManagerControlled, Text = quarter.ToString(), Cursor = Cursors.Hand, Tag = quarter, Checked = quarter == SelectedQuarter, Height = (Int32)(ButtonHeight * scaleFactor.Height), Width = (Int32)(ButtonWidth * scaleFactor.Width) }; button.Click += OnQuarterClick; _quarterButtons.Add(button); Controls.Add(button); } ResizeButtons(); }
void _ButtonDiagram_Click(object sender, EventArgs e) { ButtonX _button = (ButtonX)sender; string button = _button.Tag.ToString(); if (buttontype != null) { Areaid = trlPlantMangerComponents.FocusedNode.ParentNode.GetDisplayText(0); macid = trlPlantMangerComponents.FocusedNode.GetDisplayText(0); DataTable dt = DbClass.getdata(CommandType.Text, "select * from machine_type where Area_Id='" + Areaid + "' && Mac_Id='" + macid + "' && Mac_Tag='" + button + "'"); foreach (DataRow dr in dt.Rows) { _TxtBoxName = Convert.ToString(dr["Mac_Name"]); _TxtBoxRPM = Convert.ToString(dr["Mac_RPM"]); _TxtBoxSerial = Convert.ToString(dr["Mac_SerialNo"]); _TxtBoxMake = Convert.ToString(dr["Mac_Make"]); _TxtBoxSenX = Convert.ToString(dr["Sen_X"]); _TxtBoxSenY = Convert.ToString(dr["Sen_Y"]); _TxtBoxSenZ = Convert.ToString(dr["Sen_Z"]); CalcGeneralPageVariables2(Convert.ToString(dr["Sen_Cal"])); _CMBDirection = Convert.ToString(dr["sen_dir"]); _CMBSensorUnit = Convert.ToString(dr["sen_unit"]); _CMBSensorType = Convert.ToString(dr["Sen_type"]); } } }
public DaChon() { btnTenTU = new ButtonX(); btnTenTU.Size = new Size(120, 33); btnTenTU.ColorTable = new eButtonColor(); btnTenTU.BackColor = Color.Olive; btnTenTU.Font = new Font("Palatino Linotype", 12, FontStyle.Bold); btnTenTU.TextColor = Color.Black; btnTenTU.Enabled = false; btnSoLuong = new ButtonX(); btnSoLuong.Size = new Size(51, 33); btnSoLuong.ColorTable = new eButtonColor(); btnSoLuong.BackColor = Color.Olive; btnSoLuong.Font = new Font("Palatino Linotype", 12, FontStyle.Bold); btnSoLuong.TextColor = Color.Black; btnSoLuong.Text = "1"; btnSoLuong.Enabled = false; btnXoaTU = new ButtonX(); btnXoaTU.Size = new Size(39, 33); btnXoaTU.ColorTable = new eButtonColor(); btnXoaTU.BackColor = Color.Olive; btnXoaTU.Symbol = "\uf00d"; btnXoaTU.SymbolColor = Color.MidnightBlue; }
public void loadBan() { List <Ban> listBan = loadDSBan(); foreach (Ban item in listBan) { if (item.tinhTrang.ToString() == "Đã Đặt" || item.tinhTrang.ToString() == "Hết") { DevComponents.DotNetBar.ButtonX btnP = new ButtonX() { Width = 90, Height = 90 }; btnP.Text = "Bàn " + item.maBan.ToString() + Environment.NewLine + item.tinhTrang.ToString(); btnP.BackColor = Color.LightPink; btnP.Tag = item; btnP.Click += btnP_Click; flpnFrom.Controls.Add(btnP); } else { DevComponents.DotNetBar.ButtonX btnT = new ButtonX() { Width = 90, Height = 90 }; btnT.Text = "Bàn " + item.maBan.ToString() + Environment.NewLine + item.tinhTrang.ToString(); btnT.BackColor = Color.LightPink; btnT.Tag = item; btnT.Click += btnT_Click; flpnTo.Controls.Add(btnT); } } }
private void endMove(ButtonX btn) { btn.Height += 6; btn.Width += 6; btn.Top -= 3; btn.Left -= 3; }
void createAndAddButton(string tabtext, TabPanelControl tpcontrol, Point loc) { ButtonX b = new ButtonX(); b.DisplayText = tabtext; b.Text = tabtext; b.Size = new Size(130, 30); b.Location = loc; b.ForeColor = Color.White; b.BXBackColor = Color.FromArgb(20, 120, 240); b.MouseHoverColor = Color.FromArgb(20, 120, 240); b.MouseClickColor1 = Color.FromArgb(20, 80, 200); b.ChangeColorMouseHC = false; b.TextLocation_X = 10; b.TextLocation_Y = 9; b.Font = this.Font; b.Click += button_Click; TabButtonPanel.Controls.Add(b); buttonlist.Add(b); selected_index++; tabPanelCtrlList.Add(tpcontrol); TabPanel.Controls.Clear(); TabPanel.Controls.Add(tpcontrol); UpdateButtons(); }
ButtonX CreateButton(BackupCartItem item) { string GetText() => $"<div><b><font color=\"#ED1C24\">{item.Train.QueryResult.Date:MM-dd}</font> <font color=\"#BA1419\">{item.Train.Code}</font> <font color=\"#8066A0\">{ParamData.GetSeatTypeName(item.Seat)}</font> <font color=\"#4BACC6\">{item.Train.FromStation.StationName}-{item.Train.ToStation.StationName}</font></b></div><div><font color=\"{_rateColors[item.SuccessLevel]}\" size =\"-1\">{item.SuccessRateInfoMessage.DefaultForEmpty("候补人数查询中...")}</font></div>"; var btn = new ButtonX() { EnableMarkup = true, Text = GetText(), Tag = item, ColorTable = eButtonColor.Flat }; btn.CreateControl(); btn.Size = btn.PreferredSize; item.SuccessRateChanged += (_1, _2) => { btn.Text = GetText(); }; btn.Click += (_1, _2) => Session.BackupOrderCart.Items.Remove(item); if (item.SuccessLevel == 0) { Session.GetService <IBackupOrderService>().GetSuccessRateAsync(item); } return(btn); }
public void TaoMenuThucUong(List <MatHang_PC> lstMTPhaChe, List <MatHang_DongChai> lstMTDongChai, Control control) { control.Controls.Clear(); if (lstMTPhaChe != null) { foreach (MatHang_PC mathang in lstMTPhaChe) { ButtonX btnmon = new ButtonX(); btnmon.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; btnmon.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; btnmon.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; btnmon.Size = new Size(100, 50); btnmon.Text = mathang.TenMH_PC; btnmon.Tag = mathang; btnmon.Click += Btnmon_Click; control.Controls.Add(btnmon); } } else { foreach (MatHang_DongChai mathang in lstMTDongChai) { ButtonX btnmon = new ButtonX(); btnmon.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; btnmon.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; btnmon.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; btnmon.Size = new Size(100, 50); btnmon.Text = mathang.TenMH_DC; btnmon.Tag = mathang; btnmon.Click += Btnmon_Click; control.Controls.Add(btnmon); } } }
void tbr_Click(object sender, EventArgs e) { int i; for (int k = 0; k < ((ToolStripMenuItem)sender).MergeIndex; k++) { int j = 0; for (i = ((ToolStripMenuItem)sender).MergeIndex; i >= 0; i--) { ButtonX but = buttonlist[i]; ButtonX temp = buttonlist[j]; buttonlist[i] = temp; buttonlist[j] = but; TabPanelControl uct1 = tabPanelCtrlList[i]; TabPanelControl tempusr = tabPanelCtrlList[j]; tabPanelCtrlList[i] = tempusr; tabPanelCtrlList[j] = uct1; } } string btext = ((ToolStripMenuItem)sender).Text; BackToFront_SelButton(); selected_index = 0; TabPanel.Controls.Add(tabPanelCtrlList[buttonlist[0].TabIndex]); UpdateButtons(); }
/// <summary> /// Constructor /// </summary> public DataGridViewButtonXColumn() { CellTemplate = new DataGridViewButtonXCell(); _ButtonX = new ButtonX(); _ButtonX.Visible = false; _ButtonX.FadeEffect = false; HookEvents(true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.qatCustomizePanel1 = new DevComponents.DotNetBar.Ribbon.QatCustomizePanel(); this.buttonOK = new DevComponents.DotNetBar.ButtonX(); this.buttonCancel = new DevComponents.DotNetBar.ButtonX(); this.SuspendLayout(); // // qatCustomizePanel1 // this.qatCustomizePanel1.BackColor = System.Drawing.Color.Transparent; this.qatCustomizePanel1.Location = new System.Drawing.Point(0, 0); this.qatCustomizePanel1.Name = "qatCustomizePanel1"; this.qatCustomizePanel1.Size = new System.Drawing.Size(444, 298); this.qatCustomizePanel1.TabIndex = 0; // // buttonOK // this.buttonOK.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.Location = new System.Drawing.Point(285, 297); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(73, 21); this.buttonOK.TabIndex = 1; this.buttonOK.Text = "OK"; // // buttonCancel // this.buttonCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Location = new System.Drawing.Point(364, 297); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(73, 21); this.buttonCancel.TabIndex = 2; this.buttonCancel.Text = "Cancel"; // // QatCustomizeDialog // this.ClientSize = new System.Drawing.Size(445, 324); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.Controls.Add(this.qatCustomizePanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.ShowInTaskbar = false; this.Name = "QatCustomizeDialog"; this.Text = "Customize"; this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.Button1 = new DevComponents.DotNetBar.ButtonX(); this.Button2 = new DevComponents.DotNetBar.ButtonX(); this.Button3 = new DevComponents.DotNetBar.ButtonX(); this.PictureBox1 = new System.Windows.Forms.PictureBox(); this.TextPanel = new DevComponents.DotNetBar.PanelEx(); this.ButtonBackgroundPanel = new DevComponents.DotNetBar.PanelEx(); this.SuspendLayout(); // // Button1 // this.Button1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.Button1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.Button1.Location = new System.Drawing.Point(26, 85); this.Button1.Name = "Button1"; this.Button1.Size = new System.Drawing.Size(77, 24); this.Button1.TabIndex = 0; this.Button1.Text = "&OK"; this.Button1.Click += new System.EventHandler(this.Button1_Click); this.Button1.Style = eDotNetBarStyle.StyleManagerControlled; // // Button2 // this.Button2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.Button2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.Button2.Location = new System.Drawing.Point(109, 85); this.Button2.Name = "Button2"; this.Button2.Size = new System.Drawing.Size(77, 24); this.Button2.TabIndex = 1; this.Button2.Text = "&Cancel"; this.Button2.Click += new System.EventHandler(this.Button2_Click); this.Button2.Style = eDotNetBarStyle.StyleManagerControlled; // // Button3 // this.Button3.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.Button3.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.Button3.Location = new System.Drawing.Point(192, 85); this.Button3.Name = "Button3"; this.Button3.Size = new System.Drawing.Size(77, 24); this.Button3.TabIndex = 2; this.Button3.Text = "&Ignore"; this.Button3.Click += new System.EventHandler(this.Button3_Click); this.Button3.Style = eDotNetBarStyle.StyleManagerControlled; // // PictureBox1 // this.PictureBox1.BackColor = System.Drawing.Color.Transparent; this.PictureBox1.Location = new System.Drawing.Point(10, 10); this.PictureBox1.Name = "PictureBox1"; this.PictureBox1.Size = new System.Drawing.Size(34, 34); this.PictureBox1.TabIndex = 3; this.PictureBox1.TabStop = false; // // TextPanel // this.TextPanel.AntiAlias = false; this.TextPanel.CanvasColor = System.Drawing.SystemColors.Control; this.TextPanel.Location = new System.Drawing.Point(53, 10); this.TextPanel.Name = "TextPanel"; this.TextPanel.Size = new System.Drawing.Size(225, 53); this.TextPanel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.TextPanel.Style.BorderWidth = 0; this.TextPanel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.TextPanel.Style.GradientAngle = 90; this.TextPanel.Style.LineAlignment = System.Drawing.StringAlignment.Near; this.TextPanel.TabIndex = 4; this.TextPanel.TabStop = false; this.TextPanel.Style.WordWrap = true; this.TextPanel.MarkupLinkClick += new MarkupLinkClickEventHandler(TextPanelMarkupLinkClick); // // ButtonBackgroundPanel // this.ButtonBackgroundPanel.AntiAlias = false; this.ButtonBackgroundPanel.CanvasColor = System.Drawing.SystemColors.Control; this.ButtonBackgroundPanel.Location = new System.Drawing.Point(53, 10); this.ButtonBackgroundPanel.Name = "ButtonBackgroundPanel"; this.ButtonBackgroundPanel.Size = new System.Drawing.Size(225, 42); this.ButtonBackgroundPanel.Dock = DockStyle.Bottom; this.ButtonBackgroundPanel.ColorSchemeStyle = eDotNetBarStyle.StyleManagerControlled; this.ButtonBackgroundPanel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.ButtonBackgroundPanel.Style.BorderWidth = 1; this.ButtonBackgroundPanel.Style.BorderSide = eBorderSide.Top; this.ButtonBackgroundPanel.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.ButtonBackgroundPanel.Style.BackColor1.ColorSchemePart = eColorSchemePart.BarBackground; this.ButtonBackgroundPanel.Style.BorderColor.ColorSchemePart = eColorSchemePart.BarDockedBorder; this.ButtonBackgroundPanel.Style.GradientAngle = 90; this.ButtonBackgroundPanel.Style.LineAlignment = System.Drawing.StringAlignment.Near; this.ButtonBackgroundPanel.TabIndex = 4; this.ButtonBackgroundPanel.TabStop = false; // // MessageBoxDialog // #if FRAMEWORK20 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; #endif this.ClientSize = new System.Drawing.Size(290, 121); this.ShowInTaskbar = false; this.Controls.Add(this.TextPanel); this.Controls.Add(this.PictureBox1); this.Controls.Add(this.Button3); this.Controls.Add(this.Button2); this.Controls.Add(this.Button1); this.Controls.Add(this.ButtonBackgroundPanel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "MessageBoxDialog"; this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); this.resetFooterImage = new DevComponents.DotNetBar.PanelEx(); this.resetBodyImage = new DevComponents.DotNetBar.PanelEx(); this.customWidth = new System.Windows.Forms.NumericUpDown(); this.customHeight = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.checkCustomSize = new System.Windows.Forms.CheckBox(); this.panelFooterImage = new DevComponents.DotNetBar.PanelEx(); this.comboColors = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.panelEx5 = new DevComponents.DotNetBar.PanelEx(); this.panelBodyImage = new DevComponents.DotNetBar.PanelEx(); this.textFooter = new System.Windows.Forms.TextBox(); this.textBody = new System.Windows.Forms.TextBox(); this.textHeader = new System.Windows.Forms.TextBox(); this.footerVisible = new System.Windows.Forms.CheckBox(); this.headerVisible = new System.Windows.Forms.CheckBox(); this.buttonCancel = new DevComponents.DotNetBar.ButtonX(); this.buttonOK = new DevComponents.DotNetBar.ButtonX(); this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip(); this.panelEx1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.customWidth)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.customHeight)).BeginInit(); this.SuspendLayout(); // // panelEx1 // this.panelEx1.AntiAlias = true; this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; this.panelEx1.Controls.Add(this.resetFooterImage); this.panelEx1.Controls.Add(this.resetBodyImage); this.panelEx1.Controls.Add(this.customWidth); this.panelEx1.Controls.Add(this.customHeight); this.panelEx1.Controls.Add(this.label2); this.panelEx1.Controls.Add(this.checkCustomSize); this.panelEx1.Controls.Add(this.panelFooterImage); this.panelEx1.Controls.Add(this.comboColors); this.panelEx1.Controls.Add(this.label1); this.panelEx1.Controls.Add(this.panelEx5); this.panelEx1.Controls.Add(this.panelBodyImage); this.panelEx1.Controls.Add(this.textFooter); this.panelEx1.Controls.Add(this.textBody); this.panelEx1.Controls.Add(this.textHeader); this.panelEx1.Controls.Add(this.footerVisible); this.panelEx1.Controls.Add(this.headerVisible); this.panelEx1.Controls.Add(this.buttonCancel); this.panelEx1.Controls.Add(this.buttonOK); this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelEx1.Location = new System.Drawing.Point(0, 0); this.panelEx1.Name = "panelEx1"; this.panelEx1.Size = new System.Drawing.Size(432, 320); this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.WhiteSmoke; this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.White; this.panelEx1.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.DimGray; this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.panelEx1.Style.GradientAngle = 90; this.panelEx1.TabIndex = 1; // // resetFooterImage // this.resetFooterImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.resetFooterImage.AntiAlias = true; this.resetFooterImage.CanvasColor = System.Drawing.SystemColors.Control; this.resetFooterImage.DialogResult = System.Windows.Forms.DialogResult.OK; this.resetFooterImage.Location = new System.Drawing.Point(29, 230); this.resetFooterImage.Name = "resetFooterImage"; this.resetFooterImage.Size = new System.Drawing.Size(73, 20); this.resetFooterImage.Style.Alignment = System.Drawing.StringAlignment.Center; this.resetFooterImage.Style.BackColor1.Color = System.Drawing.Color.Gainsboro; this.resetFooterImage.Style.BackColor2.Color = System.Drawing.Color.WhiteSmoke; this.resetFooterImage.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; this.resetFooterImage.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.resetFooterImage.Style.BorderColor.Color = System.Drawing.Color.Gray; this.resetFooterImage.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.resetFooterImage.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.resetFooterImage.Style.GradientAngle = 90; this.resetFooterImage.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; this.resetFooterImage.StyleMouseDown.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground; this.resetFooterImage.StyleMouseDown.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground2; this.resetFooterImage.StyleMouseDown.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBorder; this.resetFooterImage.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.resetFooterImage.StyleMouseDown.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedText; this.resetFooterImage.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; this.resetFooterImage.StyleMouseOver.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotBackground; this.resetFooterImage.StyleMouseOver.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotBackground2; this.resetFooterImage.StyleMouseOver.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotBorder; this.resetFooterImage.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.resetFooterImage.StyleMouseOver.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotText; this.superTooltip1.SetSuperTooltip(this.resetFooterImage, new DevComponents.DotNetBar.SuperTooltipInfo("Reset footer image", "", "Click to reset footer image.", null, null, DevComponents.DotNetBar.eTooltipColor.Lemon, true, false, new System.Drawing.Size(0, 0))); this.resetFooterImage.TabIndex = 17; this.resetFooterImage.Text = "Reset Image"; this.resetFooterImage.Click += new System.EventHandler(this.resetFooterImage_Click); // // resetBodyImage // this.resetBodyImage.AntiAlias = true; this.resetBodyImage.CanvasColor = System.Drawing.SystemColors.Control; this.resetBodyImage.DialogResult = System.Windows.Forms.DialogResult.OK; this.resetBodyImage.Location = new System.Drawing.Point(7, 60); this.resetBodyImage.Name = "resetBodyImage"; this.resetBodyImage.Size = new System.Drawing.Size(95, 20); this.resetBodyImage.Style.Alignment = System.Drawing.StringAlignment.Center; this.resetBodyImage.Style.BackColor1.Color = System.Drawing.Color.Gainsboro; this.resetBodyImage.Style.BackColor2.Color = System.Drawing.Color.WhiteSmoke; this.resetBodyImage.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; this.resetBodyImage.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.resetBodyImage.Style.BorderColor.Color = System.Drawing.Color.Gray; this.resetBodyImage.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.resetBodyImage.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.resetBodyImage.Style.GradientAngle = 90; this.resetBodyImage.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center; this.resetBodyImage.StyleMouseDown.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground; this.resetBodyImage.StyleMouseDown.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBackground2; this.resetBodyImage.StyleMouseDown.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedBorder; this.resetBodyImage.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.resetBodyImage.StyleMouseDown.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemPressedText; this.resetBodyImage.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center; this.resetBodyImage.StyleMouseOver.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotBackground; this.resetBodyImage.StyleMouseOver.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotBackground2; this.resetBodyImage.StyleMouseOver.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotBorder; this.resetBodyImage.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.resetBodyImage.StyleMouseOver.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemHotText; this.superTooltip1.SetSuperTooltip(this.resetBodyImage, new DevComponents.DotNetBar.SuperTooltipInfo("Reset Body Image", "", "Click to reset body image.", null, null, DevComponents.DotNetBar.eTooltipColor.Lemon, true, false, new System.Drawing.Size(0, 0))); this.resetBodyImage.TabIndex = 16; this.resetBodyImage.Text = "Reset Image"; this.resetBodyImage.Click += new System.EventHandler(this.resetBodyImage_Click); // // customWidth // this.customWidth.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.customWidth.Enabled = false; this.customWidth.Location = new System.Drawing.Point(107, 256); this.customWidth.Maximum = new decimal(new int[] { 10000, 0, 0, 0}); this.customWidth.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.customWidth.Name = "customWidth"; this.customWidth.Size = new System.Drawing.Size(52, 21); this.customWidth.TabIndex = 13; this.customWidth.Value = new decimal(new int[] { 1, 0, 0, 0}); // // customHeight // this.customHeight.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.customHeight.Enabled = false; this.customHeight.Location = new System.Drawing.Point(174, 256); this.customHeight.Maximum = new decimal(new int[] { 10000, 0, 0, 0}); this.customHeight.Minimum = new decimal(new int[] { 0, 0, 0, 0}); this.customHeight.Name = "customHeight"; this.customHeight.Size = new System.Drawing.Size(52, 21); this.customHeight.TabIndex = 14; this.customHeight.Value = new decimal(new int[] { 1, 0, 0, 0}); // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(160, 258); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(13, 13); this.label2.TabIndex = 15; this.label2.Text = "x"; // // checkCustomSize // this.checkCustomSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkCustomSize.Location = new System.Drawing.Point(7, 260); this.checkCustomSize.Name = "checkCustomSize"; this.checkCustomSize.Size = new System.Drawing.Size(83, 17); this.checkCustomSize.TabIndex = 12; this.checkCustomSize.Text = "Custom size"; this.checkCustomSize.CheckedChanged += new System.EventHandler(this.checkCustomSize_CheckedChanged); // // panelFooterImage // this.panelFooterImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panelFooterImage.AntiAlias = true; this.panelFooterImage.CanvasColor = System.Drawing.SystemColors.Control; this.panelFooterImage.Location = new System.Drawing.Point(76, 203); this.panelFooterImage.Name = "panelFooterImage"; this.panelFooterImage.Size = new System.Drawing.Size(24, 24); this.panelFooterImage.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelFooterImage.Style.BackColor1.Color = System.Drawing.Color.White; this.panelFooterImage.Style.BackColor2.Color = System.Drawing.Color.White; this.panelFooterImage.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Center; this.panelFooterImage.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelFooterImage.Style.BorderColor.Color = System.Drawing.Color.DimGray; this.panelFooterImage.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.panelFooterImage.Style.GradientAngle = 90; this.superTooltip1.SetSuperTooltip(this.panelFooterImage, new DevComponents.DotNetBar.SuperTooltipInfo("Click to set footer image", "", "Allows you to choose footer image. Note that image displayed here is preview image. You can see tooltip preview below.", null, null, DevComponents.DotNetBar.eTooltipColor.Lemon, true, false, new System.Drawing.Size(280, 170))); this.panelFooterImage.TabIndex = 11; this.panelFooterImage.Click += new System.EventHandler(this.panelFooterImage_Click); // // comboColors // this.comboColors.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboColors.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboColors.Location = new System.Drawing.Point(107, 6); this.comboColors.Name = "comboColors"; this.comboColors.Size = new System.Drawing.Size(316, 21); this.comboColors.Sorted = true; this.comboColors.TabIndex = 10; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(4, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(96, 13); this.label1.TabIndex = 9; this.label1.Text = "Predefined Colors:"; // // panelEx5 // this.panelEx5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelEx5.AntiAlias = true; this.panelEx5.CanvasColor = System.Drawing.SystemColors.Control; this.panelEx5.Location = new System.Drawing.Point(7, 287); this.panelEx5.Name = "panelEx5"; this.panelEx5.Size = new System.Drawing.Size(283, 24); this.panelEx5.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelEx5.Style.BackColor1.Color = System.Drawing.Color.LightGray; this.panelEx5.Style.BackColor2.Color = System.Drawing.Color.DimGray; this.panelEx5.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelEx5.Style.BorderColor.Color = System.Drawing.Color.DimGray; this.panelEx5.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.panelEx5.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; this.panelEx5.Style.GradientAngle = 90; this.panelEx5.TabIndex = 8; this.panelEx5.Text = "Place mouse here to preview"; this.panelEx5.MouseLeave += new System.EventHandler(this.panelEx5_MouseLeave); this.panelEx5.MouseEnter += new System.EventHandler(this.panelEx5_MouseEnter); // // panelBodyImage // this.panelBodyImage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.panelBodyImage.AntiAlias = true; this.panelBodyImage.CanvasColor = System.Drawing.SystemColors.Control; this.panelBodyImage.Location = new System.Drawing.Point(7, 83); this.panelBodyImage.Name = "panelBodyImage"; this.panelBodyImage.Size = new System.Drawing.Size(94, 117); this.panelBodyImage.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelBodyImage.Style.BackColor1.Color = System.Drawing.Color.White; this.panelBodyImage.Style.BackColor2.Color = System.Drawing.Color.White; this.panelBodyImage.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Center; this.panelBodyImage.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelBodyImage.Style.BorderColor.Color = System.Drawing.Color.DimGray; this.panelBodyImage.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText; this.panelBodyImage.Style.GradientAngle = 90; this.superTooltip1.SetSuperTooltip(this.panelBodyImage, new DevComponents.DotNetBar.SuperTooltipInfo("Click to set body image", "", "Allows you to choose body image. Note that image displayed here is preview image. You can see tooltip preview below", null, null, DevComponents.DotNetBar.eTooltipColor.Lemon, true, false, Size.Empty)); this.panelBodyImage.TabIndex = 6; this.panelBodyImage.Click += new System.EventHandler(this.panelBodyImage_Click); // // textFooter // this.textFooter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textFooter.Location = new System.Drawing.Point(107, 206); this.textFooter.Name = "textFooter"; this.textFooter.Size = new System.Drawing.Size(316, 21); this.textFooter.TabIndex = 2; // // textBody // this.textBody.AcceptsReturn = true; this.textBody.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBody.Location = new System.Drawing.Point(107, 60); this.textBody.Multiline = true; this.textBody.Name = "textBody"; this.textBody.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBody.Size = new System.Drawing.Size(316, 140); this.textBody.TabIndex = 1; // // textHeader // this.textHeader.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textHeader.Location = new System.Drawing.Point(107, 33); this.textHeader.Name = "textHeader"; this.textHeader.Size = new System.Drawing.Size(316, 21); this.textHeader.TabIndex = 0; // // footerVisible // this.footerVisible.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.footerVisible.Location = new System.Drawing.Point(7, 208); this.footerVisible.Name = "footerVisible"; this.footerVisible.Size = new System.Drawing.Size(58, 17); this.footerVisible.TabIndex = 7; this.footerVisible.Text = "Footer"; // // headerVisible // this.headerVisible.Location = new System.Drawing.Point(7, 39); this.headerVisible.Name = "headerVisible"; this.headerVisible.Size = new System.Drawing.Size(61, 17); this.headerVisible.TabIndex = 5; this.headerVisible.Text = "Header"; // // buttonCancel // this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.AntiAlias = true; this.buttonCancel.Style = eDotNetBarStyle.Office2007; this.buttonCancel.ColorTable = eButtonColor.Office2007WithBackground; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Location = new System.Drawing.Point(364, 287); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(60, 25); this.buttonCancel.TabIndex = 4; this.buttonCancel.Text = "Cancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // buttonOK // this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.AntiAlias = true; this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.buttonOK.Location = new System.Drawing.Point(296, 287); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(62, 25); this.buttonOK.Style = eDotNetBarStyle.Office2007; this.buttonOK.ColorTable = eButtonColor.Office2007WithBackground; this.buttonOK.TabIndex = 3; this.buttonOK.Text = "OK"; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // // SuperTooltipVisualEditor // this.BackColor = System.Drawing.Color.WhiteSmoke; this.Controls.Add(this.panelEx1); this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "SuperTooltipVisualEditor"; this.Size = new System.Drawing.Size(432, 320); this.panelEx1.ResumeLayout(false); this.panelEx1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.customWidth)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.customHeight)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.itemPanelCommands = new DevComponents.DotNetBar.ItemPanel(); this.itemPanelQat = new DevComponents.DotNetBar.ItemPanel(); this.buttonAddToQat = new DevComponents.DotNetBar.ButtonX(); this.buttonRemoveFromQat = new DevComponents.DotNetBar.ButtonX(); this.comboCategories = new Controls.ComboBoxEx(); this.labelCategories = new System.Windows.Forms.Label(); this.checkQatBelowRibbon = new Controls.CheckBoxX(); this.SuspendLayout(); // // itemPanelCommands // this.itemPanelCommands.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); // // // this.itemPanelCommands.AutoScroll = true; this.itemPanelCommands.BackgroundStyle.Class = DevComponents.DotNetBar.Rendering.ElementStyleClassKeys.ItemPanelKey; this.itemPanelCommands.Style = eDotNetBarStyle.StyleManagerControlled; this.itemPanelCommands.FadeEffect = false; this.itemPanelCommands.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; #if!TRIAL this.itemPanelCommands.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; #endif this.itemPanelCommands.Location = new System.Drawing.Point(9, 46); this.itemPanelCommands.Name = "itemPanelCommands"; this.itemPanelCommands.Size = new System.Drawing.Size(173, 257); this.itemPanelCommands.TabIndex = 2; this.itemPanelCommands.Text = "itemPanelCommands"; this.itemPanelCommands.KeyUp += new KeyEventHandler(ItemPanelKeyUp); this.itemPanelCommands.ItemDoubleClick += new MouseEventHandler(ItemPanelCommandsDoubleClick); // // itemPanelQat // this.itemPanelQat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); // // // this.itemPanelQat.AutoScroll = true; this.itemPanelQat.BackgroundStyle.Class = DevComponents.DotNetBar.Rendering.ElementStyleClassKeys.ItemPanelKey; this.itemPanelQat.Style = eDotNetBarStyle.StyleManagerControlled; this.itemPanelQat.EnableDragDrop = true; this.itemPanelQat.FadeEffect = false; this.itemPanelQat.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical; #if!TRIAL this.itemPanelQat.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F"; #endif this.itemPanelQat.Location = new System.Drawing.Point(266, 46); this.itemPanelQat.Name = "itemPanelQat"; this.itemPanelQat.Size = new System.Drawing.Size(173, 257); this.itemPanelQat.TabIndex = 5; this.itemPanelQat.Text = "itemPanelCommands"; this.itemPanelQat.DragDrop += new System.Windows.Forms.DragEventHandler(this.itemPanelQat_DragDrop); this.itemPanelQat.UserCustomize += new EventHandler(this.itemPanelQat_UserCustomize); this.itemPanelQat.KeyUp += new KeyEventHandler(ItemPanelKeyUp); this.itemPanelQat.ItemDoubleClick += new MouseEventHandler(ItemPanelQatDoubleClick); // // buttonAddToQat // this.buttonAddToQat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonAddToQat.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonAddToQat.Location = new System.Drawing.Point(188, 126); this.buttonAddToQat.Name = "buttonAddToQat"; this.buttonAddToQat.Size = new System.Drawing.Size(73, 21); this.buttonAddToQat.TabIndex = 3; this.buttonAddToQat.Text = "&Add >>"; this.buttonAddToQat.Click += new System.EventHandler(this.buttonAddToQat_Click); // // buttonRemoveFromQat // this.buttonRemoveFromQat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonRemoveFromQat.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; this.buttonRemoveFromQat.Location = new System.Drawing.Point(188, 153); this.buttonRemoveFromQat.Name = "buttonRemoveFromQat"; this.buttonRemoveFromQat.Size = new System.Drawing.Size(73, 21); this.buttonRemoveFromQat.TabIndex = 4; this.buttonRemoveFromQat.Text = "&Remove"; this.buttonRemoveFromQat.Click += new System.EventHandler(this.buttonRemoveFromQat_Click); // // comboCategories // this.comboCategories.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboCategories.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboCategories.Location = new System.Drawing.Point(9, 19); this.comboCategories.Name = "comboCategories"; this.comboCategories.Size = new System.Drawing.Size(173, 21); this.comboCategories.Sorted = true; this.comboCategories.TabIndex = 1; this.comboCategories.SelectedIndexChanged += new System.EventHandler(this.comboCategories_SelectedIndexChanged); this.comboCategories.Style = eDotNetBarStyle.Office2007; this.comboCategories.DrawMode = DrawMode.OwnerDrawFixed; this.comboCategories.ThemeAware = false; // // labelCategories // this.labelCategories.AutoSize = true; this.labelCategories.BackColor = System.Drawing.Color.Transparent; this.labelCategories.Location = new System.Drawing.Point(6, 3); this.labelCategories.Name = "labelCategories"; this.labelCategories.Size = new System.Drawing.Size(123, 13); this.labelCategories.TabIndex = 0; this.labelCategories.Text = "&Choose commands from:"; // // checkQatBelowRibbon // this.checkQatBelowRibbon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.checkQatBelowRibbon.BackColor = System.Drawing.Color.Transparent; this.checkQatBelowRibbon.Location = new System.Drawing.Point(9, 311); this.checkQatBelowRibbon.Name = "checkQatBelowRibbon"; this.checkQatBelowRibbon.Size = new System.Drawing.Size(420, 17); this.checkQatBelowRibbon.TabIndex = 6; this.checkQatBelowRibbon.Text = "&Place Quick Access Toolbar below the Ribbon"; this.checkQatBelowRibbon.CheckedChangedEx += new Controls.CheckBoxXChangeEventHandler(this.checkQatBelowRibbon_CheckedChanged); // // QatCustomizePanel // this.BackColor = System.Drawing.Color.Transparent; this.Controls.Add(this.comboCategories); this.Controls.Add(this.checkQatBelowRibbon); this.Controls.Add(this.labelCategories); this.Controls.Add(this.buttonRemoveFromQat); this.Controls.Add(this.buttonAddToQat); this.Controls.Add(this.itemPanelQat); this.Controls.Add(this.itemPanelCommands); this.Name = "QatCustomizePanel"; this.Size = new System.Drawing.Size(444, 334); this.ResumeLayout(false); this.PerformLayout(); }