Example #1
0
    public T Get(string name)
    {
        if (this.objs.ContainsKey(name) == false)
        {
            return(default(T));
        }
        ObjectInfo info = this.objs[name];

        if (name.Equals("FormSafetyStock0"))
        {
            FormSafetyStock.stockType = 0;
        }
        if (name.Equals("FormSafetyStock1"))
        {
            FormSafetyStock.stockType = 1;
        }
        if (name.Equals("FormAccountRecord") && FormAccountRecord.formAccountRecord != null)
        {
            FormAccountRecord.formAccountRecord.InitTree();
        }
        if (info.Obj != null)
        {
            return(info.Obj);
        }
        else
        {
            info.Obj = info.FuncCreateObject();
            return(info.Obj);
        }
    }