Ejemplo n.º 1
0
        void Button4Click(object sender, EventArgs e)
        {
            EventHandler onDownloadFinished = delegate {
                outputTextBox.Text += "\nBuilding resource files...";
                RunBatch(dataBaseDir, "build.bat", delegate {
                    BeginInvoke(new MethodInvoker(delegate {
                        outputTextBox.Text += "\r\nBuilding SharpDevelop...";
                    }));
                    RunBatch(srcDir, "debugbuild.bat", null);
                });
            };

            server.DownloadDatabase(dataBaseDir + "LocalizeDb.mdb", onDownloadFinished);
        }
Ejemplo n.º 2
0
        void DownloadButtonClick(object sender, EventArgs e)
        {
            EventHandler onDownloadFinished = delegate {
                outputTextBox.Text += "\r\nLoading database...";
                Application.DoEvents();

                ResourceDatabase db = ResourceDatabase.Load("LocalizeDb_DL_Corsavy.mdb");
                outputTextBox.Text += "\r\nCreating resource files...";
                Application.DoEvents();
                BuildResourceFiles.Build(db, Path.Combine(srcDir, "../data/resources"),
                                         text => { outputTextBox.Text += "\r\n" + text; Application.DoEvents(); });

                outputTextBox.Text += "\r\nBuilding SharpDevelop...";
                RunBatch(Path.Combine(srcDir, ".."), "debugbuild.bat", null);
            };

            server.DownloadDatabase("LocalizeDb_DL_Corsavy.mdb", onDownloadFinished);
            //onDownloadFinished(null, null);
        }