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); } }); }
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); } }); }