private void chkXXX_Click(object sender, RoutedEventArgs e) { try { Cursor = Cursors.Wait; if (chkXXX.IsChecked == true) { DirectoryInfo objFolder; if (lstAvailableTheme.SelectedItem == null) { objFolder = (DirectoryInfo)lstAvailableTheme.Items[0]; } else { objFolder = (DirectoryInfo)lstAvailableTheme.SelectedItem; } string strPath = objFolder.FullName + @"\" + objFolder.Name + ".xml"; imgPreview.Source = ThemeServices.CreateImage(_objItem, strPath, DevicesServices.GetDevice()); } } catch (Exception ex) { CatchException(ex); } finally { Cursor = null; } }
private void cmdGenerate_Click(object sender, RoutedEventArgs e) { try { Cursor = Cursors.Wait; string strPath; if (string.IsNullOrWhiteSpace(txtTvixOutPut.Text) == false && txtTvixOutPut.IsEnabled == true) { strPath = txtTvixOutPut.Text; } else { strPath = Path.GetFullPath("."); } strPath = ThemeServices.CreatePreviewTvix((BitmapSource)imgPreview.Source, strPath, DevicesServices.GetDevice()); if (string.IsNullOrWhiteSpace(strPath) == false) { new MessageBoxYesNo("Layout generated in : " + strPath, false, false).ShowDialog(); } else { new MessageBoxYesNo("Be sure you created at least one item (Game, movie...)", false, false).ShowDialog(); } } catch (Exception ex) { CatchException(ex); } finally { Cursor = null; } }
private void ShowItem() { if (_objItem != null) { switch (_objItem.GetType().ToString()) { case "myCollections.Data.SqlLite.Gamez": imgPreview.Source = ThemeServices.CreateImage(_objItem, _strThemePath, DevicesServices.GetDevice()); break; case "myCollections.Data.SqlLite.Movie": imgPreview.Source = ThemeServices.CreateImage(_objItem, _strThemePath, DevicesServices.GetDevice()); break; case "myCollections.Data.SqlLite.Music": imgPreview.Source = ThemeServices.CreateImage(_objItem, _strThemePath, DevicesServices.GetDevice()); break; case "myCollections.Data.SqlLite.Series_Season": imgPreview.Source = ThemeServices.CreateImage(_objItem, _strThemePath, DevicesServices.GetDevice()); break; case "myCollections.Data.SqlLite.XXX": imgPreview.Source = ThemeServices.CreateImage(_objItem, _strThemePath, DevicesServices.GetDevice()); break; } } }
private void mniGenerateTvix_Click(object sender, RoutedEventArgs e) { Cursor = Cursors.Wait; string strTvixOutput; if (Convert.ToBoolean(MySettings.TvixInFolder) == true) { strTvixOutput = string.Empty; } else { strTvixOutput = MySettings.TvixOutput; } ThumbItem item = CoverFlow.SelectedItem as ThumbItem; if (item != null) { ThemeServices.CreateFiles(item.Id, strTvixOutput, item.EType); } if (string.IsNullOrEmpty(strTvixOutput)) { new MessageBoxYesNo("1 layout generated", false, false).ShowDialog(); } else { new MessageBoxYesNo("1 layout generated in " + strTvixOutput, false, false).ShowDialog(); } Cursor = null; }
public PostsController(ForumCategoryServices forumCategoryServices, PostServices postServices, CommentServices commentServices, TagServices tagServices, ThemeServices themeServices) { _forumCategriesManager = forumCategoryServices; _postsManager = postServices; _commentsManager = commentServices; _tagsManager = tagServices; _themesManager = themeServices; }
public ForumController(ForumCategoryServices forumCategoryServices, PostServices postServices, CommentServices commentServices, TagServices tagServices, ThemeServices themeServices, ApplicationUserManager userManager) { _forumCategriesManager = forumCategoryServices; _postsManager = postServices; _commentsManager = commentServices; _tagsManager = tagServices; _themesManager = themeServices; _userManager = userManager; }
public MasterCampaignController() { _industryService = new IndustryServices(); _businessgroupService = new BusinessGroupServices(); _businesslineService = new BusinessLineServices(); _segmentService = new SegmentServices(); _geographyService = new GeographyServices(); _themeService = new ThemeServices(); _masterCampaignServices = new MasterCampaignServices(); _tacticCampaignServices = new TacticCampaignServices(); }
private void cboDevices_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { Cursor = Cursors.Wait; DirectoryInfo objFolder = (DirectoryInfo)lstAvailableTheme.SelectedItem; if (objFolder != null && _objItem != null) { string strPath = objFolder.FullName + @"\" + objFolder.Name + ".xml"; if (chkMovies.IsChecked == true) { imgPreview.Source = ThemeServices.CreateImage(_objItem, strPath, DevicesServices.GetDevice(cboDevices.SelectedValue.ToString())); } else if (chkMusic.IsChecked == true) { imgPreview.Source = ThemeServices.CreateImage(_objItem, strPath, DevicesServices.GetDevice(cboDevices.SelectedValue.ToString())); } else if (chkSeries.IsChecked == true) { imgPreview.Source = ThemeServices.CreateImage(_objItem, strPath, DevicesServices.GetDevice(cboDevices.SelectedValue.ToString())); } else if (chkXXX.IsChecked == true) { imgPreview.Source = ThemeServices.CreateImage(_objItem, strPath, DevicesServices.GetDevice(cboDevices.SelectedValue.ToString())); } else if (chkGames.IsChecked == true || typeof(Gamez) == _objItem.GetType()) { imgPreview.Source = ThemeServices.CreateImage(_objItem, strPath, DevicesServices.GetDevice(cboDevices.SelectedValue.ToString())); } else { imgPreview.Source = ThemeServices.CreateImage(_objItem, strPath, DevicesServices.GetDevice(cboDevices.SelectedValue.ToString())); } } } catch (Exception ex) { CatchException(ex); } finally { Cursor = null; } }
public ConfigsController( IRepository <Config> configRepository, IRepository <PluginConfig> pluginConfigRepository, IRepository <Role> roleRepository, IRepository <Theme> themeRepository, ThemeServices themeServices, Theme currentTheme) { _configRepository = configRepository; _pluginConfigRepository = pluginConfigRepository; _roleRepository = roleRepository; _themeRepository = themeRepository; _themeServices = themeServices; _currentTheme = currentTheme; }
public TacticCampaignController() { _industryService = new IndustryServices(); _businessgroupService = new BusinessGroupServices(); _businesslineService = new BusinessLineServices(); _segmentService = new SegmentServices(); _geographyService = new GeographyServices(); _themeService = new ThemeServices(); _tacticCampaignServices = new TacticCampaignServices(); _childCampaignServices = new ChildCampaignServices(); _masterCampaignServices = new MasterCampaignServices(); _metricReachServices = new MetricReachServices(); _metricResponseServices = new MetricResponseServices(); _journeyStageServices = new JourneyStageServices(); _digitalTouchpoint = new DigitalTouchpoint(); }
private void cmdGenerate_Click(object sender, RoutedEventArgs e) { try { Cursor = Cursors.Wait; _strOutputPath = ThemeServices.CreatePreviewTvix((BitmapSource)_objImage, _strOutputPath, DevicesServices.GetDevice()); new MessageBoxYesNo("Layout generated in : " + _strOutputPath, false, false).ShowDialog(); } catch (Exception ex) { CatchException(ex); } finally { Cursor = null; } }
public UserController( ThemeServices themes, UserServices users, ParseServices parseServices, MessageServices messageServices, EmailServices emailServices, FileServices fileServices, RoleServices roleServices, User currentUser) { _themeServices = themes; _userServices = users; _parseServices = parseServices; _messageServices = messageServices; _emailServices = emailServices; _fileServices = fileServices; _roleServices = roleServices; _currentUser = currentUser; SetTopBreadCrumb("User CP"); SetBreadCrumb("User CP"); }
private void mniGenerateTvix_Click(object sender, RoutedEventArgs e) { Cursor = Cursors.Wait; int i = 0; string strTvixOutput; string results = string.Empty; string validPath = string.Empty; if (Convert.ToBoolean(MySettings.TvixInFolder) == true) { strTvixOutput = string.Empty; } else { strTvixOutput = MySettings.TvixOutput; } foreach (ThumbItem item in MainStack.SelectedItems) { results = ThemeServices.CreateFiles(item.Id, strTvixOutput, item.EType); if (string.IsNullOrWhiteSpace(results) == false) { validPath = results; i++; } } if (string.IsNullOrWhiteSpace(validPath) == false) { new MessageBoxYesNo(i.ToString(CultureInfo.InvariantCulture) + " layout generated in " + results, false, false).ShowDialog(); } else { new MessageBoxYesNo("No layout generated, please verify info or contact support", false, false).ShowDialog(); } Cursor = null; }
public ThemesController(ThemeServices themeService, ForumCategoryServices forumCategoryService) { themesManager = themeService; forumCategoriesManager = forumCategoryService; }
public ThemesController(IRepository <Theme> themeRepository, ThemeServices themeServices) { _themeRepository = themeRepository; _themeServices = themeServices; SetCrumb("Themes"); }