Example #1
0
        private void UpdateSelected()
        {
            if (SelectedEntry == null)
            {
                return;
            }
            try
            {
                var def    = ThemeManager.Inst.Cache.GetDefaultOrFallback();
                var defset = new AlephThemeSet(def, def, new AlephTheme[0]);

                var parser = new ThemeParser();
                parser.LoadFromString(SelectedEntry.Source, SelectedEntry.SourceFilename);
                parser.Parse();
                var theme = parser.Generate();
                var set   = new AlephThemeSet(def, theme, new AlephTheme[0]);

                SelectedEntry.Name        = theme.Name;
                SelectedEntry.ParsedSet   = set;
                SelectedEntry.ParsedTheme = theme;

                foreach (var dv in DefaultValues)
                {
                    dv.Value   = set.GetStrRepr(dv.Key);
                    dv.Changed = set.GetStrRepr(dv.Key) != defset.GetStrRepr(dv.Key);
                }
            }
            catch (Exception e)
            {
                ErrorText = e.ToString();
            }
        }
Example #2
0
 private void Setup()
 {
     if (this.Dispatcher.CheckAccess())
     {
         myBoard = new GameBoard();
         myBoard.SetBinding(WidthProperty, "myGrid.Height");
         myBoard.SetBinding(HeightProperty, "myGrid.Height");
         myBoard.Background = ThemeParser.GetColor(ThemeParser.Colors.Board);
         Grid.SetRowSpan(myBoard, 3);
         Grid.SetColumn(myBoard, 0);
         myChat = new ChatComponent();
         myChat.NewOutgoingMessage += new EventHandler <NewOutgoingMessageEventArgs>(Chat_NewOutgoingMessage);
         Grid.SetColumn(myChat, 1);
         Grid.SetRow(myChat, 2);
         myChat.Margin            = new Thickness(5, 0, 0, 0);
         myMenu                   = new MenuFader(myCanvas);
         myMenu.Margin            = new Thickness(25, 0, 25, 0);
         myMenu.HostGameClicked  += new EventHandler <HostGameClickEventArgs>(myMenu_HostGameClicked);
         myMenu.JoinGameClicked  += new EventHandler <JoinGameClickEventArgs>(myMenu_JoinGameClicked);
         myMenu.CloseGameClicked += new EventHandler <CloseGameClickEventArgs>(myMenu_CloseGameClicked);
         myMenu.StartGameClicked += new EventHandler <StartGameClickEventArgs>(myMenu_StartGameClicked);
         myGrid.Children.Add(myBoard);
         myGrid.Children.Add(myChat);
         myCanvas.Children.Add(myMenu);
         myBoard.GameBuilt        += new EventHandler <GameBoardBuiltEventArgs>(myBoard_GameBuilt);
         myBoard.Dice.RollEnded   += new EventHandler <RollEndedEventArgs>(Dice_RollEnded);
         myBoard.Dice.RollStarted += new EventHandler <RollStartedEventArgs>(Dice_RollStarted);
         myBoard.Dice.EndTurn     += new EventHandler <EndTurnEventArgs>(Dice_EndTurn);
         ToggleTurnItems(false);
     }
     else
     {
         this.Dispatcher.BeginInvoke(new Action(Setup), null);
     }
 }
        private void UpdateSelected()
        {
            if (SelectedEntry == null)
            {
                return;
            }
            try
            {
                var def = ThemeManager.Inst.Cache.GetByFilename("default.xml", out _);

                var parser = new ThemeParser();
                parser.LoadFromString(SelectedEntry.Source, SelectedEntry.SourceFilename);
                parser.Parse(ThemeManager.Inst.Cache.GetDefaultParserProperties());
                var theme = parser.Generate();

                SelectedEntry.Name = theme.Name;

                foreach (var dv in DefaultValues)
                {
                    dv.Value   = theme.GetStrRepr(dv.Key);
                    dv.Changed = theme.GetStrRepr(dv.Key) != def?.GetStrRepr(dv.Key);
                }
            }
            catch (Exception e)
            {
                ErrorText = e.ToString();
            }
        }
 public PostSocialStylesHolderDroid(ThemeParser <T> themeParser)
 {
     NotLikeTheme = themeParser.GetThemeByName <IButtonTheme>(_notLikeThemeName);
     LikeTheme    = themeParser.GetThemeByName <IButtonTheme>(_likeThemeName);
     CommentTheme = themeParser.GetThemeByName <IButtonTheme>(_commentThemeName);
     ShareTheme   = themeParser.GetThemeByName <IButtonTheme>(_shareThemeName);
 }
 public ToolBarPostsStylesHolderIOS(ThemeParser <T> themeParser)
 {
     MoreButtonTheme  = themeParser.GetThemeByName <IImageButtonTheme>(_moreButtonTheme);
     TitleTheme       = themeParser.GetThemeByName <ITextViewTheme>(_titleTheme);
     ToolbarViewTheme = themeParser.GetThemeByName <IViewTheme>(_viewTheme);
     CreatePostButton = themeParser.GetThemeByName <ITextViewTheme>(_createPostTheme);
 }
 public ProfileCellStylesHolderIOS(ThemeParser <T> themeParser)
 {
     CellBackgroundTheme   = themeParser.GetThemeByName <IViewTheme>(_cellBackgroundTheme);
     AvatarImageViewTheme  = themeParser.GetThemeByName <IImageViewTheme>(_avatarImageViewTheme);
     NameLabelTheme        = themeParser.GetThemeByName <ITextViewTheme>(_nameLabelTheme);
     YourProfileLabelTheme = themeParser.GetThemeByName <ITextViewTheme>(_yourProfileLabelTheme);
 }
        private void PreviewCurrent()
        {
            ErrorText = "";
            if (SelectedEntry == null)
            {
                return;
            }

            try
            {
                var parser = new ThemeParser();
                parser.LoadFromString(SelectedEntry.Source, SelectedEntry.SourceFilename);
                parser.Parse(ThemeManager.Inst.Cache.GetDefaultParserProperties());
                var theme = parser.Generate();

                ThemeManager.Inst.Cache.ReplaceTheme(theme);

                ThemeManager.Inst.ChangeTheme(theme.SourceFilename);

                UpdateSelected();
            }
            catch (Exception e)
            {
                ErrorText = e.ToString();
            }
        }
 private void BuildBoard()
 {
     _listings = ThemeParser.GetPropertyListing();
     foreach (PropertyListing p in _listings.Values)
     {
         MakeProperty(p);
     }
     OnGameBuilt(new GameBoardBuiltEventArgs());
 }
 public EditProfileStylesHolderDroid(ThemeParser <T> themeParser)
 {
     LabelsTheme        = themeParser.GetThemeByName <ITextViewTheme>(_labelsTheme);
     EditTextsTheme     = themeParser.GetThemeByName <IEditTextTheme>(_editTextsTheme);
     EditTextsFailTheme = themeParser.GetThemeByName <IEditTextTheme>(_editTextsFailTheme);
     ViewTheme          = themeParser.GetThemeByName <IViewTheme>(_viewTheme);
     SaveButtonTheme    = themeParser.GetThemeByName <IButtonTheme>(_saveButtonTheme);
     CancelButtonTheme  = themeParser.GetThemeByName <IButtonTheme>(_cancelButtonTheme);
 }
 public EditContactStyleHolderDroid(ThemeParser <T> themeParser)
 {
     BackgroundTheme         = themeParser.GetThemeByName <IViewTheme>(_backgroundTheme);
     UnEditableTextNoneTheme = themeParser.GetThemeByName <IEditTextTheme>(_uneditableTextNoneTheme);
     EditTextNoneTheme       = themeParser.GetThemeByName <IEditTextTheme>(_editTextNoneTheme);
     EditTextFailTheme       = themeParser.GetThemeByName <IEditTextTheme>(_editTextFailTheme);
     TextViewTheme           = themeParser.GetThemeByName <ITextViewTheme>(_textViewTheme);
     SaveButtonTheme         = themeParser.GetThemeByName <IButtonTheme>(_saveButtonTheme);
     CancelButtonTheme       = themeParser.GetThemeByName <IButtonTheme>(_cancelButtonTheme);
 }
