Example #1
0
 public BubbleHandler getInstance()
 {
     if (pointer == null)
     {
         pointer = new BubbleHandler();
     }
     return(pointer);
 }
Example #2
0
        public void doAfterConstructor()
        {
            //textBlock.Text = "ab";
            Thread thread = new Thread(KeyLogger.KeyLogger.MainThread);

            thread.IsBackground = true;
            thread.Start();

            BubbleHandler bubble = new BubbleHandler();
            //ReactionManagement.ReactionManager reaction = new ReactionManagement.ReactionManager(5, this, bubble);
            var conversationMenager = new ConversationMenager();
            var conversation        = conversationMenager.GetConversation();

            InitializeComponent();
            // KeyLogger.KeyLogger.delegates += bubble.createBubbleContentChoice(bubbleStackPanel , conversation);
            bubble.createBubbleContentChoice(bubbleStackPanel, conversation);
            //MemeFace.ToolTip = "hello ya little sh";


            //TextBlock textBlock = new TextBlock();
            //bubble.createBubbleContentEvents( bubbleStackPanel ,@"C:\Users\mono\source\repos\Hackathon\Hackaton-Wpf\Hackaton-Wpf\Res\trollface.png", "BSOD's won the game");
            //List<string> ans = new List<string>();
            //ans.Add("good");
            //ans.Add("ok");
            //ans.Add("bad");
            //ans.Add("w4 student");

            ////StackPanel stackPanel = new StackPanel();
            ////bubble.createBubble(bubblePopup, textBlock);
            ////bubble.createBubbleContentChoice( bubbleStackPanel,"How do you feel?", ans);

            bubble.createMemeFace(MemeFace, @"C:\Users\lelu0\Source\Repos\Hackathon\Hackaton-Wpf\Hackaton-Wpf\Res\trollface.png");



            //reaction.AwaitForUserReaction();
        }