Пример #1
0
 public void AddCard(int count = 1)
 {
     for (int i = 0; i < count; ++i)
     {
         var w = new QuizEditorCard(this, flp_cards.Controls.Count);
         flp_cards.Controls.Add(w);
         flp_cards.SetFlowBreak(w, true);
         w.Size = new Size(flp_cards.Size.Width - 46, w.Size.Height);
     }
 }
Пример #2
0
        public EditCardSynonyms(QuizEditorCard parent, string cardText, int language)
        {
            InitializeComponent();
            Parent   = parent;
            Language = language;
            lbl_synForPhrase.Text = $"Synonyms for: {cardText}";

            if (Synonyms != null)
            {
                foreach (var synonym in Synonyms)
                {
                    lst_synonyms.Items.Add(synonym);
                }
            }

            initialListBoxCollection = new object[lst_synonyms.Items.Count];
            lst_synonyms.Items.CopyTo(initialListBoxCollection, 0);

            SetTheme();
        }
Пример #3
0
 private bool CardEmpty(QuizEditorCard qec)
 {
     return(qec != null ?
            qec.txt_front.Text == "" && qec.FrontSynonyms.IsNullOrEmpty() && qec.txt_back.Text == "" && qec.BackSynonyms.IsNullOrEmpty()
         : false);
 }