void device_CaptureComplete(NikonDevice sender, int data) { if (ClosingTimerStarted) { closingTimer.Elapsed -= new ElapsedEventHandler(CloseForm); closingTimer.Stop(); ClosingTimerStarted = false; } test = new GreenBox(Image, Position.BottomLeft); test.Hue = 2; printImage = test.CImage; this.BackgroundImage = new Bitmap(printImage); pictureBox1.Image = null; Print(printImage); }
void device_CaptureComplete(NikonDevice sender, int data) { if (ClosingTimerStarted) { closingTimer.Elapsed -= new ElapsedEventHandler(CloseForm); closingTimer.Stop(); ClosingTimerStarted = false; } test = new GreenBox(Image, Position.BottomLeft); test.Hue = 2; printImage = test.CImage; this.BackgroundImage = new Bitmap(printImage); pictureBox1.Image = null; Cursor.Show(); if (coinSelector.RemainedCoin < copyCount.Count * Settings.Instance.COST) { pictureBox10.Visible = false; coinSelector.PollingEnabled = true; } else { pictureBox10_Click(null, null); pictureBox10.Visible = false; coinSelector.PollingEnabled = false; } double remainingValue = Settings.Instance.COST * copyCount.Count - coinSelector.RemainedCoin; double[] enabledValues = new double[3]; if (remainingValue >= CoinValues.TRY025) { enabledValues[0] = CoinValues.TRY025; } if (remainingValue >= CoinValues.TRY050) { enabledValues[1] = CoinValues.TRY050; } if (remainingValue >= CoinValues.TRY100) { enabledValues[2] = CoinValues.TRY100; } coinSelector.SetEnabledCoins(enabledValues); setPictureCountSelectVisible(true); }