public void setPropertyOnPanel(WordPanel wpanel,Word word) { wpanel.setUI(word); wpanel.BorderBrush = wordPanel1.BorderBrush; wpanel.BorderThickness = wordPanel1.BorderThickness; wpanel.Width = 300; }
public void setPropertyOnPanel(WordPanel wpanel, Word word) { wpanel.setUI(word); wpanel.BorderBrush = wordPanel1.BorderBrush; wpanel.BorderThickness = wordPanel1.BorderThickness; wpanel.Width = 300; }
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); } }
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); } }
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); } }
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); } }