public MainWindow() { InitializeComponent(); this.KeyDown += new KeyEventHandler(MainWindow_KeyDown); InitializeComponent(); scrapeTimer.Tick += new EventHandler(scrape_timer); scrapeTimer.Interval = new TimeSpan(0, 0, 0, 0, 500); boxTimer.Tick += new EventHandler(box_timer); boxTimer.Interval = new TimeSpan(0, 0, 0, 0, 1); //set the current box currentlySelectedBox = mineralBox; }
//set currently selected box to minerals private void Minerals_MouseDoubleClick(object sender, MouseButtonEventArgs e) { currentlySelectedBox = mineralBox; }
//set currently selected box to supply private void Supply_MouseDoubleClick(object sender, MouseButtonEventArgs e) { currentlySelectedBox = supplyBox; }
//set currently selected box to gas private void Gas_MouseDoubleClick(object sender, MouseButtonEventArgs e) { currentlySelectedBox = gasBox; }