Example #1
0
        public static void AddIntoThis(SpellVM Spell, StackPanel item_line)
        {
            var row1 = MyGrids.GetRowItem(new List <int>()
            {
                4, 4, 2, 2, 2, 2, 2, 3, 1, 1, 1
            }, item_line);

            var row3 = new StackPanel();

            row3.Margin = new Thickness(1, 2, 1, 2);
            item_line.Children.Add(row3);

            var wpf = new SpellWpfItem();

            MyTxts.Get(wpf.Words, 0, 0, row1, Spell.Text);
            wpf.Words.ToolTip = "Id " + Spell.Id;
            MyCbBxs.Importance(wpf.Imp, 0, 1, row1, Spell.Importance, false);

            MyLbls.AvgScore(wpf.Avg_w, 0, 2, row1, Spell, 7);
            MyLbls.AvgScore(wpf.Avg_m, 0, 3, row1, Spell, 30);
            MyLbls.AvgScore(wpf.Avg_all, 0, 4, row1, Spell, 2000);
            MyLbls.Tries(wpf.Tries, 0, 5, row1, Spell);
            MyLbls.LastTry(wpf.Last_try, 0, 6, row1, Spell);
            MyLbls.Chance(wpf.Chance, 0, 7, row1, Spell);

            MyBtns.Is_active(wpf.IsActive, 0, 8, row1, Spell.IsActive);
            MyBtns.Quest_Edit(wpf.Edit, 0, 9, row1, Spell, wpf, item_line);
            MyBtns.Remove_quest(wpf.Remove, 0, 10, row1, Spell, item_line);
        }
        public static void AddIntoThis(SenVM_Deprecated sen, StackPanel item_line)
        {
            item_line.Children.Clear();

            var row1 = MyGrids.GetRowItem(new List <int>()
            {
                18, 1, 1, 1
            }, item_line);

            row1.Margin = new Thickness(2, 2, 1, 0);

            var row3 = new StackPanel();

            row3.Margin = new Thickness(1, 2, 1, 2);
            item_line.Children.Add(row3);

            var stack_quests = new StackPanel();
            var txt_sen      = new TextBox();

            //var btn_edit = MyBtns.Sen_Edit(0, 2, row1, sen, item_line, txt_sen, stack_quests);

            MyTxts.Get(txt_sen, 0, 0, row1, sen.Text);
            //txt_sen.TextChanged += (source, e) => CheckIfItemWasEdited(sen, txt_sen, btn_edit);

            //var show_quests = MyBtns.Sen_show_questions(0, 1, row1, sen, stack_quests);

            //var btn_remove = MyBtns.Remove_sentence(0, 3, row1, sen, item_line);

            //MyStacks.Sen_quests(stack_quests, sen, row3);
        }
Example #3
0
        public static void AddIntoThis(PronVM Pron, StackPanel item_line)
        {
            var row1 = MyGrids.GetRowItem(new List <int>()
            {
                3, 3, 3, 2, 1, 1, 1
            }, item_line);

            var wpf = new PronWpfItem();

            MyTxts.Get(wpf.Words, 0, 0, row1, Pron.Text);
            wpf.Words.ToolTip = "Id " + Pron.Id;
            MyTxts.Get(wpf.Phonemes, 0, 1, row1, Pron.Phonemes);
            MyCbBxs.Importance(wpf.Imp, 0, 2, row1, Pron.Importance, false);
            MyLbls.Chance(wpf.Chance, 0, 3, row1, Pron);
            MyBtns.Is_active(wpf.IsActive, 0, 4, row1, Pron.IsActive);
            MyBtns.Quest_Edit(wpf.Edit, 0, 5, row1, Pron, wpf, item_line);
            MyBtns.Remove_quest(wpf.Remove, 0, 6, row1, Pron, item_line);
        }
Example #4
0
        public static void AddIntoThis(VocVM Voc, StackPanel item_line)
        {
            var row1 = MyGrids.GetRowItem(new List <int>()
            {
                3, 1, 1
            }, item_line);

            var row2 = MyGrids.GetRowItem(new List <int>()
            {
                3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1
            }, item_line);

            var row3 = new StackPanel();

            row3.Margin = new Thickness(1, 2, 1, 2);
            item_line.Children.Add(row3);

            var wpf = new VocWpfItem();

            MyTxts.Get(wpf.Words, 0, 0, row1, Voc.Text);
            wpf.Words.ToolTip = "Id " + Voc.Id;
            MyTxts.Get(wpf.Answer, 0, 1, row1, Voc.Answer);
            MyCbBxs.Importance(wpf.Imp, 0, 2, row1, Voc.Importance, false);

            MyLbls.AvgScore(wpf.Avg_w, 0, 0, row2, Voc, 7);
            MyLbls.AvgScore(wpf.Avg_m, 0, 1, row2, Voc, 30);
            MyLbls.AvgScore(wpf.Avg_all, 0, 2, row2, Voc, 2000);
            MyLbls.Tries(wpf.Tries, 0, 3, row2, Voc);
            MyLbls.LastTry(wpf.Last_try, 0, 4, row2, Voc);
            MyLbls.Chance(wpf.Chance, 0, 5, row2, Voc);

            MyBtns.Is_active(wpf.IsActive, 0, 6, row2, Voc.IsActive);
            MyBtns.PtBr(wpf.Show_ptbr, 0, 7, row2, Voc.PtBr, wpf.Ptbr);
            MyBtns.Definition(wpf.Show_def, 0, 8, row2, Voc.Definition, wpf.Def);
            MyBtns.Quest_Edit(wpf.Edit, 0, 9, row2, Voc, wpf, item_line);
            MyBtns.Remove_quest(wpf.Remove, 0, 10, row2, Voc, item_line);

            MyTxts.Definition(wpf.Def, Voc.Definition, row3);
            MyTxts.PtBr(wpf.Ptbr, Voc.PtBr, row3);

            MyTxts.Add_sentence(wpf.Add_sen, wpf.Stk_sen);
        }