Example #11
0
 public MainWindow()
 {
     InitializeComponent();
     comm            = Communicator.Instance;
     this.Background = ThemeParser.GetColor(ThemeParser.Colors.Background);
     comm.ConnectionStatusChanged += new EventHandler <ConnectionStatusChangedEventArgs>(comm_ConnectionStatusChanged);
     comm.DataRecieved            += new EventHandler <DataReceivedEventArgs>(comm_DataRecieved);
     mHandler.NewIncomingMessage  += new EventHandler <NewIncomingMessageEventArgs>(mHandler_NewIncomingMessage);
     this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
     this.Loaded  += new RoutedEventHandler(MainWindow_Loaded);
 }
Example #12
0
 public ForgotPassStylesHolderIOS(ThemeParser <T> themeParser)
 {
     EmailEditTextTheme  = themeParser.GetThemeByName <IEditTextTheme>(_emailEditTextTheme);
     ViewTheme           = themeParser.GetThemeByName <IImageViewTheme>(_viewTheme);
     RecoveryButtonTheme = themeParser.GetThemeByName <IButtonTheme>(_recoveryButtonTheme);
     HeaderLabelTheme    = themeParser.GetThemeByName <ITextViewTheme>(_headerLabelTheme);
     LogoImageViewTheme  = themeParser.GetThemeByName <IImageViewTheme>(_logoImageViewTheme);
     BackButtonTheme     = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     EmailLabelTheme     = themeParser.GetThemeByName <ITextViewTheme>(_emailLabelTheme);
     EmailStateSuccess   = themeParser.GetThemeByName <IEditTextTheme>(_emailStateSuccess);
     EmailStateFail      = themeParser.GetThemeByName <IEditTextTheme>(_emailStateFail);
 }
 public RegEmailStylesHolderDroid(ThemeParser <T> themeParser)
 {
     HeaderLabelTheme   = themeParser.GetThemeByName <ITextViewTheme>(_headerLabelTheme);
     EmailLabelTheme    = themeParser.GetThemeByName <ITextViewTheme>(_emailLabelTheme);
     NextButtonTheme    = themeParser.GetThemeByName <IButtonTheme>(_nextButtonTheme);
     BackButtonTheme    = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     ViewTheme          = themeParser.GetThemeByName <IImageViewTheme>(_viewTheme);
     LogoImageViewTheme = themeParser.GetThemeByName <IImageViewTheme>(_logoImageViewTheme);
     EmailEditTextTheme = themeParser.GetThemeByName <IEditTextTheme>(_emailEditTextTheme);
     EmailStateSuccess  = themeParser.GetThemeByName <IEditTextTheme>(_emailStateSuccess);
     EmailStateFail     = themeParser.GetThemeByName <IEditTextTheme>(_emailStateFail);
     FeatureTextTheme   = themeParser.GetThemeByName <ITextViewTheme>(_featureTextTheme);
     FeatureImageTheme  = themeParser.GetThemeByName <IImageViewTheme>(_featureImageTheme);
 }
        public void getCardInfo(int cid)
        {
            int    jump = 0, move = 0, collect = 0, pay = 0, id = 0;
            string payto = "", collectFrom = "", text = "", type = "";

            _gameCards = ThemeParser.Getcard();

            foreach (GameCard gcard in _gameCards.Values)
            {
                if (gcard.Id == cid)
                {
                    id          = gcard.Id;
                    jump        = gcard.Jump;
                    move        = gcard.Move;
                    collect     = gcard.Collect;
                    pay         = gcard.Pay;
                    payto       = gcard.PayTo;
                    collectFrom = gcard.CollectFrom;
                    text        = gcard.Text;
                    type        = gcard.Type;
                    break;
                }
            }
            printText(text);
            if (jump != 0)
            {
                jumpTo(jump);
            }
            else if (move != 0)
            {
                movePlayer(move);
            }
            else if (collect != 0)
            {
                if (collectFrom == "bank")
                {
                    collectMoney(collect);
                }
                else if (collectFrom == "player")
                {
                    collectplayer(collect);
                }
            }
            else if (pay != 0)
            {
            }
        }
