(object sender, EventArgs e)
| 857 | } |
| 858 | |
| 859 | private void ToolStripMenuItem_paste_Click(object sender, EventArgs e) |
| 860 | { |
| 861 | string tText = String.Empty; |
| 862 | |
| 863 | foreach (FontDef.CharDef x in _Def.CharList) |
| 864 | { |
| 865 | tText += x.Character; |
| 866 | } |
| 867 | |
| 868 | bool tOK = false; |
| 869 | while (!tOK) |
| 870 | { |
| 871 | try |
| 872 | { |
| 873 | Clipboard.SetText(tText); |
| 874 | tOK = true; |
| 875 | } |
| 876 | catch (Exception) |
| 877 | { |
| 878 | if (DialogResult.Cancel == MessageBox.Show("复制到剪辑版失败,可能剪辑版正在被使用。", "错误", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)) |
| 879 | break; |
| 880 | } |
| 881 | } |
| 882 | } |
| 883 | } |
| 884 | |
| 885 | public class FontDef |
nothing calls this directly
no outgoing calls
no test coverage detected