Exemplo n.º 1
0
 public void setPropertyOnPanel(WordPanel wpanel,Word word)
 {
     wpanel.setUI(word);
     wpanel.BorderBrush = wordPanel1.BorderBrush;
     wpanel.BorderThickness = wordPanel1.BorderThickness;
     wpanel.Width = 300;
 }
Exemplo n.º 2
0
 public void setPropertyOnPanel(WordPanel wpanel, Word word)
 {
     wpanel.setUI(word);
     wpanel.BorderBrush     = wordPanel1.BorderBrush;
     wpanel.BorderThickness = wordPanel1.BorderThickness;
     wpanel.Width           = 300;
 }
Exemplo n.º 3
0
        public void setWords(List <Word> words)
        {
            if (stkWordDefinition.Children.Count != 1)
            {
                stkWordDefinition.Children.RemoveRange(1, stkWordDefinition.Children.Count);
            }
            foreach (Word word in words)
            {
                WordPanel wordPanel = new WordPanel();
                setPropertyOnPanel(wordPanel, word);

                stkWordDefinition.Children.Add(wordPanel);
            }
        }
Exemplo n.º 4
0
        public void setWord(Word word)
        {
            WordPanel wordPanel = new WordPanel();

            if (stkWordDefinition.Children.Count == 1)
            {
                setPropertyOnPanel(wordPanel,word);
                stkWordDefinition.Children.Add(wordPanel);
            }
            else
            {
                stkWordDefinition.Children.RemoveRange(1, stkWordDefinition.Children.Count);
                setPropertyOnPanel(wordPanel, word);
                stkWordDefinition.Children.Add(wordPanel);

            }
        }
Exemplo n.º 5
0
        public void setWord(Word word)
        {
            WordPanel wordPanel = new WordPanel();


            if (stkWordDefinition.Children.Count == 1)
            {
                setPropertyOnPanel(wordPanel, word);
                stkWordDefinition.Children.Add(wordPanel);
            }
            else
            {
                stkWordDefinition.Children.RemoveRange(1, stkWordDefinition.Children.Count);
                setPropertyOnPanel(wordPanel, word);
                stkWordDefinition.Children.Add(wordPanel);
            }
        }
Exemplo n.º 6
0
        public void setWords(List<Word> words)
        {
            if(stkWordDefinition.Children.Count!=1)
                stkWordDefinition.Children.RemoveRange(1,stkWordDefinition.Children.Count);
            foreach (Word word in words)
            {
                WordPanel wordPanel = new WordPanel();
                setPropertyOnPanel(wordPanel,word);

                stkWordDefinition.Children.Add(wordPanel);
            }
        }