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
 private void OnTextBox4MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     EstateExplorer.ShowHelpHowToUseMask();
 }