Example #1
0
        private void WiegenButton_Click(object sender, EventArgs e)
        {
            try
            {
                weight = WSWmsHelper.GetGrossWeight(transportOrderAidID.ToString());
            }
            catch (Exception)
            {
                Log.Write(this,
                          $"Problem at WiegenButton in TransportOrderDetails, transportOrderAidID = {transportOrderAidID}",
                          Log.DebugLevels.ERROR);
            }

            if (string.IsNullOrEmpty(weight))
            {
                gewichtTextView.SetBackgroundColor(Color.Yellow);
                gewichtTextView.Text = "Fehler beim Wiegen!";
            }
            else
            {
                gewichtTextView.SetBackgroundColor(Color.LightGreen);
                gewichtTextView.Text = weight;
            }

            if (fotoButton.Visibility == ViewStates.Visible)
            {
                fotoButton.Enabled = true;
                hintTextView.Text  = GetString(Resource.String.hintPressFoto);
            }
        }