Exemple #1
0
        private static void AddDeleteAll(UIHelper group)
        {
            var button = AddButton(group, Localize.Settings_DeleteMarkingButton, Click, 600);

            button.textColor = Color.red;

            void Click()
            {
                var messageBox = MessageBoxBase.ShowModal <YesNoMessageBox>();

                messageBox.CaprionText    = Localize.Settings_DeleteMarkingCaption;
                messageBox.MessageText    = Localize.Settings_DeleteMarkingMessage;
                messageBox.OnButton1Click = Сonfirmed;
            }

            bool Сonfirmed()
            {
                MarkupManager.DeleteAll();
                return(true);
            }
        }