コード例 #1
0
 /// <summary>
 /// Initialize a new island diplsya
 /// </summary>
 /// <param name="Island"></param>
 /// <param name="Disp"></param>
 public MM_Island_Display(MM_Island Island, MM_Island_View Disp) : base(Island, Disp)
 {
     if (Island != null && !float.IsNaN(Island.Frequency))
     {
         this.Island = Island;
     }
 }
コード例 #2
0
        /// <summary>
        /// Handle an island removal
        /// </summary>
        /// <param name="Island"></param>
        private void Data_Integration_IslandRemoved(MM_Island Island)
        {
            MM_Island_Display FoundIsland;

            if (InvokeRequired)
            {
                Invoke(new Data_Integration.IslandChangeDelegate(Data_Integration_IslandRemoved), Island);
            }
            else if (Islands.TryGetValue(Island.ID, out FoundIsland))
            {
                Islands.Remove(Island.ID);
                dgvIslandView.Elements.Remove(FoundIsland);
            }
        }
コード例 #3
0
 /// <summary>
 /// Handle an island addition
 /// </summary>
 /// <param name="Island"></param>
 private void Data_Integration_IslandAdded(MM_Island Island)
 {
     if (Island != null && !float.IsNaN(Island.Frequency))
     {
         if (!Islands.ContainsKey(Island.ID))
         {
             if (InvokeRequired)
             {
                 Invoke(new Data_Integration.IslandChangeDelegate(Data_Integration_IslandAdded), Island);
             }
             else
             {
                 MM_Island_Display IslandDisplay = new MM_Island_Display(Island, this);
                 Islands.Add(Island.ID, IslandDisplay);
                 dgvIslandView.Elements.Add(IslandDisplay);
             }
         }
     }
 }
コード例 #4
0
 /// <summary>
 /// Assign our synchroscope
 /// </summary>
 /// <param name="GeneratorBus"></param>
 /// <param name="GeneratorIsland"></param>
 /// <param name="TimeReference"></param>
 public void AssignSynchroscope(MM_Bus GeneratorBus, MM_Island GeneratorIsland, DateTime TimeReference)
 {
     AssignSynchroscope(GeneratorBus, GeneratorIsland);
 }
コード例 #5
0
 /// <summary>
 /// Assign our synchroscope
 /// </summary>
 /// <param name="GeneratorBus"></param>
 /// <param name="GeneratorIsland"></param>
 public void AssignSynchroscope(MM_Bus GeneratorBus, MM_Island GeneratorIsland)
 {
     this.GeneratorBus    = GeneratorBus;
     this.GeneratorIsland = GeneratorIsland;
 }