Example #1
0
        private void BTN_ECompilePackageRootEditorFinished_Click(object sender, EventArgs e)
        {
            GB_PackageRootEditor.Visible = false;
            GB_PackageRootEditor.SendToBack();
            BTN_ECompile.Enabled = true;
            BTN_ECompile.Visible = true;

            // Now let's store all this useless, I mean useful, information in the
            // PackageRoot Storage.
            ECompileCFG.RemoveAllPackageRootItems();
            foreach (DataGridViewRow CurrentRow in DGV_PackageRoot.Rows)
            {
                if (CurrentRow.Cells["PackageRootPath"].Value != null)
                {
                    ECompileCFG.AddPackageRootItem(CurrentRow.Cells["PackageRootPath"].Value.ToString());
                }
            }

            // After all is said and done, let's erase the Data, since no longer needed.
            // This will help ensure variables are loaded correctly after loading a new cfg
            // without a lot of kludging around.
            DGV_PackageRoot.Rows.Clear();
        }