public void DisplayButtonHit(object Sender, DanoEventArgs DEA)
        {
            Debug.Assert(DEA.DanoParameters.Count == 1);

            StormGraph SG = (StormGraph)DEA.DanoParameters[0];

            // if (!SG.Show())

            GraphDisplayHost GDH = new GraphDisplayHost(SG);

            GDH.Owner = this;
            GDH.Show();
        }
Esempio n. 2
0
        public GraphDisplay()
        {
            // parametersless constructor required for UC
            //GraphToDisplay = SG;
            InitializeComponent();

            // test code
            GraphToDisplay = new StormGraph();
            GraphToDisplay.Settings.AxesEnabled = true;
            GraphToDisplay.Settings.GridEnabled = true;
            GraphToDisplay.Settings.Smax        = new Vector(0, 10);
            GraphToDisplay.Settings.Smin        = new Vector(0, 0);
            DrawCurrentGraph();
        }
Esempio n. 3
0
 public GraphDisplayHost(StormGraph SG)
 {
     InitializeComponent();
     GraphDisplay.GraphToDisplay = SG;
 }