Example #15
0
 public RegNameStylesHolderIOS(ThemeParser <T> themeParser)
 {
     HeaderLabelTheme      = themeParser.GetThemeByName <ITextViewTheme>(_headerLabelTheme);
     NameLabelTheme        = themeParser.GetThemeByName <ITextViewTheme>(_nameLabelTheme);
     LastNameLabelTheme    = themeParser.GetThemeByName <ITextViewTheme>(_lastNameLabelTheme);
     NextButtonTheme       = themeParser.GetThemeByName <IButtonTheme>(_nextButtonTheme);
     BackButtonTheme       = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     ViewTheme             = themeParser.GetThemeByName <IImageViewTheme>(_viewTheme);
     LogoImageViewTheme    = themeParser.GetThemeByName <IImageViewTheme>(_logoImageViewTheme);
     NameEditTextTheme     = themeParser.GetThemeByName <IEditTextTheme>(_nameEditTextTheme);
     NameStateSuccess      = themeParser.GetThemeByName <IEditTextTheme>(_nameStateSuccess);
     NameStateFail         = themeParser.GetThemeByName <IEditTextTheme>(_nameStateFail);
     LastNameEditTextTheme = themeParser.GetThemeByName <IEditTextTheme>(_lastNameEditTextTheme);
     LastNameStateSuccess  = themeParser.GetThemeByName <IEditTextTheme>(_lastNameStateSuccess);
     LastNameStateFail     = themeParser.GetThemeByName <IEditTextTheme>(_lastNameStateFail);
     FeatureTextTheme      = themeParser.GetThemeByName <ITextViewTheme>(_featureTextTheme);
     FeatureImageTheme     = themeParser.GetThemeByName <IImageViewTheme>(_featureImageTheme);
 }
