Пример #1
0
        public override DMIState AddNewState(string name)
        {
            RawDmiState raw = RawDmiState.Default(name);

            DmiEXImage[,] images = new DmiEXImage[1, 1];
            images[0, 0]         = (DmiEXImage)CreateEmptyImage();

            DmiEXState dmiState = new DmiEXState(this, images, raw);

            return(AddState(dmiState));
        }
Пример #2
0
        public object Clone()
        {
            DmiEX newDmiex = new DmiEX(Version, Width, Height);

            foreach (var state in States)
            {
                DmiEXState dmiExState = (DmiEXState)state;
                newDmiex.AddState((DmiEXState)dmiExState.Clone());
            }
            return(newDmiex);
        }
Пример #3
0
        public static DmiEX FromDmi(Dmi dmi)
        {
            DmiEX dmiEx = new DmiEX(dmi.Version, dmi.Width, dmi.Height);

            foreach (var state in dmi.States)
            {
                dmiEx.AddState(DmiEXState.FromDmiState(dmiEx, state));
            }

            return(dmiEx);
        }