예제 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            var startwindow = new DocumentWindow();

            startwindow.Text = "StartPage";
            startwindow.Controls.Add(new StartPageCtrl()
            {
                Dock = DockStyle.Fill
            });

            dock.AddDocument(startwindow);

            /*   var pf = new ProjectFile();
             *
             * pf.Body.Properties.Add("Version", "1.0.0.0");
             * pf.ProjectHeader = new Header() { Name = "TestProject", Type = ProjectType.WindowsFormsApplication };
             *
             * ProjectFile.Save("test.ecproj", ref pf);*/

            if (File.Exists("dock.xml"))
            {
                //  this.radDock1.LoadFromXml("dock.xml");
            }


            engine = new Engine {
                Flag = Engine.ExecutanFlags.RamOptimized
            };
            engine.Evaluate(this.fastColoredTextBox1.Text);
            console.Clear();

            if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
            {
                var updController = new updateController
                {
                    updateUrl = "http://eclang.tk/updates/",
                    projectId = "8ffc8e6d-93d9-4bc2-a48e-238f27efae9e",
                    publicKey =
                        "<RSAKeyValue><Modulus>z6FnsZcLX3Cl864s1x/8fR8/Mg1kIJIiFBouMUdRpMxe13t5J/B4S3obzr94oQgjiXR/09vjKUQdoAsUm1AwxjI+7TkR3TEnu2HHEw2O8e4gkbfnwHqODtSWuHzsIxFnhhYcmVWfY/eRniilfnUBb6bcVomFUxwQFfAqXl8vC58iVjIW+4Ir05qTTH3KIf24J+ADoLYuX0rQD6wCdfmWCII7QuqkN7NBfmoq1G2Ol5p366ILnANMdz+3n+u6lkkjl+RVEAoG/pDaRIbSnb52k0p517Cb1N4D3zfr3cftYLKQImDAc9xtC9V8F2nVdjTz05pooZuONrg8J7lmwkYER1+xDnzAg4hL0g2jefjsbrlUuvs0/nIff8DKGsqkAzg/Qg5ylYdQ/lrge6tdISrIql1PZY6qo6VlllCDn8yLhpdZfUuBMEdVrW0xLo7qWZ8Y9dHsO2It52BtvAtEpKwwPOLyL9PTU+A9DnbdSgVckdDye8dVgcZeApsrIf1qWRJyqcdXjP9Y4pKefYcBizCIjL4gGUQilR5I7WsqXfAwPkqEcWCPtaBrX8jb9JmGqY0aUH7FDYdoK0kmkaM2PGiSMaugTnfcs0HUFStj4Liaz7I0b3zM+sN7sx/dW/0KYDXCNZWVxFndcG9aZk/0umaA7q+ISITadaY+axa3DsVwelU=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>",
                    releaseFilter =
                    {
                        checkForFinal = true,
                        checkForBeta  = true,
                        checkForAlpha = true
                    },
                    restartApplication       = true,
                    autoCloseHostApplication = true,
                    retrieveHostVersion      = true,
                    Language = Languages.Auto
                };

                if (updController.checkForUpdates())
                {
                    updController.updateInteractive(this);
                }
            }
        }
예제 #2
0
 public static void Update()
 {
     updController.updateInteractive();
 }