Ejemplo n.º 1
0
        static void Main()
        {
            if (!Program.IsAdministrator())
            {
                Program.LaunchAsAdmin();
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Program.PandaStack = new PandaStack();
            Application.Run(new frmMain());
        }
Ejemplo n.º 2
0
        public frmMain()
        {
            InitializeComponent();

            // Setup PandaStack
            this.PandaStack = Program.PandaStack;
            this.PandaStack.LoadModules();

            Information.Form = this;
            Information.AddMessage("Setting up PandaStack");

            // Check to see if PandaStack is running as administrator
            if (Program.IsAdministrator())
            {
                this.Text += " [Administrator]";
                Information.AddMessage("PandaStack is running as administrator");
            }

            this.tmrSync.Interval = this.PandaStack.GetJsonHandler().GetSettings().timerInterval;
        }