public void DeleteVariationToolStripMenu_Click(object sender, EventArgs e) { criticalityVariationsPoints.deleteVariation(selectedPoint); this.Refresh(); CriticalityVariationsEventArgs cve = new CriticalityVariationsEventArgs((CriticalityVariations)(criticalityVariationsPoints)); OnCriticalityChange(this, cve); }
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(); }
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); } }
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; } }