/// <summary>
        /// 创建拓扑(此前需保证变换器的参数已配置好)
        /// </summary>
        /// <param name="name">拓扑名</param>
        public void CreateTopology(string name)
        {
            switch (name)
            {
            case "SRC":
                Topology = new SRC(this);
                break;

            case "LLC":
                Topology = new LLC(this);
                break;

            case "TL_LLC":
                Topology = new TL_LLC(this);
                break;

            case "HB_TL_LLC":
                Topology = new HB_TL_LLC(this);
                break;

            case "DTCSRC":
                Topology = new DTCSRC(this);
                break;

            default:
                Topology = null;
                break;
            }
        }
示例#2
0
        private void frm_LoadCombination_Load(object sender, EventArgs e)
        {
            LOAD_COMB_TEXT = new List <string>();
            Restore_Default_Loads();

            LONG_GIRDER_LL_TXT();

            LLC.Clear();

            LLC.AddRange(LoadData.GetLiveLoads(long_ll));

            for (int i = 0; i < LLC.Count; i++)
            {
                lst_design_loads.Items.Add(LLC[i].Code);
                if (lst_default_loads.Items.Contains(LLC[i].Code))
                {
                    lst_default_loads.Items.Remove(LLC[i].Code);
                }
            }

            //dgv_loads_comb = dgv_loads;
            List <string> ll       = new List <string>();
            List <string> lst_spcs = new List <string>();

            for (int i = 0; i < dgv_loads.ColumnCount; i++)
            {
                lst_spcs.Add("");
            }
            string kStr = "";


            for (int i = 0; i < dgv_loads.Rows.Count; i++)
            {
                kStr = "";
                for (int c = 0; c < dgv_loads.ColumnCount; c++)
                {
                    kStr += dgv_loads[c, i].Value.ToString() + ",";
                }

                ll.Add(kStr);
            }
            LOAD_COMB_TEXT = ll;
            Filled_Type_LoadData(dgv_loads_comb);

            Set_Combination();
        }
示例#3
0
        private List <object> ParametrosC()
        {
            List <object> _param = new List <object>()
            {
            };

            _param.Add(Leis);                      //0
            _param.Add(Leis_Comp);                 //1
            _param.Add(Decretos);                  //2
            _param.Add(DataI.ToShortDateString()); //3
            _param.Add(DataF.ToShortDateString()); //4
            if (Resumo == string.Empty)
            {
                _param.Add("%");
            }
            else
            {
                _param.Add(Resumo);                                               //5
            }
            if (GetSituacao == 0)
            {
                _param.Add("%");
            }
            else
            {
                _param.Add(GetSituacao.ToString());                                         //6
            }
            if (GetOrigem == 0)
            {
                _param.Add("%");
            }
            else
            {
                _param.Add(GetOrigem.ToString());                                       //7
            }
            if (Autor == string.Empty)
            {
                _param.Add("%");
            }
            else
            {
                _param.Add(Autor);                                              //8
            }
            if (LLC == 0)
            {
                _param.Add("%");
            }
            else
            {
                _param.Add(LLC.ToString());                                 //9
            }
            if (DEC == 0)
            {
                _param.Add("%");
            }
            else
            {
                _param.Add(DEC.ToString());                                 //10
            }
            return(_param);
        }