Ejemplo n.º 1
0
 public override void OnClick()
 {
     GetForm.BeginEditing($"{Dir}{PanelName}");
     new Document(PanelName, Dir).Start(() =>
     {
         GetForm.StopEditing($"{Dir}{PanelName}");
     });
 }
Ejemplo n.º 2
0
        public override void Edit()
        {
            GetForm.BeginEditing($"{Dir}{PanelName}");

            Flashcards.Edit(PanelName, Dir, (n, d) =>
            {
                GetForm.StopEditing($"{Dir}{PanelName}");
            });
        }
Ejemplo n.º 3
0
 public override void StartAssessment(Action onFinish)
 {
     GetForm.BeginEditing($"{Dir}{PanelName}");
     new Flashcards(PanelName, Dir).Start(() =>
     {
         GetForm.StopEditing($"{Dir}{PanelName}");
         onFinish?.Invoke();
     });
 }
Ejemplo n.º 4
0
        public override void Duplicate()
        {
            GetForm.BeginEditing(Dir);
            GetForm.SetNativeEnabled(false);

            Flashcards.Duplicate(PanelName, Dir,
                                 () => GetForm.SetNativeEnabled(true),
                                 (n, d) =>
            {
                GetForm.StopEditing(Dir);
                if (n != "" && d == Dir)
                {
                    GetForm.AddPanel(new FlashcardsPanel(owner, n, Dir), true);
                }
            });
        }
Ejemplo n.º 5
0
        private void DuplicateStrip_Click(object sender, EventArgs e)
        {
            GetForm.BeginEditing(Dir);
            GetForm.SetNativeEnabled(false);

            Document.Duplicate(PanelName, Dir,
                               () => GetForm.SetNativeEnabled(true),
                               (n, d) =>
            {
                GetForm.StopEditing(Dir);
                if (n != "" && d == Dir)
                {
                    GetForm.AddPanel(new DocumentPanel(owner, n, Dir), true);
                }
            });
        }