(object sender, EventArgs e)
| 158 | } |
| 159 | |
| 160 | private void toolStripButton_add_Click(object sender, EventArgs e) |
| 161 | { |
| 162 | string tOut; |
| 163 | if(DialogResult.OK == Dialog_InputBox.OpenDialog("要添加字符的个数:", "添加字符", "1", out tOut)) |
| 164 | { |
| 165 | int tCount = 0; |
| 166 | |
| 167 | try |
| 168 | { |
| 169 | tCount = Convert.ToInt32(tOut); |
| 170 | } |
| 171 | catch (Exception Expt) |
| 172 | { |
| 173 | Helper.ShowErr("无效值:" + Expt.Message); |
| 174 | return; |
| 175 | } |
| 176 | |
| 177 | for(int i = 0; i<tCount; ++i) |
| 178 | { |
| 179 | _Def.CharList.Add(new FontDef.CharDef()); |
| 180 | } |
| 181 | |
| 182 | RefreshAll(); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | private void toolStripButton_remove_Click(object sender, EventArgs e) |
| 187 | { |
nothing calls this directly
no test coverage detected