Beispiel #1
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------
        private void OnRowSelected()
        {
            if (machineStatesLogList.Count <= MachineStatesLogTable.IndexPathForSelectedRow.Row)
            {
                return;
            }

            Application.StopUpdateTimer();
            MachineStatesLogElement element = machineStatesLogList[MachineStatesLogTable.IndexPathForSelectedRow.Row];

            if (Application.selectedMachine.camBridgeMac != 0)
            {
                CamController.selectedCamTime = element.timeStart;
                NavigationController?.PushViewController(Storyboard?.InstantiateViewController("CamController"), true);
            }
            else
            {
                string str = element.description + "\n\n" + element.timeStart;
                if (element.timeEnd != DateTime.MinValue)
                {
                    str += " - \n" + element.timeEnd;
                }

                str += "\n" + element.userName;

                UIAlertController alert = UIAlertController.Create(element.state.name, str, UIAlertControllerStyle.Alert);

                // Configure the alert
                alert.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, (action) => { Application.StartUpdateTimer(CheckNewData); }));

                // Display the alert
                PresentViewController(alert, true, null);
            }
        }
Beispiel #2
0
        //----------------------------------------------------------------------------------------------------------------------------------------------------------------------
        private void OnRowSelected()
        {
            if (machineStatesLogList.Count <= MachineStatesLogTable.IndexPathForSelectedRow.Row)
            {
                return;
            }

            StopUpdateTimer();
            MachineStatesLogElement element = machineStatesLogList[MachineStatesLogTable.IndexPathForSelectedRow.Row];

            string str = element.description + "\n\n" + element.timeStart;

            if (element.timeEnd != DateTime.MinValue)
            {
                str += " - \n" + element.timeEnd;
            }

            str += "\n" + element.userName;

            UIAlertController alert = UIAlertController.Create(element.state.name, str, UIAlertControllerStyle.Alert);

            // Configure the alert
            alert.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, (action) => { StartUpdateTimer(); }));

            // Display the alert
            PresentViewController(alert, true, null);
        }