Пример #1
0
        private void addToMenu(TabloidConfigView t)
        {
            if (!chkAjMenu.Checked)
            {
                return;
            }

            if (radMnMain.Checked)
            {
                WizardSQLHelper.AddToMenu(this, t);
            }
            else
            {
                WizardSQLHelper.AddToParamMenu(t, this);
            }
        }
Пример #2
0
        private void Info_CloseFromNext(object sender, PageEventArgs e)
        {
            Program.AppSet.smsBoxPassword = txtPass.Text;
            Program.AppSet.smsBoxUser     = txtUser.Text;

            Tabloid.Classes.Config.Helper.AutomaticViewBuilder.setTextes(Program.AppSet.Schema);

            if (chkAlert.Checked)
            {
                var alertMn = new TabloidConfigMenuItem {
                    Titre = Properties.Resources.Alert,
                    Type  = TabloidConfigMenuItem.MenuType.Simple
                };

                WizardSQLHelper.AddToMenu(this, alertMn, null, true);

                WizardSQLHelper.AddToMenu(this, new TabloidConfigMenuItem
                {
                    Titre = Properties.Resources.SimpleSMS,
                    Type  = TabloidConfigMenuItem.MenuType.Sms
                }, alertMn, true);

                WizardSQLHelper.AddToMenu(this, new TabloidConfigMenuItem
                {
                    Titre = Properties.Resources.MultiSMS,
                    Type  = TabloidConfigMenuItem.MenuType.Filtre,
                    Table = _view.Nom
                }, alertMn, true);
            }
            if (chkText.Checked)
            {
                WizardSQLHelper.AddToParamMenu(this, new TabloidConfigMenuItem
                {
                    Titre = Properties.Resources.PreDefineText,
                    Type  = TabloidConfigMenuItem.MenuType.TxtSms
                }, true);
            }
        }