Ejemplo n.º 1
0
        public void DeleteVariationToolStripMenu_Click(object sender, EventArgs e)
        {
            criticalityVariationsPoints.deleteVariation(selectedPoint);
            this.Refresh();
            CriticalityVariationsEventArgs cve =
                new CriticalityVariationsEventArgs((CriticalityVariations)(criticalityVariationsPoints));

            OnCriticalityChange(this, cve);
        }
Ejemplo n.º 2
0
 void criticalityPanel1_OnCriticalityChange(object sender, CriticalityVariationsEventArgs e)
 {
     criticalityVariations = e.CriticalityVariationsUpdated;
     if (buttonCalculatePopulations.Visible)
     {
         precursors = readPrecursorsGrid();
     }
     reactor = new Reactor(criticalityVariations, precursors);
     Display();
     buttonCalculatePopulations.Visible = false;
     saved = false;
     //throw new NotImplementedException();
 }
Ejemplo n.º 3
0
        public void AddVariationToolStripMenu_Click(object sender, EventArgs e)
        {
            VariationToInsert = null;
            AddVariationForm subForm = new AddVariationForm(this);

            subForm.ShowDialog();
            if (VariationToInsert != null)
            {
                criticalityVariationsPoints.InsertVariation(selectedPoint, VariationToInsert);
                this.Refresh();
                CriticalityVariationsEventArgs cve =
                    new CriticalityVariationsEventArgs((CriticalityVariations)(criticalityVariationsPoints));
                OnCriticalityChange(this, cve);
            }
        }
Ejemplo n.º 4
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            base.OnMouseUp(e);
            if (draging)
            {
                draging = false;
                criticalityVariationsPoints.updateVariations(selectedPoint);
                this.Refresh();
                CriticalityVariationsEventArgs cve =
                    new CriticalityVariationsEventArgs((CriticalityVariations)(criticalityVariationsPoints));

                OnCriticalityChange(this, cve);
                onePointIsClose = false;
            }
        }