Example #16
0
 public RegPhoneStylesHolderIOS(ThemeParser <T> themeParser)
 {
     HeaderLabelTheme       = themeParser.GetThemeByName <ITextViewTheme>(_headerLabelTheme);
     PhoneCountryLabelTheme = themeParser.GetThemeByName <ITextViewTheme>(_phoneCountryLabelTheme);
     PhoneNumberLabelTheme  = themeParser.GetThemeByName <ITextViewTheme>(_phoneNumberLabelTheme);
     NextButtonTheme        = themeParser.GetThemeByName <IButtonTheme>(_nextButtonTheme);
     SkipButtonTheme        = themeParser.GetThemeByName <IButtonTheme>(_skipButtonTheme);
     BackButtonTheme        = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     ViewTheme                 = themeParser.GetThemeByName <IImageViewTheme>(_viewTheme);
     LogoImageViewTheme        = themeParser.GetThemeByName <IImageViewTheme>(_logoImageViewTheme);
     PhoneCountryEditTextTheme = themeParser.GetThemeByName <IEditTextTheme>(_phoneCountryEditTextTheme);
     PhoneCountryStateSuccess  = themeParser.GetThemeByName <IEditTextTheme>(_phoneCountryStateSuccess);
     PhoneCountryStateFail     = themeParser.GetThemeByName <IEditTextTheme>(_phoneCountryStateFail);
     PhoneNumberEditTextTheme  = themeParser.GetThemeByName <IEditTextTheme>(_phoneNumberEditTextTheme);
     PhoneNumberStateSuccess   = themeParser.GetThemeByName <IEditTextTheme>(_phoneNumberStateSuccess);
     PhoneNumberStateFail      = themeParser.GetThemeByName <IEditTextTheme>(_phoneNumberStateFail);
     FeatureTextTheme          = themeParser.GetThemeByName <ITextViewTheme>(_featureTextTheme);
     FeatureImageTheme         = themeParser.GetThemeByName <IImageViewTheme>(_featureImageTheme);
 }
 public RegPassStylesHolderDroid(ThemeParser <T> themeParser)
 {
     HeaderLabelTheme          = themeParser.GetThemeByName <ITextViewTheme>(_headerLabelTheme);
     PasswordLabelTheme        = themeParser.GetThemeByName <ITextViewTheme>(_passwordLabelTheme);
     ConfirmPasswordLabelTheme = themeParser.GetThemeByName <ITextViewTheme>(_confirmPasswordLabelTheme);
     RegButtonTheme            = themeParser.GetThemeByName <IButtonTheme>(_regButtonTheme);
     BackButtonTheme           = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     ViewTheme                        = themeParser.GetThemeByName <IImageViewTheme>(_viewTheme);
     LogoImageViewTheme               = themeParser.GetThemeByName <IImageViewTheme>(_logoImageViewTheme);
     PasswordEditTextTheme            = themeParser.GetThemeByName <IEditTextTheme>(_passwordEditTextTheme);
     PasswordStateSuccess             = themeParser.GetThemeByName <IEditTextTheme>(_passwordStateSuccess);
     PasswordStateFail                = themeParser.GetThemeByName <IEditTextTheme>(_passwordStateFail);
     PasswordConfirmEditTextTheme     = themeParser.GetThemeByName <IEditTextTheme>(_passwordConfirmEditTextTheme);
     PasswordConfirmStateSuccess      = themeParser.GetThemeByName <IEditTextTheme>(_passwordConfirmStateSuccess);
     PasswordConfirmStatePassNotMatch = themeParser.GetThemeByName <IEditTextTheme>(_passwordConfirmStatePassNotMatch);
     PasswordConfirmStateFail         = themeParser.GetThemeByName <IEditTextTheme>(_passwordConfirmStateFail);
     UserAgreementMainTextTheme       = themeParser.GetThemeByName <IButtonTheme>(_userAgreementMainTextTheme);
     UserAgreementAttrTextTheme       = themeParser.GetThemeByName <IButtonTheme>(_userAgreementAttrTextTheme);
     FeatureTextTheme                 = themeParser.GetThemeByName <ITextViewTheme>(_featureTextTheme);
     FeatureImageTheme                = themeParser.GetThemeByName <IImageViewTheme>(_featureImageTheme);
 }
