protected virtual void OnHotKeyPressed() { var t = new Thread(() => { if (_notifyIcon.ContextMenu.MenuItems[4].Checked) { Thread.Sleep(3000); } WindowScreenshot.SetClipboard(_notifyIcon.ContextMenu.MenuItems[3].Checked); }); t.SetApartmentState(ApartmentState.STA); t.Start(); // t.Join(); // uncomment to avoid "System.Runtime.InteropServices.ExternalException (0x800401D0)" error }
private void копіюватиВБуферОбмінуToolStripMenuItem_Click(object sender, EventArgs e) { int height = chart.Height + (chart.Top - label_entropi.Top); WindowScreenshot.CopyToClipboard(this, ScreenshotType.ClientRegion, new Rectangle(0, label_entropi.Top, chart.Width, height)); }
private void вФайлToolStripMenuItem_Click(object sender, EventArgs e) { int height = chart.Height + (chart.Top - label_entropi.Top); WindowScreenshot.SaveInFile(this, "Гістограма", ScreenshotType.ClientRegion, new Rectangle(0, label_entropi.Top, chart.Width, height)); }
private void вФайлToolStripMenuItem_Click(object sender, EventArgs e) { int height = data_view.Height + (data_view.Top - label_entropi.Top); WindowScreenshot.SaveInFile(this, "ГістоТаблиця", ScreenshotType.ClientRegion, new Rectangle(0, label_entropi.Top, data_view.Width, height)); }