public void setAssembly(Road r, Reel reel, FLine fLine, Lure lure) { this.proad = r; this.reel = reel; this.fline = fLine; this.lure = lure; }
private void LuresList_MouseDoubleClick(object sender, MouseEventArgs e) { try { int index = LuresList.SelectedIndex; lure = Item.LureInv[index]; } catch (Exception) { } }
public Assembly(string name, Road road, Reel reel, FLine fLine, Lure lure, ROAD_TYPE roadType) { this.proad = road; this.reel = reel; this.fLine = fLine; this.lure = lure; this.roadType = roadType; this.name = name; }
private void AssembliesBox_MouseDoubleClick(object sender, MouseEventArgs e) { try { int index = assembliesBox.SelectedIndex; RoadBox.Image = Assembly.GetAssemblies()[index].proad.Pict; ReelBox.Image = Assembly.GetAssemblies()[index].reel.Pict; FLineBox.Image = Assembly.GetAssemblies()[index].fLine.Pict; BaitBox.Image = Assembly.GetAssemblies()[index].lure.pic; road = Assembly.GetAssemblies()[index].proad; reel = Assembly.GetAssemblies()[index].reel; fline = Assembly.GetAssemblies()[index].fLine; lure = Assembly.GetAssemblies()[index].lure; Player.getPlayer().setAssembly(road, reel, fline, lure); } catch (Exception) { } }