public void AddAera(Aera aera) { this.listAera.Add(aera); }
public void AddAera(Aera aera) { this.listAera.Add(aera); }
private void textureControl_MouseMove(object sender, MouseEventArgs e) { for (int i = 0; i < this.ExportedTSI.listDDS[this.DDSIndex].ListDDS_element.Count; i++) { Microsoft.Xna.Framework.Rectangle rect = new Microsoft.Xna.Framework.Rectangle(this.ExportedTSI.listDDS[this.DDSIndex].ListDDS_element[i].X, this.ExportedTSI.listDDS[this.DDSIndex].ListDDS_element[i].Y, this.ExportedTSI.listDDS[this.DDSIndex].ListDDS_element[i].Width, this.ExportedTSI.listDDS[this.DDSIndex].ListDDS_element[i].Height); if (rect.Contains(e.X, e.Y)) { Aera aera = new Aera(this.textureControl.GraphicsDevice, rect, Microsoft.Xna.Framework.Graphics.Color.Red); this.textureControl.ClearAeras(); this.textureControl.AddAera(aera); this.textBoxClipboard.Text = (this.DDSIndex * 169 + i).ToString(); this.iconIndex = i; } } }