Пример #1
0
        public FProgram()
        {
            InitializeExplorer();
            InitializeComponent();

            form = this;
            Program.LoadData();

            webBrowser.Url = new Uri(Program.APP_URL + "user-interface.php");
            webBrowser.DocumentCompleted += (s, e) => {
                Console.WriteLine("Loading Done. Initialized: " + Initialized);
                if (!Initialized)
                {
                    Aternos = new Aternos();

                    webBrowser.ObjectForScripting = this;
                    ExecuteScript("SetCookie", new object[] {
                        Program.PHPSESSID
                    });
                    Controls.Add(webBrowser);

                    CreateThread();
                    Initialized = true;

                    UpdateApplication();
                }
                else
                {
                    ExecuteScript("SetCookie", new object[] {
                        Program.PHPSESSID
                    });
                }
            };
        }
Пример #2
0
 public FProgram()
 {
     InitializeComponent();
     form = this;
     Program.LoadData();
     Aternos = new Aternos();
     CreateThread();
     UpdateApplication();
 }