コード例 #1
0
ファイル: MapFrameTest.cs プロジェクト: ase-lab/eGrid
 public void GetGhostFrameTest()
 {
     GhostFrame relatedGhostFrame = null; // TODO: Initialize to an appropriate value
     MapPoint p1 = null; // TODO: Initialize to an appropriate value
     MapPoint p2 = null; // TODO: Initialize to an appropriate value
     MapFrame target = new MapFrame(relatedGhostFrame, p1, p2); // TODO: Initialize to an appropriate value
     GhostFrame expected = null; // TODO: Initialize to an appropriate value
     GhostFrame actual;
     actual = target.GetGhostFrame();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #2
0
        /// <summary>
        /// Removes a MapFrame, if it already exists
        /// </summary>
        /// <param name="deleteMap">The map frame to be deleted</param>
        public void RemoveMap(MapFrame deleteMap)
        {
            GhostFrame gf = deleteMap.GetGhostFrame();

            if (mapFramesList.Contains(deleteMap))
            {
                mapFramesList.Remove(deleteMap);
                ghostFramesList.Remove(gf);
            }

            if (BackgroundScatterView.Items.Contains(deleteMap))
                BackgroundScatterView.Items.Remove(deleteMap);
            if (BackgroundScatterView.Items.Contains(gf))
                BackgroundScatterView.Items.Remove(gf);
        }
コード例 #3
0
        /// <summary>
        /// Add a map frame/window on top of the background map
        /// </summary>
        /// <param name="mFrame">The map frame to be added</param>        
        public void AddMapFrame(MapFrame mFrame)
        {
            if (mFrame == null) return;

            ghostFramesList.Add(mFrame.GetGhostFrame());
            mapFramesList.Add(mFrame);

            BackgroundScatterView.Items.Add(mFrame.GetGhostFrame());
            BackgroundScatterView.Items.Add(mFrame);
        }