private void Histogram_FormClosed(object sender, FormClosedEventArgs e)
 {
     singleton = null;
 }
        public static void ShowHistogram(IImageSet imageset, bool toggle, Point pnt)
        {
            if (imageset.WcsImage is FitsImage)
            {
                if (singleton == null)
                {
                    singleton = new Histogram();
                    singleton.Owner = Earth3d.MainWindow;
                }
                else
                {
                    if (toggle)
                    {

                        HideHistogram();
                    return;
                    }
                    else
                    {
                        singleton.Hide();
                    }
                }
                singleton.Top = pnt.Y - singleton.Height;
                singleton.Left = pnt.X;
                singleton.Show();
                singleton.Top = pnt.Y - singleton.Height;
                singleton.Left = pnt.X;
                singleton.Image = (FitsImage)imageset.WcsImage;
                singleton.Tile = (SkyImageTile)TileCache.GetTile(0, 0, 0, imageset, null);
            }
        }
示例#3
0
 private void Histogram_FormClosed(object sender, FormClosedEventArgs e)
 {
     singleton = null;
 }