Пример #1
0
        private void cascadelist()
        {
            DataTable fr = GetCascadeList._getcascadelist();

            //  dataSet1.Tables.Add(fr);
            Data.profileNames = new List <string>();
            for (int i = 0; i <= fr.Rows.Count - 1; i++)
            {
                Data.profileNames.Add(fr.Rows[i]["Setting Name"].ToString());
            }
        }
Пример #2
0
        private void _cascadeStatus()
        {
            DataTable ccs = GetCascadeList._getcascadelist();

            Data._cascadeStatus = new List <string>();
            for (int i = 0; i <= ccs.Rows.Count - 1; i++)
            {
                if (ccs.Rows[i]["Setting Name"].ToString().Contains(Data.SettingName))
                {
                    Data._cascadeStatus.Add(ccs.Rows[i]["Status"].ToString());
                }
            }
            for (int d = 0; d <= Data._cascadeStatus.Count - 1; d++)
            {
                if (Data._cascadeStatus[d].Contains("Online (Established)"))
                {
                    Data._cscdC = true;
                }
                else
                {
                    Data._cscdC = false;
                }
            }
        }