private void punktoweDwuargumentowToolStripMenuItem_Click(object sender, EventArgs e) { List <NamedImage> namedImages = new List <NamedImage>(); foreach (ImageWindow imageWindow in MdiChildren.Cast <ImageWindow>().ToArray()) { namedImages.Add(new NamedImage(imageWindow.getImage(), imageWindow.Text)); } BinaryOperations binaryOperations = new BinaryOperations(namedImages, this); binaryOperations.MdiParent = this; binaryOperations.Show(); }
private void sincReconstructionToolStripMenuItem_Click(object sender, EventArgs e) { var currPlotters = MdiChildren.Cast <PlotController>().ToList(); var operation = new SinglePlotOperation(currPlotters, SinglePlotOperationType.SincReconstruction); operation.ShowDialog(); var plotController = operation.Result; if (plotController != null) { plotController.PlotType = PlotType.SincReconstruction; plotController.DrawPlot(); plotController.MdiParent = this; plotController.Show(); } }
private void reverseFastFourierTransformToolStripMenuItem_Click(object sender, EventArgs e) { var currPlotters = MdiChildren.Cast <PlotController>().ToList(); var operation = new SinglePlotOperation(currPlotters, SinglePlotOperationType.ReverseFastFourierTransform); operation.ShowDialog(); var plotController = operation.Result; if (plotController != null) { plotController.PlotType = PlotType.ReverseFastFourierTransform; plotController.Title = "Odwrotna szybka transformata Fouriera"; plotController.DrawPlot(); plotController.MdiParent = this; plotController.Show(); } }