Example #1
0
        /// ------------------------------------------------------------------------------------
        private static bool AskUserToVerifyRemovingFieldEverywhere(string id)
        {
            var msg = LocalizationManager.GetString("CommonToMultipleViews.FieldsAndValuesGrid.VerifyDeleteFieldQuestion",
                                                    "Do you want to delete the field '{0}' and its contents from the entire project?");

            using (var dlg = new DeleteMessageBox(string.Format(msg, id)))
                return(dlg.ShowDialog() == DialogResult.OK);
        }
        public bool DeleteMessage()
        {
            DeleteMessageBox dbox = new DeleteMessageBox();

            dbox.ParentContainer = this;
            dbox.ShowDialog();
            var result = CanDelete;

            CanDelete = false;
            return(result);
        }