private void partGraphTimer_Tick(object sender, EventArgs e) { if ((VesselsList.SelectedItem as GuiVesselsNode) == PartGraphNode) { return; } PartGraphNode = (VesselsList.SelectedItem as GuiVesselsNode); PartGraph.DrawPartStructure(PartGraphNode); }
private void vesselsDetails_SizeChanged(object sender, SizeChangedEventArgs e) { PartGraph.DrawPartStructure(VesselsList.SelectedItem as GuiVesselsNode); }