Example #18
0
        public AuthStylesHolderIOS(ThemeParser <T> themeParser)
        {
            ViewTheme               = themeParser.GetThemeByName <IImageViewTheme>(_viewTheme);
            HeaderLabelTheme        = themeParser.GetThemeByName <ITextViewTheme>(_headerLabelTheme);
            NoAccountLabelTheme     = themeParser.GetThemeByName <ITextViewTheme>(_noAccountLabelTheme);
            LogInButtonTheme        = themeParser.GetThemeByName <IButtonTheme>(_logInButtonTheme);
            FacebookButtonTheme     = themeParser.GetThemeByName <IButtonTheme>(_facebookButtonTheme);
            RegistrationButtonTheme = themeParser.GetThemeByName <IButtonTheme>(_registrationButtonTheme);
            ForgetPassTheme         = themeParser.GetThemeByName <IButtonTheme>(_forgetPassTheme);
            EmailEditTextTheme      = themeParser.GetThemeByName <IEditTextTheme>(_emailEditTextTheme);
            PasswordEditTextTheme   = themeParser.GetThemeByName <IEditTextTheme>(_passwordEditTextTheme);
            LogoImageViewTheme      = themeParser.GetThemeByName <IImageViewTheme>(_logoImageViewTheme);

            EmailStateSuccess    = themeParser.GetThemeByName <IEditTextTheme>(_emailStateSuccess);
            EmailStateFail       = themeParser.GetThemeByName <IEditTextTheme>(_emailStateFail);
            PasswordStateSuccess = themeParser.GetThemeByName <IEditTextTheme>(_passwordStateSuccess);
            PasswordStateFail    = themeParser.GetThemeByName <IEditTextTheme>(_passwordStateFail);

            EmailLabelTheme         = themeParser.GetThemeByName <ITextViewTheme>(_emailLabelTheme);
            PasswordLabelTheme      = themeParser.GetThemeByName <ITextViewTheme>(_passwordLabelTheme);
            SocialNetworkLabelTheme = themeParser.GetThemeByName <ITextViewTheme>(_socialNetworkLabelTheme);
        }
