Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
        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();
                }
            }
        }
Esempio n. 6
0
        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();
            }
        }