Inheritance: OverlayForm
Exemplo n.º 1
0
 private void InitWebSocket()
 {
     InputForm iform = new InputForm(this);
     iform.Title = "WebSocket Host Configuration";
     iform.Label = "Enter Device Endpoint(ex: wss://192.168.1.13:12345/remote_pay)";
     iform.Value = ((WebSocketCloverDeviceConfiguration)WebSocketConfig).endpoint;
     iform.FormClosed += WSForm_Closed;
     iform.Show();
 }
Exemplo n.º 2
0
 private void InitWebSocket()
 {
     InputForm iform = new InputForm(this);
     iform.Title = "WebSocket Host Configuration";
     iform.Label = "Enter Device IP:Port(ex: 10.0.1.13:8080)";
     iform.Value = ((WebSocketCloverDeviceConfiguration)WebSocketConfig).hostname + ":" + ((WebSocketCloverDeviceConfiguration)WebSocketConfig).port;
     iform.FormClosed += WSForm_Closed;
     iform.Show();
 }
Exemplo n.º 3
0
 private void InitLocalWebSocket()
 {
     InputForm iform = new InputForm(this);
     iform.Title = "WebSocket Port Configuration";
     iform.Label = "Enter Port (e.g. 8889)";
     iform.Value = ""+((RemoteWebSocketCloverConfiguration)RemoteWebSocketConfig).port;
     iform.FormClosed += WSRemoteForm_Closed;
     iform.Show();
 }
        private void InitLocalWebSocket()
        {
            InputForm iform = new InputForm(this);

            iform.Title       = "WebSocket Port Configuration";
            iform.Label       = "Enter Port (e.g. 8889)";
            iform.Value       = "" + ((RemoteWebSocketCloverConfiguration)RemoteWebSocketConfig).port;
            iform.FormClosed += WSRemoteForm_Closed;
            iform.Show();
        }
        private void InitWebSocket()
        {
            InputForm iform = new InputForm(this);

            iform.Title       = "WebSocket Host Configuration";
            iform.Label       = "Enter Device IP:Port(ex: 10.0.1.13:8080)";
            iform.Value       = ((WebSocketCloverDeviceConfiguration)WebSocketConfig).hostname + ":" + ((WebSocketCloverDeviceConfiguration)WebSocketConfig).port;
            iform.FormClosed += WSForm_Closed;
            iform.Show();
        }
Exemplo n.º 6
0
        private void WebSocketMenuItem_Click(object sender, EventArgs e)
        {
            InputForm iform = new InputForm();

            iform.Title       = "WebSocket Host Configuration";
            iform.Label       = "Enter Device IP:Port(ex: 10.0.1.13:8080)";
            iform.Value       = ((WebSocketCloverDeviceConfiguration)WebSocketConfig).hostname + ":" + ((WebSocketCloverDeviceConfiguration)WebSocketConfig).port;
            iform.FormClosed += WSForm_Closed;
            iform.Show();
        }
        private void TipAdjustButton_Click(object sender, EventArgs e)
        {
            InputForm inputForm = new InputForm(this);
            inputForm.Label = "Enter Tip Amount";
            inputForm.Title = "Adjust Tip Amount";
            inputForm.FormClosed += (object s, FormClosedEventArgs ce) =>
            {
                if (inputForm.Status == DialogResult.OK)
                {
                    string tipValue = inputForm.Value;
                    try
                    {
                        int tipAmount = int.Parse(tipValue);
                        TipAdjustAuthRequest taRequest = new TipAdjustAuthRequest();

                        if (OrderPaymentsView.SelectedItems.Count == 1)
                        {
                            POSPayment posPayment = OrderPaymentsView.SelectedItems[0].Tag as POSPayment;

                            taRequest.OrderID = posPayment.OrderID;
                            taRequest.PaymentID = posPayment.PaymentID;
                            taRequest.TipAmount = tipAmount;

                            cloverConnector.TipAdjustAuth(taRequest);
                        }

                    }
                    catch (Exception)
                    {
                        AlertForm.Show(this, "Invalid Value", "Invalid tip amount: " + tipValue + " Format of 625 expected.");
                    }
                }
            };
            inputForm.Show(this);
        }
 private void WebSocketMenuItem_Click(object sender, EventArgs e)
 {
     InputForm iform = new InputForm();
     iform.Title = "WebSocket Host Configuration";
     iform.Label = "Enter Device IP:Port(ex: 10.0.1.13:8080)";
     iform.Value = ((WebSocketCloverDeviceConfiguration)WebSocketConfig).hostname + ":" + ((WebSocketCloverDeviceConfiguration)WebSocketConfig).port;
     iform.FormClosed += WSForm_Closed;
     iform.Show();
 }