private void BtnPlot_Click(object sender, EventArgs e)
        {
            if (PlotRequest != null)
            {
                PionGDFPlotRequestEventArgs args = new PionGDFPlotRequestEventArgs
                {
                    DataFileName = TbxDataFileName.Text,
                    EnergyScale  = TbxEnergyScale.Text,
                    Samples      = TbxSamples.Text
                };

                PlotRequest(this, args);
            }
        }
示例#2
0
        private void OnPlotRequest(
            object sender,
            PlotRequestEventArgs args
            )
        {
            DataFileName = args.DataFileName;
            Samples      = args.Samples;

            if (args is AlphaPlotRequestEventArgs)
            {
                AlphaPlotRequestEventArgs alphaArgs = args as AlphaPlotRequestEventArgs;
                MaxEnergy = alphaArgs.MaxEnergy;
                MinEnergy = alphaArgs.MinEnergy;
                RunningCouplingTypeSelection = alphaArgs.RunningCouplingTypeSelection;
            }
            else if (args is PionGDFPlotRequestEventArgs)
            {
                PionGDFPlotRequestEventArgs pionArgs = args as PionGDFPlotRequestEventArgs;
                EnergyScale = pionArgs.EnergyScale;
            }
            else if (args is PotentialPlotRequestEventArgs)
            {
                PotentialPlotRequestEventArgs potentialArgs = args as PotentialPlotRequestEventArgs;
                AlphaSoft            = potentialArgs.AlphaSoft;
                ColorState           = potentialArgs.ColorState;
                DataFileName         = potentialArgs.DataFileName;
                DebyeMass            = potentialArgs.DebyeMass;
                MinRadius            = potentialArgs.MinRadius;
                MaxRadius            = potentialArgs.MaxRadius;
                PotentialType        = potentialArgs.PotentialType;
                Samples              = potentialArgs.Samples;
                Sigma                = potentialArgs.Sigma;
                SpinState            = potentialArgs.SpinState;
                SpinCouplingRange    = potentialArgs.SpinCouplingRange;
                SpinCouplingStrength = potentialArgs.SpinCouplingStrength;
                Temperature          = potentialArgs.Temperature;
            }
        }