private void skinRibbonGalleryBarItem1_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string t = e.Item.Tag.ToString(); SettingsTool.AyarDegistir(SettingsTool.Ayarlar.TemaAyarlari_Tema, e.Item.Tag.ToString()); SettingsTool.Save(); }
private void skinRibbonGalleryBarItem3_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { var skin = (string)e.Item.Tag; Settings.Default.Skin = skin; Settings.Default.Save(); }
private void Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { lblFilename.Text = "..."; lblAttachId.Text = "..."; lblAttachSize.Text = "..."; lblAttachDate.Text = "..."; lblUserNo.Text = "..."; lblAttachDesc.Text = "..."; DevExpress.XtraBars.Ribbon.GalleryItemGroup group = galleryControl1.Gallery.Groups[0]; if (group.Items.Count > 0) { if (e.Item != null && e.Item.Tag != null) { object[] info = (object[])e.Item.Tag; //filename, attachid, attachsize, attachtype, attachdate, attachdesc, userno string filename = ISM.Lib.Static.ToStr(info[0]); ulong attachid = ISM.Lib.Static.ToULong(info[1]); long attachsize = ISM.Lib.Static.ToLong(info[2]); int attachtype = ISM.Lib.Static.ToInt(info[3]); DateTime attachdate = ISM.Lib.Static.ToDate(info[4]); string attachdesc = ISM.Lib.Static.ToStr(info[5]); int userno = ISM.Lib.Static.ToInt(info[6]); lblFilename.Text = filename; lblAttachId.Text = Convert.ToString(attachid); lblAttachSize.Text = string.Format("{0, 8:#,##0.0} KB", attachsize / 1024); lblAttachDate.Text = ISM.Lib.Static.ToDateStr(attachdate); lblUserNo.Text = Convert.ToString(userno); lblAttachDesc.Text = attachdesc; } } }
private void galleryControlGallery1_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string index = string.Format("{0}", e.Item.Tag); FrmMain frm = BackstageView.Ribbon.FindForm() as FrmMain; if (frm == null) { return; } if (index.Contains("PDF")) { saveFileDialog1.Filter = Properties.Resources.PDFFilter; } else if (index.Contains("HTML")) { saveFileDialog1.Filter = Properties.Resources.HTMLFilter; } else if (index.Contains("MHT")) { saveFileDialog1.Filter = Properties.Resources.MHTFilter; } else if (index.Contains("RTF")) { saveFileDialog1.Filter = Properties.Resources.RTFFilter; } else if (index.Contains("XLS")) { saveFileDialog1.Filter = Properties.Resources.XLSFilter; } else if (index.Contains("XLSX")) { saveFileDialog1.Filter = Properties.Resources.XLSXFilter; } else if (index.Contains("CSV")) { saveFileDialog1.Filter = Properties.Resources.CSVFilter; } else if (index.Contains("Text")) { saveFileDialog1.Filter = Properties.Resources.TextFilter; } else if (index.Contains("Image")) { saveFileDialog1.Filter = Properties.Resources.ImageFilter; } saveFileDialog1.Filter += "|" + Properties.Resources.AllFilesFilter; saveFileDialog1.FilterIndex = 0; saveFileDialog1.FileName = frm.CurrentModuleName; if (saveFileDialog1.ShowDialog() != DialogResult.OK) { return; } Cursor.Current = Cursors.WaitCursor; PrintingSystem ps = new PrintingSystem(); PrintableComponentLink link = new PrintableComponentLink(ps); link.Component = frm.CurrentExportComponent; link.CreateDocument(); ExportTo(index, saveFileDialog1.FileName, ps); }
private void galleryControl1_Gallery_ItemDoubleClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { e.Item.Checked = true; image = e.Item.Image; DialogResult = System.Windows.Forms.DialogResult.OK; }
private void galleryControl2_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string MenuBtn = string.Format("{0}", e.Item.Tag); Form frm1 = Application.OpenForms["StartForm"]; StartForm s = frm1 as StartForm; s.showFormDanhMuc(MenuBtn); }
private void galleryControlGallery1_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string link = string.Format("{0}", e.Item.Tag); if (!string.IsNullOrEmpty(link)) { ObjectHelper.StartProcess(link); } }
private void rb_Skin_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { if (BUS.BUS_hethong.updateSkin(e.Item.Caption) == "true") { } else { BUS.BUS_hethong.updateSkin("Liquid Sky"); } }
private void skinRibbonGalleryBarItem1_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { // 换皮肤 string SkinValue = e.Item.Caption; Properties.Settings.Default.SoftwareSkin = SkinValue; Properties.Settings.Default.Save(); DefaultLookAndFeel Custom = new DefaultLookAndFeel(); Custom.LookAndFeel.SetSkinStyle(SkinValue); }
/// <summary> /// 菜单点击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> //void _navBarItem_LinkClicked(object sender, NavBarLinkEventArgs e) //{ // //获取菜单名 // NavBarItem _navBarItem = (NavBarItem)sender; // //判断是否已新建窗体 // if (ContainMDIChild(_navBarItem.Caption)) // { // } // else // { // XtraForm xf = new XtraForm(); // xtraTabbedMdiManager1.MdiParent = this; // xf.Text = _navBarItem.Caption; // xf.MdiParent = this; // //根据备注添加用户控件 // if (_navBarItem.Name == "PersonnelIndex") // { // //PersonnelIndex user = new PersonnelIndex(); // PanelControl PC = new PanelControl(); // PC.Dock = DockStyle.Fill; // xf.Controls.Add(PC); // PC.Controls.Clear(); // PC.Controls.Add(PersonnelIndex.ItSelf); // //xf.Controls.Add(user); // PersonnelIndex.ItSelf.Dock = System.Windows.Forms.DockStyle.Fill; // } // else if (_navBarItem.Name == "TheReport") // { // //PeportIndex user = new PeportIndex(); // //xf.Controls.Add(user); // PanelControl PC = new PanelControl(); // PC.Dock = DockStyle.Fill; // xf.Controls.Add(PC); // PC.Controls.Clear(); // PC.Controls.Add(PeportIndex.ItSelf); // PeportIndex.ItSelf.Dock = System.Windows.Forms.DockStyle.Fill; // } // else if (_navBarItem.Name == "TheTrayToPrint") // { // //TrayPrint user = new TrayPrint(); // //xf.Controls.Add(user); // PanelControl PC = new PanelControl(); // PC.Dock = DockStyle.Fill; // xf.Controls.Add(PC); // PC.Controls.Clear(); // PC.Controls.Add(TrayPrint.ItSelf); // TrayPrint.ItSelf.Dock = System.Windows.Forms.DockStyle.Fill; // } // else if (_navBarItem.Name == "ImportData") // { // PanelControl PC = new PanelControl(); // PC.Dock = DockStyle.Fill; // xf.Controls.Add(PC); // PC.Controls.Clear(); // PC.Controls.Add(ImportData.ItSelf); // ImportData.ItSelf.Dock = System.Windows.Forms.DockStyle.Fill; // } // else if (_navBarItem.Name == "PrintTemplate") // { // PanelControl PC = new PanelControl(); // PC.Dock = DockStyle.Fill; // xf.Controls.Add(PC); // PC.Controls.Clear(); // PC.Controls.Add(PrintTemplate.ItSelf); // PrintTemplate.ItSelf.Dock = System.Windows.Forms.DockStyle.Fill; // } // else if (_navBarItem.Name == "MatPrint") // { // PanelControl PC = new PanelControl(); // PC.Dock = DockStyle.Fill; // xf.Controls.Add(PC); // PC.Controls.Clear(); // PC.Controls.Add(MatPrint.ItSelf); // PrintTemplate.ItSelf.Dock = System.Windows.Forms.DockStyle.Fill; // } // ///控件分布 // xf.Show(); // /// // //xtraTabbedMdiManager1.SelectedPage = xtraTabbedMdiManager1.Pages[xf]; // this.xtraTabbedMdiManager1.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InAllTabPagesAndTabControlHeader; // } //} #endregion #region 皮肤 private void ribbonGalleryBarItem1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { //string caption = string.Empty; //if (ribbonGalleryBarItem1.Gallery == null) return; //caption = ribbonGalleryBarItem1.Gallery.GetCheckedItems()[0].Caption;//主题的描述 //caption = caption.Replace("主题:", ""); //if (XtraMessageBox.Show("你确定要保存当前皮肤吗?", "系统提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK) //{ // Properties.Settings.Default.SkinName = caption; // Properties.Settings.Default.Save(); //} }
private void GalleryItem_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { var gallery = sender as InRibbonGallery; if (gallery.OwnerItem.GetType() == typeof(SkinRibbonGalleryBarItem)) { Functions.GeneralFunctions.AppSettingsWrite("Skin", e.Item.Caption); } else if (gallery.OwnerItem.GetType() == typeof(SkinPaletteRibbonGalleryBarItem)) { Functions.GeneralFunctions.AppSettingsWrite("Palette", e.Item.Caption); } }
private void ribbonGalleryBarItemLayout_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string nome = e.Item.Caption; ConfigurazioneCaricata = this.unitOfWork1.FindObject <ConfigurazionePivot>(new GroupOperator(GroupOperatorType.And, new CriteriaOperator[] { new BinaryOperator("Descrizione", nome), new BinaryOperator("Tipo", STR_PivotRigaVenditaVariante) })); if (ConfigurazioneCaricata != null) { LoadLayout(); } }
private void galleryControlGallery1_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string link = string.Format("{0}", e.Item.Tag); switch (link) { case "LinkHelp": link = AssemblyInfo.DXLinkHelp; break; case "LinkGetSupport": link = AssemblyInfo.DXLinkGetSupport; break; case "LinkGetStarted": link = AssemblyInfo.DXLinkGetStarted; break; } if (!string.IsNullOrEmpty(link)) { ObjectHelper.StartProcess(link); } }
/// <summary> /// đặt phòng: click chọn phòng /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { Phong phong = new Phong(); phong = controller.get_Phong(e.Item.Caption); cbbDatPhong_SoPhong.Text = phong.SoPhong; cbbDatPhong_LoaiPhong.Text = phong.LoaiPhong; cbbDatPhong_DonGia.Text = phong.DonGia.ToString(); if (phong.TrangThai == 0) { tbDatPhong_TrangThai.Text = "Phòng trống"; } else if (phong.TrangThai == 1) { tbDatPhong_TrangThai.Text = "Phòng có khách"; } else { tbDatPhong_TrangThai.Text = "Khác"; } }
//主题设置 private void rgbiSkins_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { Settings.Default.SkinStyle = e.Item.Caption; Settings.Default.Save(); }
/// <summary> /// Handles the ItemClick event of the Gallery control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs"/> instance containing the event data.</param> private void Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { TvDBFactory.SetCurrentSeries(e.Item.Tag.ToString()); }
private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { MessageBox.Show("aaaaaaaa"); }
private void galleryControlGallery1_ItemDoubleClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { OpenFile(0); }
private void galleryDropDown1_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { Properties.Settings.Default.Skinname = e.Item.Caption; Properties.Settings.Default.Save(); }
void Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { customerno = Static.ToLong(e.Item.Caption); OnItemClick(Static.ToLong(e.Item.Caption), e.Item.Hint); }
/// <summary> /// 保存用户自定义界面皮肤 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void skinRibbonGalleryBarItem1_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string skinName = e.Item.Tag == null ? string.Empty : e.Item.Tag.ToString(); AppConfigHelper.SetAppConfigSettings("DefaultSkinName", skinName); }
void rgbiSkins_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { Program.Option.Save(); }
private void galleryControlGallery1_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { e.Item.Checked = true; image = e.Item.Image; }
private void galleryDropDown1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { MessageBox.Show(e.Item.Caption); }
/// <summary> /// kích đúp để đặt phòng /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void galleryControl1_Gallery_ItemDoubleClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { frmChiTietPhong = new frmChiTietPhong(e.Item.Caption, this); frmChiTietPhong.ShowDialog(); }
private void rbGalleryBarItem_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { MybarAndDockingController.LookAndFeel.SkinName = e.Item.Tag.ToString(); DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = e.Item.Tag.ToString(); }
private void skinRibbonGalleryBarItem1_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { }
//Set Skin Name to Config private void rgbi_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { Config.AddUpdateAppSettings("Skin", DevExpress.LookAndFeel.UserLookAndFeel.Default.ActiveSkinName); }
private void ribbonGalleryBarItem1_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) { string skincaption = ribbonGalleryBarItem1.Gallery.GetCheckedItems()[0].Caption; Settings.Instance.SetValue(SettingKeys.Skin, skincaption); }