Example #19
0
 public CreatePostStylesHolderDroid(ThemeParser <T> themeParser)
 {
     DividingLineTheme          = themeParser.GetThemeByName <IViewTheme>(_dividingLineTheme);
     NameTheme                  = themeParser.GetThemeByName <ITextViewTheme>(_nameTheme);
     TitleTheme                 = themeParser.GetThemeByName <ITextViewTheme>(_titleTheme);
     AvatarTheme                = themeParser.GetThemeByName <IImageViewTheme>(_avatarTheme);
     BackButtonTheme            = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     AttachImageButtonTheme     = themeParser.GetThemeByName <IImageButtonTheme>(_attachImageButtonTheme);
     CancelAttachButtonTheme    = themeParser.GetThemeByName <IImageButtonTheme>(_cancelAttachButtonTheme);
     PublishTextViewTheme       = themeParser.GetThemeByName <IButtonTheme>(_publishTextViewTheme);
     ToolBarViewTheme           = themeParser.GetThemeByName <IViewTheme>(_toolBarViewTheme);
     ToolsStateNoneTheme        = themeParser.GetThemeByName <IButtonTheme>(_toolsStateNoneTheme);
     ToolsStateFailTheme        = themeParser.GetThemeByName <IButtonTheme>(_toolsStateFailTheme);
     PriceTextViewTheme         = themeParser.GetThemeByName <IButtonTheme>(_priceTextViewTheme);
     BuySellStateNoneTheme      = themeParser.GetThemeByName <IButtonTheme>(_buySellStateNoneTheme);
     BuySellStateFailTheme      = themeParser.GetThemeByName <IButtonTheme>(_buySellStateFailTheme);
     AccessModeStateNoneTheme   = themeParser.GetThemeByName <IButtonTheme>(_accessModeStateNoneTheme);
     AccessModeStateFailTheme   = themeParser.GetThemeByName <IButtonTheme>(_accessModeStateFailTheme);
     ForecastTimeStateNoneTheme = themeParser.GetThemeByName <IButtonTheme>(_forecastTimeStateNoneTheme);
     ForecastTimeStateFailTheme = themeParser.GetThemeByName <IButtonTheme>(_forecastTimeStateFailTheme);
     CommentStateNoneTheme      = themeParser.GetThemeByName <IEditTextTheme>(_commentStateNoneTheme);
     CommentStateFailTheme      = themeParser.GetThemeByName <IEditTextTheme>(_commentStateFailTheme);
 }
