Пример #1
0
 public CostControl(KumasAndIplikWorker Worker)
 {
     InitializeComponent();
     worker = Worker;
     MachineComboBox.Enabled = false;
     FactoryComboBox.Properties.Items.AddRange(worker.FactoryService.Select(null, c => c.FactoryName).ToList());
     GridViewRefresh();
 }
        public DataMonitoringControl(string Machine, KumasAndIplikWorker worker)
        {
            InitializeComponent();
            MachineName = Machine;

            worker.CrashService.Load(null);
            CrashCountChart.DataSource = worker.CrashService.BindingList_();
            MessageBox.Show(worker.CrashService.BindingList_().Count.ToString());
            MessageBox.Show(MachineName);
        }
Пример #3
0
        public VeriGirisControl(KumasAndIplikWorker Worker, string Factory = null)
        {
            InitializeComponent();

            worker = Worker;

            MachineComboBox.Enabled = false;
            if (Factory != null)
            {
                FactoryComboBox.Properties.Items.AddRange(worker.FactoryService.Select(c => c.FactoryName == Factory, c => c.FactoryName).ToList());
            }
            else
            {
                FactoryComboBox.Enabled = false;
            }

            ShiftsComboBox.Properties.Items.AddRange(Enum.GetValues(typeof(Shifts)).Cast <Shifts>().ToList());
            GridViewRefresh();
            CrashTypeControl.Properties.Items.AddRange(Enum.GetValues(typeof(MaintanenceType)).Cast <MaintanenceType>().ToList());
        }
Пример #4
0
 public override XtraUserControl Initialize(string Config, KumasAndIplikWorker Worker)
 {
     throw new NotImplementedException();
 }
 public abstract DevExpress.XtraEditors.XtraUserControl Initialize(string Config, KumasAndIplikWorker Worker);