ACAT.Lib.Extension.DialogUtils.Toast C# (CSharp) Méthode

Toast() public static méthode

Displays a toast message centered in the parent form.
public static Toast ( String message, int timeout = 2000 ) : void
message String message to display
timeout int how long to display
Résultat void
        public static void Toast(String message, int timeout = 2000)
        {
            var toast = new ToastForm(message, timeout);
            var panel = Context.AppPanelManager.GetCurrentPanel() as Form;

            toast.StartPosition = FormStartPosition.CenterParent;
            toast.ShowDialog(panel);
        }