Esempio n. 1
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            SeatClient.OperateResult.SystemObject clientobject = SeatClient.OperateResult.SystemObject.GetInstance();
            SeatFormImageBrush imageBrush = SeatFormImageBrush.GetInstance(clientobject.ClientSetting.DeviceSetting.BackImgage);

            SeatManage.EnumType.OrnamentType noteType = (SeatManage.EnumType.OrnamentType)value;
            switch (noteType)
            {
            case SeatManage.EnumType.OrnamentType.AirConditioning:
                return(imageBrush.NoteAirConditioning);

            case SeatManage.EnumType.OrnamentType.Bookshelf:
                return(imageBrush.NoteBookshelf);

            case SeatManage.EnumType.OrnamentType.Door:
                return(imageBrush.NotenoteDoor);

            case SeatManage.EnumType.OrnamentType.PCTable:
                return(imageBrush.NotePCTableg);

            case SeatManage.EnumType.OrnamentType.Pillar:
                return(imageBrush.NotePillar);

            case SeatManage.EnumType.OrnamentType.Plant:
                return(imageBrush.NotePlant);

            case SeatManage.EnumType.OrnamentType.Roundtable:
                return(imageBrush.NoteRoundtable);

            case SeatManage.EnumType.OrnamentType.Steps:
                return(imageBrush.NoteSteps);

            case SeatManage.EnumType.OrnamentType.Table:
                return(imageBrush.NoteTable);

            case SeatManage.EnumType.OrnamentType.Wall:
                return(imageBrush.NoteWall);

            case SeatManage.EnumType.OrnamentType.Window:
                return(imageBrush.NoteWindow);

            case SeatManage.EnumType.OrnamentType.Elevator:
                return(imageBrush.NoteElevator);

            case SeatManage.EnumType.OrnamentType.Stairway:
                return(imageBrush.NoteStairway);

            default:
                return(imageBrush.Noteblank);
            }
        }
        public ImageBrush NoteImage(SeatManage.EnumType.OrnamentType noteType)
        {
            SeatClientV2.OperateResult.SystemObject clientobject = SeatClientV2.OperateResult.SystemObject.GetInstance();
            SeatFormImageBrush imageBrush = SeatFormImageBrush.GetInstance(clientobject.ClientSetting.DeviceSetting.BackImgage);
            ImageBrush         imgNote    = new ImageBrush();

            switch (noteType)
            {
            case SeatManage.EnumType.OrnamentType.AirConditioning:
                imgNote.ImageSource = imageBrush.NoteAirConditioning.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Bookshelf:
                imgNote.ImageSource = imageBrush.NoteBookshelf.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Door:
                imgNote.ImageSource = imageBrush.NotenoteDoor.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.PCTable:
                imgNote.ImageSource = imageBrush.NotePCTableg.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Pillar:
                imgNote.ImageSource = imageBrush.NotePillar.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Plant:
                imgNote.ImageSource = imageBrush.NotePlant.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Roundtable:
                imgNote.ImageSource = imageBrush.NoteRoundtable.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Steps:
                imgNote.ImageSource = imageBrush.NoteSteps.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Table:
                imgNote.ImageSource = imageBrush.NoteTable.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Wall:
                imgNote.ImageSource = imageBrush.NoteWall.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Window:
                imgNote.ImageSource = imageBrush.NoteWindow.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Elevator:
                imgNote.ImageSource = imageBrush.NoteElevator.ImageSource;
                break;

            case SeatManage.EnumType.OrnamentType.Stairway:
                imgNote.ImageSource = imageBrush.NoteStairway.ImageSource;
                break;
            }
            return(imgNote);
        }