private DataGridViewRow AddAPkgFlagsRow(string RepoName, string XmlData)
        {
            DataGridViewCheckBoxCell Buildi586 = new DataGridViewCheckBoxCell(true), Publishi586 = new DataGridViewCheckBoxCell(true),
                                     Build64 = new DataGridViewCheckBoxCell(true), Publish64 = new DataGridViewCheckBoxCell(true);
            DataGridViewTextBoxCell RepoCell = new DataGridViewTextBoxCell();

            RepoCell.Value       = RepoName;
            RepoCell.ToolTipText = RepoName;

            Buildi586.Value   = ReadXml.GetChkState(XmlData, "package", "build", RepoName, "i586");
            Build64.Value     = ReadXml.GetChkState(XmlData, "package", "build", RepoName, "x86_64");
            Publishi586.Value = ReadXml.GetChkState(XmlData, "package", "publish", RepoName, "i586");
            Publish64.Value   = ReadXml.GetChkState(XmlData, "package", "publish", RepoName, "x86_64");
            Buildi586.Tag     = "i586";
            Build64.Tag       = "x86_64";
            Publishi586.Tag   = "i586";
            Publish64.Tag     = "x86_64";
            ChangeChkColor(ref Buildi586, RepoName, false, string.Empty);
            ChangeChkColor(ref Build64, RepoName, false, string.Empty);
            ChangeChkColor(ref Publishi586, RepoName, false, string.Empty);
            ChangeChkColor(ref Publish64, RepoName, false, string.Empty);
            DataGridViewRow TheRow = new DataGridViewRow();

            TheRow.Cells.AddRange(RepoCell, Buildi586, Publishi586, Build64, Publish64);
            return(TheRow);
        }
Exemplo n.º 2
0
        private void ChkBxStates()
        {
            string XmlData = File.ReadAllText(VarGlobale.MetaPrjXmlFs);

            this.ChkBxI586Build.CheckState     = ReadXml.GetChkState(XmlData, "project", "build", this.LblDistro.Text, "i586");
            this.ChkBxX86_64Build.CheckState   = ReadXml.GetChkState(XmlData, "project", "build", this.LblDistro.Text, "x86_64");
            this.ChkBxI586Publish.CheckState   = ReadXml.GetChkState(XmlData, "project", "publish", this.LblDistro.Text, "i586");
            this.ChkBxX86_64Publish.CheckState = ReadXml.GetChkState(XmlData, "project", "publish", this.LblDistro.Text, "x86_64");
        }