Пример #1
0
        public void paste()
        {
            string str = Clipboard.GetText().Trim();

            if (str.Length > 0 && str.StartsWith(clipHeader) && str.EndsWith(clipFooter))
            {
                mode.paste(str.Substring(10, str.Length - 11));
                mode.Refresh();
            }
        }
        public void paste()
        {
            string str = Clipboard.GetText().Trim();

            if (str.Length > 0 && str.StartsWith("NSMBeClip|") && str.EndsWith("|"))
            {
                mode.paste(str.Substring(10, str.Length - 11));
                mode.Refresh();
            }
        }
Пример #3
0
        public void SetEditionMode(EditionMode nm)
        {
            if (nm == mode)
            {
                return;
            }

            mode = nm;
            if (mode != null)
            {
                mode.Refresh();
            }

            DrawingArea.Invalidate();
        }
Пример #4
0
        public void SetEditionMode(EditionMode nm)
        {
            if (nm == mode)
                return;

            mode = nm;
            if(mode != null)
                mode.Refresh();

            DrawingArea.Invalidate();
        }