Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 //set currently selected box to minerals
 private void Minerals_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     currentlySelectedBox = mineralBox;
 }
Esempio n. 3
0
 //set currently selected box to supply
 private void Supply_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     currentlySelectedBox = supplyBox;
 }
Esempio n. 4
0
 //set currently selected box to gas
 private void Gas_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     currentlySelectedBox = gasBox;
 }