Example #1
0
        private void setup_editor(ActionTab tab)
        {
            editor_com editor = null;

            if (!curr_editor.TryGetValue(tab.Header, out editor))
            {
                editor_com ed = new editor_com();
                ed.Margin = new Thickness(10, 20, 0, 0);
                curr_editor.Add(tab.Header, ed);
                ed.apply_btn.MouseDoubleClick += click_apply_new;
                (tab.Content as UpControl).add_new(curr_editor[tab.Header]);
            }
            curr_editor[tab.Header].clear();
        }
Example #2
0
        private void setup_editor(ActionTab tab, Subject sub, string [] time_unformat)
        {
            editor_com editor = null;

            if (!curr_editor.TryGetValue(tab.Header, out editor))
            {
                editor_com ed = new editor_com();
                ed.Margin = new Thickness(10, 20, 0, 0);
                curr_editor.Add(tab.Header, ed);
                ed.apply_btn.MouseDoubleClick += click_apply_new;
                (tab.Content as UpControl).add_new(curr_editor[tab.Header]);
            }
            curr_editor[tab.Header].set_field(sub.getName(), time_unformat[0], sub.getAud(), sub.getLector());
            curr_editor[tab.Header].check(time_unformat[1]);
        }