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)); }