public void PutForm_Close() { Put_form.CrossThreadCalls(() => { Put_form.Close(); }); }
private void ck_All() { bool ck = false; while (true) { for (int i = 0; i < 90; i++) { ck = begin[i]; if (!ck) { break; } } if (ck) { Put_form.CrossThreadCalls(() => { Put_form.Location = Point.Round(set[0]); Put_form.SetBitmap(display[0], (byte)_transparency); Put_form.Show(); _BeginPeriod((uint)_speed); if (_rotationtype == 0) { for (int i = 0; i < 90; i++) { Put_form.Location = Point.Round(set[i]); Put_form.SetBitmap(display[i], (byte)_transparency); Thread.Sleep(_speed); } } else if (_rotationtype == 1) { for (int i = 89; i >= 0; i--) { Put_form.Location = Point.Round(set[i]); Put_form.SetBitmap(display[i], (byte)_transparency); Thread.Sleep(_speed); } } _EndPeriod((uint)_speed); }); _formList[0].listForm.CrossThreadCalls(() => { _formList[0].listForm.SetOpacity(_transparency / 255); }); break; } } }