Esempio n. 1
0
        private void Init()
        {
            try
            {
                MReactButton     = this;
                MDefaultReaction = XReactions.GetDefaultReact();
                MCurrentReaction = MDefaultReaction;

                AppCompatDelegate.CompatVectorFromResourcesEnabled = true;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Esempio n. 2
0
        private void Init()
        {
            try
            {
                MReactButton     = this;
                MDefaultReaction = XReactions.GetDefaultReact();
                MCurrentReaction = MDefaultReaction;

                AppCompatDelegate.CompatVectorFromResourcesEnabled = true;
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
Esempio n. 3
0
 public void SetReactionPack(string type)
 {
     try
     {
         if (type == ReactConstants.Like)
         {
             UpdateReactButtonByReaction(MReactionPack[0]);
         }
         else if (type == ReactConstants.Love)
         {
             UpdateReactButtonByReaction(MReactionPack[1]);
         }
         else if (type == ReactConstants.HaHa)
         {
             UpdateReactButtonByReaction(MReactionPack[2]);
         }
         else if (type == ReactConstants.Wow)
         {
             UpdateReactButtonByReaction(MReactionPack[3]);
         }
         else if (type == ReactConstants.Sad)
         {
             UpdateReactButtonByReaction(MReactionPack[4]);
         }
         else if (type == ReactConstants.Angry)
         {
             UpdateReactButtonByReaction(MReactionPack[5]);
         }
         else
         {
             UpdateReactButtonByReaction(XReactions.GetDefaultReact());
         }
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Esempio n. 4
0
 public void SetReactionPack(string type)
 {
     try
     {
         if (type == ReactConstants.Like)
         {
             UpdateReactButtonByReaction(MReactionPack[0]);
         }
         else if (type == ReactConstants.Love)
         {
             UpdateReactButtonByReaction(MReactionPack[1]);
         }
         else if (type == ReactConstants.HaHa)
         {
             UpdateReactButtonByReaction(MReactionPack[2]);
         }
         else if (type == ReactConstants.Wow)
         {
             UpdateReactButtonByReaction(MReactionPack[3]);
         }
         else if (type == ReactConstants.Sad)
         {
             UpdateReactButtonByReaction(MReactionPack[4]);
         }
         else if (type == ReactConstants.Angry)
         {
             UpdateReactButtonByReaction(MReactionPack[5]);
         }
         else
         {
             UpdateReactButtonByReaction(XReactions.GetDefaultReact());
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }