Example #1
0
        /// <summary>
        /// Launches an appropriate explorer for a.
        /// </summary>
        /// <param name="a">The object to launch the explorer for.</param>
        public static void LaunchExplorerFor(Area a)
        {
            Explorer explorer;
            Estate   f = (a as Estate);
            Place    l = (a as Place);

            if (f != null)
            {
                explorer = new EstateExplorer(f, MainForm.mainForm.ExplorerContainer);
                explorer.Show();
            }
            else
            if (l != null)
            {
                explorer = new PlaceExplorer(l, MainForm.mainForm.Db, MainForm.mainForm.ExplorerContainer);
                explorer.Show();
            }
            else
            {
                MessageBox.Show(
                    "Ya ha alcanzado el tope de la jerarquía, "
                    + "o no ha seleccionado un nodo",
                    "Gestor de Fincas",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Asterisk
                    );
            }

            return;
        }
Example #2
0
        void OnLinkLabel3Clicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            PlaceExplorer uil = new PlaceExplorer(
                this.RealEstate.Parent,
                MainForm.mainForm.Db,
                this.Owner
                );

            uil.Show();
        }