Example #1
0
        public override string ToString()
        {
            var showBuilder = new StringBuilder();

            showBuilder.AppendLine(KeyBoard.ToString());
            showBuilder.AppendLine(Battery.ToString());
            showBuilder.AppendLine(Screen.ToString());
            return(showBuilder.ToString());
        }
Example #2
0
        public SimCorpMobile()
        {
            __OLEDScreen = new OLEDScreen
            {
                Weight = new Mass <Kilograms, double>(0.188),
                Hight  = new Length <Metres, double>(0.17),
                Width  = new Length <Metres, double>(0.07)
            };

            __keyBoard = new KeyBoard
            {
                KeyBoardCulture = CultureInfo.CurrentCulture
            };

            __battery = new Battery
            {
                BatteryUseDuration = new TimeSpan(10, 30, 0)
            };
        }