private void sygProstokątnyToolStripMenuItem_Click(object sender, EventArgs e) { PlotController plotController = new PlotController() { PlotType = PlotType.Prostokatny, Title = "Prostokątny", }; plotController.DrawPlot(); // Set the Parent Form of the Child window. plotController.MdiParent = this; // Display the new form. plotController.Show(); }
private void sygSinusoidalnyWyprostowanyDwupolowkowoToolStripMenuItem_Click(object sender, EventArgs e) { PlotController plotController = new PlotController() { PlotType = PlotType.SinusoidalnyWyprostowanyDwupolowkowo, Title = "Sinusoidalny wyprostowany dwupołówkowo", }; plotController.DrawPlot(); // Set the Parent Form of the Child window. plotController.MdiParent = this; // Display the new form. plotController.Show(); }
private void szumGaussowskiToolStripMenuItem_Click(object sender, EventArgs e) { PlotController plotController = new PlotController() { PlotType = PlotType.SzumGaussowski, Title = "Szum Gaussowski", }; plotController.DrawPlot(); // Set the Parent Form of the Child window. plotController.MdiParent = this; // Display the new form. plotController.Show(); }
private void impulsJednostkowyToolStripMenuItem_Click(object sender, EventArgs e) { PlotController plotController = new PlotController() { PlotType = PlotType.ImpulsJednostkowy, Title = "Impuls Jednostkowy", }; plotController.DrawPlot(); // Set the Parent Form of the Child window. plotController.MdiParent = this; // Display the new form. plotController.Show(); }
private void odczytajZPlikuToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); if (openFileDialog.ShowDialog() == DialogResult.OK) { PlotController plotController = Import(openFileDialog.FileName); if (plotController != null) { plotController.PlotType = PlotType.WynikDzialania; plotController.DrawPlot(); plotController.MdiParent = this; plotController.Show(); } } }
private void dzielenieToolStripMenuItem_Click(object sender, EventArgs e) { List <PlotController> plotters = new List <PlotController>(); foreach (PlotController p in MdiChildren) { plotters.Add(p); } Operation operation = new Operation(OperationType.Dividing, plotters); operation.ShowDialog(); PlotController plotController = operation.Result; if (plotController != null) { plotController.PlotType = PlotType.WynikDzialania; plotController.DrawPlot(); plotController.MdiParent = this; plotController.Show(); } }