コード例 #1
0
        private void ShowWarning()
        {
            ShowMsg sm = new ShowMsg(ShowMsg.ButtonStyle.OK);

            sm.Message = "WARNING!!!.  This editor does not provide any data validation.  Data will be stored as entered.  If you enter the wrong format (i.e. text in a datetime column), programs using this data may experience unpredictable results.\n\r\n\r\nIMPORTANT!!! Enter datetime columns as yyyy-mm-dd hh:mm:ss.\n\r\n\r\nPress 'Ok' to continue.";
            sm.ShowDialog();
            if (sm.DoNotShow)
            {
                MainForm.cfg.SetSetting(Config.CFG_ROWEDITWARN, "true");
            }
        }
コード例 #2
0
        private bool ShowWarning()
        {
            ShowMsg sm = new ShowMsg();

            sm.Message = "WARNING!!!.  Depending on the size of your database, the Analyzer may take several minutes to several hours to execute.  Additionally, it will create a table in your database containing key statistics related to the data in your database.\r\n\r\nPress 'Ok' to continue or 'Cancel' to exit.";
            sm.ShowDialog();
            if (sm.DoNotShow)
            {
                MainForm.cfg.SetSetting(Config.CFG_ANALYZEWARN, "true");
            }
            return(sm.Result == DialogResult.Cancel ? false : true);
        }
コード例 #3
0
        private bool ShowWarning()
        {
            ShowMsg sm = new ShowMsg();

            sm.Message = "WARNING!!!.  This feature is not natively supported by SQLite.  It is implemented by copying the table with column changes, deleting the old table and renaming the copied table.  Once complete, YOU MUST MANUALLY CHANGE ANY INDEX, VIEW OR TRIGGER CONTAINING THIS COLUMN!!!. IF YOU DO NOT DO THIS YOU MAY LEAVE YOUR INDEX, VIEW OR TRIGGER IN AN INCONSISTENT STATE!!!\r\n\r\nPress 'Ok' to continue or 'Cancel' to exit.";
            sm.ShowDialog();
            if (sm.DoNotShow)
            {
                MainForm.cfg.SetSetting(Config.CFG_COLUMNEDITWARN, "true");
            }
            return(sm.Result == DialogResult.Cancel ? false : true);
        }