aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/AppButtons/StartPrintingButton.cs
blob: 4d6050639329e44aa24f2eebbe2c220de186aa3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
using Tango.Integration.Operation;
using Tango.PPC.Common.Notifications;

namespace Tango.PPC.Jobs.AppButtons
{
    public class StartPrintingButton : AppButton
    {
        public StartPrintingButton(RelayCommand command, IMachineOperator op) : base("DYE", command)
        {
            op.StatusChanged += Op_StatusChanged;

            Op_StatusChanged(op, op.Status);
        }

        private void Op_StatusChanged(object sender, MachineStatuses status)
        {
            IsEnabled = (sender as IMachineOperator).CanPrint;
        }
    }
}
pan> #include <google/protobuf/arenastring.h> #include <google/protobuf/generated_message_table_driven.h> #include <google/protobuf/generated_message_util.h> #include <google/protobuf/metadata.h> #include <google/protobuf/repeated_field.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/generated_enum_reflection.h> // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { namespace Diagnostics { } // namespace Diagnostics } // namespace PMR } // namespace Tango namespace Tango { namespace PMR { namespace Diagnostics { namespace protobuf_ValueComponent_2eproto { // Internal implementation detail -- do not call these. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[]; static const ::google::protobuf::uint32 offsets[]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static void InitDefaultsImpl(); }; void AddDescriptors(); void InitDefaults(); } // namespace protobuf_ValueComponent_2eproto enum ValueComponent { Heater1Temp = 0, Heater2Temp = 1, ValueComponent_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, ValueComponent_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool ValueComponent_IsValid(int value); const ValueComponent ValueComponent_MIN = Heater1Temp; const ValueComponent ValueComponent_MAX = Heater2Temp; const int ValueComponent_ARRAYSIZE = ValueComponent_MAX + 1; const ::google::protobuf::EnumDescriptor* ValueComponent_descriptor(); inline const ::std::string& ValueComponent_Name(ValueComponent value) { return ::google::protobuf::internal::NameOfEnum( ValueComponent_descriptor(), value); } inline bool ValueComponent_Parse( const ::std::string& name, ValueComponent* value) { return ::google::protobuf::internal::ParseNamedEnum<ValueComponent>( ValueComponent_descriptor(), name, value); } // =================================================================== // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Diagnostics } // namespace PMR } // namespace Tango namespace google { namespace protobuf { template <> struct is_proto_enum< ::Tango::PMR::Diagnostics::ValueComponent> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Tango::PMR::Diagnostics::ValueComponent>() { return ::Tango::PMR::Diagnostics::ValueComponent_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_ValueComponent_2eproto__INCLUDED