private void galleryControl1_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { string mapPath = e.Item.Tag.ToString(); frmMapMain frmMap = new frmMapMain(this); frmMap.MapPath = mapPath; frmMap.Show(); }
private void galleryControl_Gallery_ItemDoubleClick(object sender, GalleryItemClickEventArgs e) { GalleryItem checkedItem = galleryControl.Gallery.GetCheckedItem(); if (checkedItem != null && galleryControl.Gallery.GetCheckedItems().Count > 0) { if (checkedItem.Tag is KeyValuePair <string, MapFolder> ) { // Folder KeyValuePair <string, MapFolder> mapFolder = (KeyValuePair <string, MapFolder>)checkedItem.Tag; dirs.Add(mapFolder.Key); string path = string.Join("/", dirs); ShowMaps(path); } else { // File } } else { // Nothing compiledPath = null; sourcePath = null; runButton.Enabled = false; editButton.Enabled = false; deleteButton.Enabled = false; } }
private void gcSVG_Gallery_ItemDoubleClick(object sender, GalleryItemClickEventArgs e) { try { var svgDocument = SvgDocument.Open(e.Item.Description); var bitmap = svgDocument.Draw(); byte[] data = ImageCompression.ImageToByte(bitmap); byte[] dataCompress = ImageCompression.Compress(data); string FullNameBase = Convert.ToBase64String(dataCompress); //================================================================== if (OnStringImageSelected_Clicked != null) { OnStringImageSelected_Clicked(FullNameBase); } //==================================================================================== if (OnImagSelected_Clicked != null) { OnImagSelected_Clicked(bitmap); } this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } catch (Exception ex) { EventscadaException?.Invoke(this.GetType().Name, ex.Message); } }
private void Gallery_ItemClick2(object sender, GalleryItemClickEventArgs e) { for (int i = 0; i < count_group_gallery; i++) { foreach (GalleryItem item in galleryControl1.Gallery.Groups[i].Items) { item.Checked = false; } } var gc_item = new GalleryItem(); gc_item.Checked = true; gc_item.Caption = e.Item.Caption; gc_item.ImageOptions.Image = e.Item.ImageOptions.Image; gc_item.Value = e.Item.Value; e.Item.Assign(gc_item); MaBan = e.Item.Value.ToString(); var ds = new DataSet(); ds = Data.LoadData($@"select * from view_hoadon where maban='{e.Item.Value.ToString()}' and dathanhtoan='0'"); if (ds.Tables[0].Rows.Count <= 0) { return; } }
private void gc_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { int IDBan = (int)e.Item.Value; try { if (IDHoaDon > 0) { DialogResult result = new DialogResult(); result = MessageBox.Show("Bạn đang mở một hóa đơn khác, bạn có muốn chuyển?", "Cảnh báo", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (result == DialogResult.Yes) { if (KiemTraBanTrong(IDBan)) { IDHoaDon = 0; lueBan.EditValue = IDBan; } else { IDHoaDon = new HoaDonDAL().GetIDHoaDon(IDBan); } } LoadHoaDon(); } } catch { } }
private void chartGalleryBarItem_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { if (e.Item.Checked) { e.Item.Checked = false; this.coverageSplitContainerControl.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Panel1; } else { showChartType(e.Item.Caption); GalleryItemCollection items = this.chartGalleryBarItem.Gallery.Groups[0].Items; // this.checkedChartItemindex = items.IndexOf(e.Item); foreach (GalleryItem item in items) { if (item.Equals(e.Item)) { item.Checked = true; coverageGridviewShow(); this.coverageSplitContainerControl.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Both; } else { item.Checked = false; } } } }
private void Gallery_ItemClick2(object sender, GalleryItemClickEventArgs e) { for (int i = 0; i < count_group_gallery; i++) { foreach (GalleryItem item in galleryControl1.Gallery.Groups[i].Items) { item.Checked = false; } } var gc_item = new GalleryItem(); gc_item.Checked = true; gc_item.Caption = e.Item.Caption; gc_item.ImageOptions.Image = e.Item.ImageOptions.Image; gc_item.Value = e.Item.Value; e.Item.Assign(gc_item); //string id = e.Item.Value.ToString(); //Data._strMaBan = id; var ds = new DataSet(); ds = Data.LoadData($@"select * from view_hoadon where maban='{e.Item.Value.ToString()}' and dathanhtoan='0'"); if (ds.Tables[0].Rows.Count <= 0) { lblMaHD.Text = ""; return; } lblMaHD.Text = ds.Tables[0].Rows[0]["mahoadon"].ToString(); txt_giobd.EditValue = Convert.ToDateTime(ds.Tables[0].Rows[0]["giobd"]).ToString("HH:mm"); cboKhachHang.EditValue = ds.Tables[0].Rows[0]["makh"].ToString(); groupBox1.Text = ds.Tables[0].Rows[0]["khuvuc"].ToString().ToUpper() + " - " + ds.Tables[0].Rows[0]["tenban"].ToString(); }
private void galleryControl1_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { var gc_item = new GalleryItem(); string id = e.Item.Value.ToString(); string t = db.BANs.Where(m => m.MaBan == id).Select(m => m.TrangThai).FirstOrDefault(); if (t == "Còn Trống") { var list = db.BANs.Where(m => m.MaBan == id).Select(m => new { m.MaBan, m.TenBan, m.KHUVUC.TenKhuVuc, m.MoTa }).ToList(); gridDSBan.DataSource = list; gridDSBan.Show(); gridDSBan2.Hide(); loadBanTrong(); } else { var list = db.GOIMONs.Where(m => m.HOADON.MaBan == id).Select(m => new { m.MaHoaDon, m.HOADON.BAN.TenBan, m.HOADON.BAN.KHUVUC.TenKhuVuc, m.THUCDON.TenThucDon, m.SoLuong, m.THUCDON.DonGia, m.ThanhTien }).ToList(); gridDSBan2.DataSource = list; gridDSBan2.Show(); gridDSBan.Hide(); loadBanCoKhach(); } //bool is_status = Convert.ToBoolean(int.Parse(t)); //string status = (is_status) ? "0" : "1"; //BAN b = db.BANs.Find(id); //b.TrangThai = status; //gc_item.ImageOptions.Image = (is_status) ? imageList1.Images[0] : imageList1.Images[1]; //gc_item.Caption = e.Item.Caption; //gc_item.Value = e.Item.Value; //e.Item.Assign(gc_item); }
private void skinRibbonGalleryBarItem1_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { UserSettings us = new UserSettings(); us.SkinName = DevExpress.LookAndFeel.UserLookAndFeel.Default.ActiveSkinName; SaveSettings(us); }
/// <summary> /// Handles the ItemClick event of the galleryControlGallery1 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 GalleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { var type = e.Item.Tag.ToString().Split('|')[0]; var url = e.Item.Tag.ToString().Split('|')[1]; switch (type) { case "moviePoster": MovieDBFactory.GetCurrentMovie().PosterPathOnDisk = string.Empty; MovieDBFactory.GetCurrentMovie().CurrentPosterImageUrl = url; this.SetMovieBinding(); break; case "movieFanart": MovieDBFactory.GetCurrentMovie().FanartPathOnDisk = string.Empty; MovieDBFactory.GetCurrentMovie().CurrentFanartImageUrl = url; this.SetMovieBinding(); break; case "tvSeriesFanart": TvDBFactory.CurrentSeries.FanartPath = string.Empty; TvDBFactory.CurrentSeries.FanartUrl = url; this.SetTvSeriesBinding(); break; case "tvSeriesPoster": TvDBFactory.CurrentSeries.PosterPath = string.Empty; TvDBFactory.CurrentSeries.PosterUrl = url; this.SetTvSeriesBinding(); break; case "tvSeriesBanner": TvDBFactory.CurrentSeries.SeriesBannerPath = string.Empty; TvDBFactory.CurrentSeries.SeriesBannerUrl = url; this.SetTvSeriesBinding(); break; case "tvSeasonFanart": TvDBFactory.CurrentSeason.FanartPath = string.Empty; TvDBFactory.CurrentSeason.FanartUrl = url; this.SetTvSeasonBinding(); break; case "tvSeasonPoster": TvDBFactory.CurrentSeason.PosterPath = string.Empty; TvDBFactory.CurrentSeason.PosterUrl = url; this.SetTvSeasonBinding(); break; case "tvSeasonBanner": TvDBFactory.CurrentSeason.BannerPath = string.Empty; TvDBFactory.CurrentSeason.BannerUrl = url; this.SetTvSeasonBinding(); break; } }
//스킨변경시 저장 private void Rgb_Skin_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { Hashtable ht = new Hashtable(); ht.Add("@MODE", 300); ht.Add("@USERID", Login.G_userid); ht.Add("@Skin", e.Item.Tag); ExecuteDataBase.ExecNonQuery("DLSSPAccount", ht, ""); }
private void galleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { if (TagResources.OpenCalendar.Equals(e.Item.Tag)) { ribbonControl1.HideApplicationButtonContentControl(); this.Refresh(); navBarControl1.ActiveGroup = nbgCalendar; } _modulesNavigator.CurrentModule.ButtonClick(string.Format("{0}", e.Item.Tag)); }
private void GalleryDataSources_ItemClick(object sender, GalleryItemClickEventArgs e) { if (e.Item.Tag is not DataTable table) { return; } ActiveTable = table; TableName = table.TableName; }
/// <summary> /// Fired when any <see cref="GalleryItem"/> contained in this /// <see cref="RibbonGalleryBarItem"/> is clicked. If the /// GalleryItem.Tag property contains an active CommandName string, /// that command is fired. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="GalleryItemClickEventArgs"/> /// instance containing the event data.</param> protected override void ItemClick(object sender, GalleryItemClickEventArgs e) { if (e.Item.Tag != null && e.Item.Tag is DynamicCommandEventLink) { DynamicCommandEventLink eventLink = e.Item.Tag as DynamicCommandEventLink; EventTopic eventTopic = WorkItem.EventTopics[eventLink.EventTopicName]; if (eventTopic != null) eventTopic.Fire(sender, new DynamicEventArgs<DynamicCommandEventLink>(eventLink), null, PublicationScope.Global); } }
private void skinRibbon_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { if (skinRibbon.Gallery == null) { return; } var SkinName = skinRibbon.Gallery.GetCheckedItems()[0].Value.ToString(); //主题的描述 AppSetingHelper.SetDefaultTheme(SkinName); skinRibbon.Caption = "主题:" + SkinName; }
private void galleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { try { string fullName = e.Item.Tag as string; OnOpenImage(fullName); } catch (System.Exception ex) { _logger.Error(ex.Message); } }
// the click event of the strategy gallery items private void strategyGallery_ItemClick(object sender, GalleryItemClickEventArgs e) { this.checkedStrategyGalleryItem.Checked = false; this.checkedStrategyGalleryItem = e.Item; this.checkedStrategyItemindex = this.galleryItemGroup.Items.IndexOf(e.Item); // MessageBox.Show("" + checkedItemindex); this.checkedStrategyGalleryItem.Checked = true; applayStrategy(checkedStrategyItemindex); this.checkedDropDwonItem.Checked = false; this.checkedDropDwonItem = this.dropdownItemGroup.Items[checkedStrategyItemindex]; this.checkedDropDwonItem.Checked = true; }
// the click event of the dropdown gallery items private void dropDownGallery_ItemClick(object sender, GalleryItemClickEventArgs e) { this.checkedDropDwonItem.Checked = false; this.checkedDropDwonItem = e.Item; this.checkedStrategyItemindex = this.dropdownItemGroup.Items.IndexOf(e.Item); applayStrategy(checkedStrategyItemindex); this.checkedDropDwonItem.Checked = true; this.checkedStrategyGalleryItem.Checked = false; this.checkedStrategyGalleryItem = this.galleryItemGroup.Items[checkedStrategyItemindex]; this.checkedStrategyGalleryItem.Checked = true; // this.strategyRibbonGalleryBarItem.Gallery.ScrollTo(this.checkedGalleryItem, true); }
public void GalleryItemClick(object sender, GalleryItemClickEventArgs e) { try { Properties.Settings.Default.Theme = e.Item.Tag as string; Properties.Settings.Default.Save(); } catch (Exception ex) { Logger.Add(ex); } }
/// <summary> /// Fired when any <see cref="GalleryItem"/> contained in this /// <see cref="RibbonGalleryBarItem"/> is clicked. If the /// GalleryItem.Tag property contains an active CommandName string, /// that command is fired. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="GalleryItemClickEventArgs"/> /// instance containing the event data.</param> protected virtual void ItemClick(object sender, GalleryItemClickEventArgs e) { if (e.Item.Tag is string && !String.IsNullOrEmpty(e.Item.Tag as string)) { Command command = WorkItem.Commands.Get <Command>(e.Item.Tag as string); if (command != null) { command.Execute(); } } }
/// <summary> /// Fired when any <see cref="GalleryItem"/> contained in this /// <see cref="RibbonGalleryBarItem"/> is clicked. If the /// GalleryItem.Tag property contains an active CommandName string, /// that command is fired. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="GalleryItemClickEventArgs"/> /// instance containing the event data.</param> protected override void ItemClick(object sender, GalleryItemClickEventArgs e) { if (e.Item.Tag != null && e.Item.Tag is DynamicCommandEventLink) { DynamicCommandEventLink eventLink = e.Item.Tag as DynamicCommandEventLink; EventTopic eventTopic = WorkItem.EventTopics[eventLink.EventTopicName]; if (eventTopic != null) { eventTopic.Fire(sender, new DynamicEventArgs <DynamicCommandEventLink>(eventLink), null, PublicationScope.Global); } } }
private void galleryControlGallery1_ItemDoubleClick(object sender, GalleryItemClickEventArgs e) { DmTag tag = (DmTag)e.Item.Tag; if (File.ContainsTag(tag, TagType)) { return; } Model.BeginUpdateFile(File); Model.AddKeyword(File, tag, TagType); Model.EndUpdateFile(File); InitializeAddedKeywordsEdit(tag); }
private void skinRibbon_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { string name = string.Empty; string caption = string.Empty; if (skinRibbon.Gallery == null) { return; } caption = skinRibbon.Gallery.GetCheckedItems()[0].Caption;//主题的描述 clsPublic.WriteDefaultSkinName(caption); skinRibbon.Caption = "主题:" + caption + name; }
/// <summary> /// Handles the Click event of the GalleryItem 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 GalleryItem_Click(object sender, GalleryItemClickEventArgs e) { this.grdViewByTitle.ClearSelection(); var selectedMovie = MovieDBFactory.MovieDatabase.IndexOf(MovieDBFactory.GetMovie(e.Item.Tag.ToString())); var handle = this.grdViewByTitle.GetRowHandle(selectedMovie); this.grdViewByTitle.FocusedRowHandle = handle; this.grdViewByTitle.SelectRow(handle); this.UpdateMovieFromGrid(); // MovieDBFactory.SetCurrentMovie(e.Item.Tag.ToString()); }
void GalleryItemClick(object sender, GalleryItemClickEventArgs e) { if (e.Item.Tag == null) { SwitchboardDesignControl.AddBlockType = null; // this.CurrentCellType = null; } else { SwitchboardDesignControl.AddBlockType = (ElementType)e.Item.Tag; // this.CurrentCellType = (Type)e.Item.Tag; } }
private void Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { var gc_item = new GalleryItem(); string id = e.Item.Value.ToString(); string url = Data.BASE_URL_ICON + Data.GetData($@"select hinh from view_ban where maban='{id}'"); string is_status = Convert.ToString(Data.GetData($"select sudung from tbl_ban where maban='{id}'").ToString()); string status = (is_status == "True") ? "False" : "True"; Data.RunCMD($"update tbl_ban set sudung = '{status}' where maban='{id}'"); gc_item.ImageOptions.Image = (is_status == "True") ? Data.MakeGrayscale((Bitmap)Image.FromFile(url)) : Image.FromFile(url); gc_item.Caption = e.Item.Caption; gc_item.Value = e.Item.Value; e.Item.Assign(gc_item); lblMaHD.Text = Data.GetData($@"select mahoadon from tbl_hoadon where maban='{id}'"); }
private void GalleryItem_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { var gallery = sender as InRibbonGallery; var key = ""; if (gallery.OwnerItem.GetType() == typeof(SkinRibbonGalleryBarItem)) { key = "Skin"; } else if (gallery.OwnerItem.GetType() == typeof(SkinPaletteRibbonGalleryBarItem)) { key = "Palette"; } UI.Win.Functions.GeneralFunctions.AppSettingsWrite(key, e.Item.Caption); }
/// <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, GalleryItemClickEventArgs e) { this.gridViewTvTitleList.ClearSelection(); var item = (from i in TvDBFactory.MasterSeriesNameList where i.SeriesGuid == e.Item.Tag.ToString() select i).SingleOrDefault(); var selectedSeries = TvDBFactory.MasterSeriesNameList.IndexOf(item); var handle = this.gridViewTvTitleList.GetRowHandle(selectedSeries); this.gridViewTvTitleList.FocusedRowHandle = handle; this.gridViewTvTitleList.SelectRow(handle); TvDBFactory.SetCurrentSeries(e.Item.Tag.ToString()); }
private void Gallery_ItemClick2(object sender, GalleryItemClickEventArgs e) { for (int i = 0; i < count_group_gallery; i++) { foreach (GalleryItem item in galleryControl1.Gallery.Groups[i].Items) { item.Checked = false; } } var gc_item = new GalleryItem(); gc_item.Checked = true; gc_item.Caption = e.Item.Caption; gc_item.ImageOptions.Image = e.Item.ImageOptions.Image; gc_item.Value = e.Item.Value; e.Item.Assign(gc_item); strMaBan = e.Item.Value.ToString(); LoadHoaDon(); }
private void skinBarItem_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { defaultLookAndFeel.LookAndFeel.SetSkinStyle(e.Item.Caption); string skinName = "DevExpress Style"; if (skins.ContainsKey(e.Item.Caption)) { skins.TryGetValue(e.Item.Caption, out skinName); } IniFile.WriteString( "AppSetting", "Skin", skinName, string.Format( @"{0}\IRAP.ini", AppDomain.CurrentDomain.SetupInformation.ApplicationBase)); }
//选择皮肤 private void ribbonGalleryBarItem1_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { string name = string.Empty; if (ribbonGalleryBarItem1.Gallery == null) { return; } name = ribbonGalleryBarItem1.Gallery.GetCheckedItems( ) [0].Caption; //获取Configuration对象 Configuration config = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath); //删除<add>元素 config.AppSettings.Settings.Remove("Feed"); //增加<add> 元素 config.AppSettings.Settings.Add("Feed", name); //一定要记得保存,写不带参数的config.Save()也可以 config.Save(ConfigurationSaveMode.Modified); //刷新,否则程序读取的还是之前的值(可能已装入内存) System.Configuration.ConfigurationManager.RefreshSection("appSettings"); }
private void galleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { var item = e.Item; if (!UseRatings) { if (FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Attributes.Equals(FileAttributes.ReadOnly | FileAttributes.Archive)) { FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Attributes = FileAttributes.Archive; } else if (FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Attributes.Equals(FileAttributes.ReadOnly)) { FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Attributes = FileAttributes.Archive; } else if (FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Attributes.Equals(FileAttributes.Archive)) { FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Attributes = FileAttributes.ReadOnly; } e.Item.Description = GetAttributeString(FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Attributes); } else { if (!string.IsNullOrEmpty(FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Rating)) { FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Rating = string.Empty; } else if (string.IsNullOrEmpty(FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Rating)) { FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Rating = "5"; } e.Item.Description = GetRatingString(FileList.FirstOrDefault(f => f.Name.Equals(item.Caption)).Rating); } //LoadImages(); }
/// <summary> /// Handles the Click event of the GalleryItem 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 GalleryItem_Click(object sender, GalleryItemClickEventArgs e) { MovieDBFactory.SetCurrentMovie(e.Item.Tag.ToString()); }
/// <summary> /// Change the colours to the selected example. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void galleryColours_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(e.Item.Caption); Session.SkinColor = e.Item.Caption; }
void Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { SelectedItem = e.Item; }
private void galleryControlImage_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { btnImageDelete.Enabled = true; }
private void Module_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { SplashScreenManager.ShowForm(typeof(ModuleWaitForm)); IModule m = e.Item.Tag as IModule; BaseDocument doc = documentManager.GetDocument(m.ModuleForm); if (doc == null) { m.ModuleForm.MdiParent = this; m.ModuleForm.Show(); } else { if (m.ModuleForm.WindowState == FormWindowState.Minimized) m.ModuleForm.WindowState = FormWindowState.Normal; m.ModuleForm.Activate(); } SplashScreenManager.CloseForm(); /* if (string.Compare(e.Item.Caption, "Scene Editor", true) == 0) { if (m_sceneEditor == null || m_sceneEditor.IsDisposed) { SplashScreenManager.ShowForm(typeof(ModuleWaitForm)); m_sceneEditor = new SceneEditor(); m_sceneEditor.Text = "Scene Editor"; m_sceneEditor.MdiParent = this; m_sceneEditor.Show(); SplashScreenManager.CloseForm(); } else { BaseDocument doc = documentManager.GetDocument(m_sceneEditor); tabbedView.Controller.Activate(doc); } } else if (string.Compare(e.Item.Caption, "Fx Editor", true) == 0) { if (m_fxEditor == null || m_fxEditor.IsDisposed) { SplashScreenManager.ShowForm(typeof(ModuleWaitForm)); m_fxEditor = new FxEditor(); m_fxEditor.Text = "Fx Editor"; m_fxEditor.MdiParent = this; m_fxEditor.Show(); SplashScreenManager.CloseForm(); } else { BaseDocument doc = documentManager.GetDocument(m_fxEditor); tabbedView.Controller.Activate(doc); //m_fxEditor.Activate(); } } else if (string.Compare(e.Item.Caption, "Scene Walker", true) == 0) { if (m_sceneWalker == null || m_sceneWalker.IsDisposed) { SplashScreenManager.ShowForm(typeof(ModuleWaitForm)); m_sceneWalker = new SceneWalker(); m_sceneWalker.Text = "Scene Walker"; m_sceneWalker.MdiParent = this; m_sceneWalker.Show(); SplashScreenManager.CloseForm(); } else { BaseDocument doc = documentManager.GetDocument(m_sceneWalker); tabbedView.Controller.Activate(doc); } } * */ }
private void galleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { modulesNavigator.CurrentModule.ButtonClick(string.Format("{0}", e.Item.Tag)); }
/// <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, GalleryItemClickEventArgs e) { this.gridViewTvTitleList.ClearSelection(); var item = (from i in TvDBFactory.MasterSeriesNameList where i.SeriesGuid == e.Item.Tag.ToString() select i).SingleOrDefault(); var selectedSeries = TvDBFactory.MasterSeriesNameList.IndexOf(item); var handle = this.gridViewTvTitleList.GetRowHandle(selectedSeries); this.gridViewTvTitleList.FocusedRowHandle = handle; this.gridViewTvTitleList.SelectRow(handle); TvDBFactory.SetCurrentSeries(e.Item.Tag.ToString()); }
private void rgbiCurrentViewTasks_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { modulesNavigator.CurrentModule.ButtonClick(string.Format("{0}", e.Item.Tag)); }
private void galleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { if(TagResources.OpenCalendar.Equals(e.Item.Tag)) { ribbonControl1.HideApplicationButtonContentControl(); this.Refresh(); navBarControl1.ActiveGroup = nbgCalendar; } modulesNavigator.CurrentModule.ButtonClick(string.Format("{0}", e.Item.Tag)); }
private static void Gallery_ItemClick(object sender, GalleryItemClickEventArgs e) { UserLookAndFeel.Default.SetSkinStyle(e.Item.Caption); }
private void galleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { if (e.Item.Tag.ToString() == "load_more") { YoutubeSearch ys = new YoutubeSearch(); ys.callback = this; ys.ContinueSearching(); //System.Threading.Thread th = new System.Threading.Thread(new System.Threading.ThreadStart(ys.ContinueSearching)); //th.Start(); } else callback_choose_youtube_object((int)e.Item.Tag); }
/// <summary> /// Handles the ItemClick event of the galleryControlGallery1 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 GalleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e) { var type = e.Item.Tag.ToString().Split('|')[0]; var url = e.Item.Tag.ToString().Split('|')[1]; switch (type) { case "moviePoster": MovieDBFactory.GetCurrentMovie().PosterPathOnDisk = string.Empty; MovieDBFactory.GetCurrentMovie().CurrentPosterImageUrl = url; this.SetMovieBinding(); break; case "movieFanart": MovieDBFactory.GetCurrentMovie().FanartPathOnDisk = string.Empty; MovieDBFactory.GetCurrentMovie().CurrentFanartImageUrl = url; this.SetMovieBinding(); break; } }
/// <summary> /// 主题皮肤选择记忆 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void RGBitem_GalleryItemClick(object sender, GalleryItemClickEventArgs e) { string name = string.Empty; string caption = string.Empty; if (RGBitem.Gallery == null) return; caption = RGBitem.Gallery.GetCheckedItems()[0].Caption;//主题的描述 caption = caption.Replace("主题:", ""); //name = bsiPaintStyle.Manager.PressedLink.Item.Tag.ToString();//主题的名称 RGBitem.Caption = "主题:" + caption; Properties.Settings.Default.defaultskin = caption.ToString(); Properties.Settings.Default.Save(); }
/// <summary> /// Handles the Click event of the GalleryItem 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 GalleryItem_Click(object sender, GalleryItemClickEventArgs e) { this.grdViewByTitle.ClearSelection(); var selectedMovie = MovieDBFactory.MovieDatabase.IndexOf(MovieDBFactory.GetMovie(e.Item.Tag.ToString())); var handle = this.grdViewByTitle.GetRowHandle(selectedMovie); this.grdViewByTitle.FocusedRowHandle = handle; this.grdViewByTitle.SelectRow(handle); this.UpdateMovieFromGrid(); // MovieDBFactory.SetCurrentMovie(e.Item.Tag.ToString()); }