Exemple #1
0
 public void PasteSelection()
 {
     page.Deselect();
     Line[] lines = CopyPaster.PasteLines(page.GetHashCode());
     page.AddLines(lines);
     ShowSelectionMenu();
     SelectionChanged.Invoke(this, lines);
     RefreshPage();
 }
Exemple #2
0
        protected override void WndProc(ref Message m)
        {
            uint WM_DRAWCLIPBOARD = 0x0308;

            if (m.Msg == WM_DRAWCLIPBOARD)
            {
                btnPaste.Visible = CopyPaster.CheckClipboard();
            }
            base.WndProc(ref m);
        }
Exemple #3
0
 public void CopySelection()
 {
     CopyPaster.CopyLine(page.GetSelectedLines().ToArray(), page.GetHashCode());
 }