Example #1
0
        private void RefreshPackage(int nPkgKey, ArrayList arrOldPkgKeys)
        {
            ReqTreeNode reqTreeNode;
            int         nPackageCount;

            formProgressReqTree = new FormProgressReqTree();
            formProgressReqTree.Show();

            reqDBBrowser.RemovePkgs(arrOldPkgKeys);
            reqTreeNode = reqDBBrowser.ReadReqTree(out nPackageCount, nPkgKey);
            treeViewRq.ReplaceActualTree(reqTreeNode);
            formProgressReqTree.Dispose();
            formProgressReqTree = null;
        }
Example #2
0
        private void toolStripButtonRefresh_Click(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;

            formProgressReqTree = new FormProgressReqTree();
            formProgressReqTree.Show();

            CleanupViews();
            reqDBBrowser.RefreshProject();

            Cursor = Cursors.Default;
            CreateReqTree();
            formProgressReqTree.Dispose();
            formProgressReqTree = null;
        }
Example #3
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormOpenProject fmOpenProject;

            System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent();
            string [] astrName;
            string    strName = "";

            astrName = System.Security.Principal.WindowsIdentity.GetCurrent().Name.Split('\\');
            if (astrName.GetUpperBound(0) >= 1)
            {
                strName = astrName [1];
            }
            fmOpenProject = new FormOpenProject(
                reqDBBrowser.GetProjectCatalog(), "",
                reqDBBrowser.ProjectFileFromProject,
                strName);
            if (fmOpenProject.ShowDialog() == DialogResult.OK)
            {
                string strErrDiag;
                formProgressReqTree = new FormProgressReqTree();
                formProgressReqTree.Show();
                if (reqDBBrowser.OpenProject(fmOpenProject.strProjectFile,
                                             fmOpenProject.strUser,
                                             fmOpenProject.strPassword,
                                             out strErrDiag))
                {
                    CreateReqTree();
                }
                else
                {
                    MessageBox.Show(strErrDiag, "Error Open Project", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                formProgressReqTree.Dispose();
                formProgressReqTree = null;
            }
        }