void ReleaseDesignerOutlets()
        {
            if (HistoryGraph != null)
            {
                HistoryGraph.Dispose();
                HistoryGraph = null;
            }

            if (InventoryIDLabel != null)
            {
                InventoryIDLabel.Dispose();
                InventoryIDLabel = null;
            }

            if (MachineStatesLogTable != null)
            {
                MachineStatesLogTable.Dispose();
                MachineStatesLogTable = null;
            }

            if (SensorSettingsButon != null)
            {
                SensorSettingsButon.Dispose();
                SensorSettingsButon = null;
            }

            if (ServiceButton != null)
            {
                ServiceButton.Dispose();
                ServiceButton = null;
            }
        }
Ejemplo n.º 2
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------
        public void UpdateViewValues()
        {
            InventoryIDLabel.Text = "Инв. №: " + Application.selectedMachine.inventoryID;
            if (Application.selectedMachine.sensors.Count != 0)
            {
                InventoryIDLabel.Text += " (" + BitConverter.ToString(BitConverter.GetBytes(Application.selectedMachine.sensors[0].nodeID), 1, 1)
                                         + BitConverter.ToString(BitConverter.GetBytes(Application.selectedMachine.sensors[0].nodeID), 0, 1) + ")";
            }
            MachineStatesLogTable.ReloadData();

            HistoryGraph.SetNeedsDisplay();
        }