(TargetProgram.ResourceType type, TargetProgram.ResourcePoolType pool, string name, string path, float time)
| 264 | } |
| 265 | |
| 266 | void Target_OnResourceLoaded(TargetProgram.ResourceType type, TargetProgram.ResourcePoolType pool, string name, string path, float time) |
| 267 | { |
| 268 | if ((int)type < 1 || (int)type > _ResourceStatusListView.Count()) |
| 269 | return; |
| 270 | |
| 271 | ListViewItem tNewItem = new ListViewItem(pool == TargetProgram.ResourcePoolType.Global ? "全局" : "关卡"); |
| 272 | tNewItem.SubItems.Add(new ListViewItem.ListViewSubItem(tNewItem, name)); |
| 273 | tNewItem.SubItems.Add(new ListViewItem.ListViewSubItem(tNewItem, path)); |
| 274 | tNewItem.SubItems.Add(new ListViewItem.ListViewSubItem(tNewItem, time.ToString())); |
| 275 | _ResourceStatusListView[(int)type - 1].Items.Add(tNewItem); |
| 276 | |
| 277 | ListViewItem tCounter = listView_resourceCounter.Items[(int)type - 1]; |
| 278 | tCounter.SubItems[1].Text = (Convert.ToDouble(tCounter.SubItems[1].Text) + time).ToString(); |
| 279 | tCounter.SubItems[2].Text = (Convert.ToInt32(tCounter.SubItems[2].Text) + 1).ToString(); |
| 280 | } |
| 281 | |
| 282 | private void listView_log_SelectedIndexChanged(object sender, EventArgs e) |
| 283 | { |
nothing calls this directly
no outgoing calls
no test coverage detected