Exemplo n.º 1
0
        private void ToastZoom()
        {
            toaster.SetDuration(750);
            string message = "";

            if (zoomHelper.Value <= 1.0f)
            {
                message = string.Format("{0:0}%", Math.Round(zoomHelper.Value * 100));
            }
            else if (zoomHelper.Value < 10.0f)
            {
                message = string.Format("{0:0.0}x", Math.Round(zoomHelper.Value, 1));
            }
            else
            {
                message = string.Format("{0:0}x", Math.Round(zoomHelper.Value));
            }

            message = string.Format("Zoom:{0}", message);
            toaster.Show(message);
        }
Exemplo n.º 2
0
 public void ToastMessage(string message, int duration)
 {
     toaster.SetDuration(duration);
     toaster.Show(message);
 }