Exemplo n.º 1
0
        protected void LoadMainForm()
        {
            if (this.IsDeployed && this.GetType().Name == "MainForm")
            {
                string mainWindowName = "Anatta Main";

                if (this.Text != mainWindowName)
                {
                    string application = Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
                    string mainApp     = Path.GetDirectoryName(application) + "\\AnattaMainPpc.exe";

                    FormEngine.BringWindowToTop(mainWindowName, mainApp);
                }
            }
        }