MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / toolStripButton_add_Click

Method toolStripButton_add_Click

TexturedFontEditor/FontEditor.cs:160–184  ·  view source on GitHub ↗
(object sender, EventArgs e)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

ShowErrMethod · 0.80
OpenDialogMethod · 0.45

Tested by

no test coverage detected