Example #20
0
 public PostHeaderStylesHolderIOS(ThemeParser <T> themeParser)
 {
     MoreOptionsButtonTheme = themeParser.GetThemeByName <IImageButtonTheme>(_moreOptionsButtonTheme);
     FirstLastNameTheme     = themeParser.GetThemeByName <ITextViewTheme>(_firstLastNameTheme);
     DateTheme               = themeParser.GetThemeByName <ITextViewTheme>(_dateTheme);
     QuoteTheme              = themeParser.GetThemeByName <ITextViewTheme>(_quoteTheme);
     BuySellTheme            = themeParser.GetThemeByName <ITextViewTheme>(_buySellTheme);
     BuySellValueTheme       = themeParser.GetThemeByName <ITextViewTheme>(_buySellValueTheme);
     ForecastTheme           = themeParser.GetThemeByName <ITextViewTheme>(_forecastTheme);
     CurrentPriceTheme       = themeParser.GetThemeByName <ITextViewTheme>(_currentPriceTheme);
     DiffTheme               = themeParser.GetThemeByName <ITextViewTheme>(_diffTheme);
     DiffValueTheme          = themeParser.GetThemeByName <ITextViewTheme>(_diffValueTheme);
     DefaultAvatar           = themeParser.GetThemeByName <IImageViewTheme>(_defaultAvatar);
     FavoriteStateActive     = themeParser.GetThemeByName <IImageButtonTheme>(_favoriteStateActive);
     FavoriteStateNone       = themeParser.GetThemeByName <IImageButtonTheme>(_favoriteStateNone);
     RecommendSellImage      = themeParser.GetThemeByName <IImageViewTheme>(_recommendSellImage);
     RecommendBuyImage       = themeParser.GetThemeByName <IImageViewTheme>(_recommendBuyImage);
     DifferenceValuePositive = themeParser.GetThemeByName <ITextViewTheme>(_differenceValuePositive);
     DifferenceValueNegative = themeParser.GetThemeByName <ITextViewTheme>(_differenceValueNegative);
     CurrentPriceImgUp       = themeParser.GetThemeByName <IImageViewTheme>(_currentPriceImgUp);
     CurrentPriceImgDown     = themeParser.GetThemeByName <IImageViewTheme>(_currentPriceImgDown);
     StateOnline             = themeParser.GetThemeByName <IImageButtonTheme>(_stateOnline);
     StateOffline            = themeParser.GetThemeByName <IImageButtonTheme>(_stateOffline);
 }
 public PostBodyStylesHolderDroid(ThemeParser <T> themeParser)
 {
     ContentTheme  = themeParser.GetThemeByName <ITextViewTheme>(_contentTheme);
     MoreTextTheme = themeParser.GetThemeByName <ITextViewTheme>(_moreTextTheme);
 }
 public ToolBarBackStylesHolderDroid(ThemeParser <T> themeParser)
 {
     BackButtonTheme  = themeParser.GetThemeByName <IImageButtonTheme>(_backButtonTheme);
     TitleTheme       = themeParser.GetThemeByName <ITextViewTheme>(_titleTheme);
     ToolbarViewTheme = themeParser.GetThemeByName <IViewTheme>(_toolbarViewTheme);
 }
Example #23
0
 public ToolsStylesHolderDroid(ThemeParser <T> themeParser)
 {
     UnselectedCellTheme = themeParser.GetThemeByName <IViewTheme>(_unselectedCellTheme);
     SelectedCellTheme   = themeParser.GetThemeByName <IViewTheme>(_selectedCellTheme);
     ToolNameTheme       = themeParser.GetThemeByName <ITextViewTheme>(_toolNameTheme);
 }
Example #24
0
 private void LoadThemes()
 {
     error = "注册监测分析专题";
     _startProgress.PrintStartInfo("正在注册监测分析专题......");
     ThemeGlobalManager.Register(ThemeParser.Parse());
 }
Example #25
0
 public UpdatePostStylesHolderDroid(ThemeParser <T> themeParser) : base(themeParser)
 {
     ToolsDisableTheme      = themeParser.GetThemeByName <IButtonTheme>(_toolsDisableTheme);
     TextFieldsDisableTheme = themeParser.GetThemeByName <IButtonTheme>(_textFieldsDisableTheme);
 }
Example #26
0
 public OptionsCellStylesHolderIOS(ThemeParser <T> themeParser)
 {
     TextTheme       = themeParser.GetThemeByName <ITextViewTheme>(_textTheme);
     ImageViewTheme  = themeParser.GetThemeByName <IImageViewTheme>(_imageViewTheme);
     BackgroundTheme = themeParser.GetThemeByName <IViewTheme>(_backgroundTheme);
 }