public void bookingModeSetting(BookingMode mode) { this.bookingMode_ = mode; if (mode == BookingMode.Booking) { this.item_nameTxb_.IsReadOnly = false; this.item_nameTxb_.Foreground = Brushes.Black; this.notionalTxb_.IsReadOnly = false; this.notionalTxb_.Foreground = Brushes.Black; this.remainNotionalTxb_.IsReadOnly = true; this.remainNotionalTxb_.Foreground = Brushes.Gray; } else { this.item_nameTxb_.IsReadOnly = true; this.item_nameTxb_.Foreground = Brushes.Gray; this.notionalTxb_.IsReadOnly = true; this.notionalTxb_.Foreground = Brushes.Gray; this.remainNotionalTxb_.IsReadOnly = false; this.remainNotionalTxb_.Foreground = Brushes.Black; } }