示例#1
0
文件: FloodLevel.cs 项目: Fav/testww
 public FloodLevelForm(FloodLevel mesh)
 {
     InitializeComponent();
     this.fl = mesh;
     buttonColorPicker.BackColor = fl.FloodColor;
     numFloodLevel.Value         = (decimal)fl.FloodElevation;
 }
示例#2
0
文件: FloodLevel.cs 项目: Fav/testww
 /// <summary>
 /// Plugin entry point - All plugins must implement this function
 /// </summary>
 public override void Load()
 {
     if (ParentApplication.WorldWindow.CurrentWorld != null && ParentApplication.WorldWindow.CurrentWorld.Name.IndexOf("SDSS") == -1)
     {
         FloodLevel layer = new FloodLevel(LayerName, ParentApplication.WorldWindow);
         ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
 }
示例#3
0
 /// <summary>
 /// Plugin entry point - All plugins must implement this function
 /// </summary>
 public override void Load()
 {
     if (Global.worldWindow.CurrentWorld != null && Global.worldWindow.CurrentWorld.Name.IndexOf("SDSS") == -1)
     {
         FloodLevel layer = new FloodLevel(LayerName, Global.worldWindow);
         Global.worldWindow.CurrentWorld.RenderableObjects.Add(layer);
     }
 }