Ejemplo n.º 1
0
 public FromEmailAddressStrategy(SetUpDAL dbIn, string user)
     : base(dbIn, user)
 {
     base.fieldName = SetupEnum.FromEmailAddress.ToString();
     base.description = "*Email: From Email Address";
     base.type = EnumTypes.EmailAddress;
     base.value = "Enter Your FROM email Address";
 }
Ejemplo n.º 2
0
        public DefaultPageSizeStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            //This is the field name
            base.fieldName = SetupEnum.DefaultPageSize.ToString();

            //This is the description the item has
            base.description = "*Misc: Default No of Records per screen";

            //This is the type of the item
            base.type = EnumTypes.Integer;

            //This is the initial value.
            base.value = "10";
        }
Ejemplo n.º 3
0
        public NidaStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            //This is the field name
            base.fieldName = SetupEnum.Nida.ToString();

            //This is the description the item has
            base.description = "Nida: For Testomg";

            //This is the type of the item
            base.type = EnumTypes.String;

            //This is the initial value.
            base.value = "Nida Test";
        }
Ejemplo n.º 4
0
        public BccMailStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            //This is the field name
            base.fieldName = SetupEnum.BccEmailAddress.ToString();

            //This is the description the item has
            base.description = "Email: BCC Email Address -Address where you receive blind emails eg. Login emails";

            //This is the type of the item
            base.type = EnumTypes.String;

            //This is the initial value.
            base.value = "";
        }
        public EmailTestingDirectoryStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            //This is the field name
            base.fieldName = SetupEnum.EmailTestingDirectory.ToString();

            //This is the description the item has
            base.description = "Email Testing Directory: Test emails land here.";

            //This is the type of the item
            base.type = EnumTypes.FilePath;

            //This is the initial value.
            base.value = @"c:\TestEmails\";
        }
        public ShowStartUpScreenOnStartupStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            /// <summary>
            /// You must set these field correctly
            /// </summary>
            ///
            //This is the field name
            base.fieldName = SetupEnum.ShowStartUpScreenOnStartup.ToString();

            //This is the description the item has
            base.description = "*Misc: Show Startup Screen on Start Up?";

            //This is the type of the item
            base.type = EnumTypes.Boolean;

            //This is the initial value.
            base.value = "true";
        }
Ejemplo n.º 7
0
        public IsSendBccStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            /// <summary>
            /// You must set these field correctly
            /// </summary>
            ///
            //This is the field name
            base.fieldName = SetupEnum.IsSendBcc.ToString();

            //This is the description the item has
            base.description = "*Email: Do you want BCC messages?";

            //This is the type of the item
            base.type = EnumTypes.Boolean;

            //This is the initial value.
            base.value = "true";
        }
Ejemplo n.º 8
0
        public SendGridOrSmtpStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            /// <summary>
            /// You must set these field correctly
            /// </summary>
            ///
            //This is the field name
            base.fieldName = SetupEnum.SendGridOrSmtp.ToString();

            //This is the description the item has
            base.description = "*Email: Use SMTP or Sendgrid";

            //This is the type of the item
            base.type = EnumTypes.EmailingMethod;

            //This is the initial value.
            base.value = "SMTP";
        }
Ejemplo n.º 9
0
        public WebsiteUrlStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            /// <summary>
            /// You must set these field correctly
            /// </summary>
            ///
            //This is the field name
            base.fieldName = SetupEnum.WebsiteUrl.ToString();

            //This is the description the item has
            base.description = "*Misc: Your website URL";

            //This is the type of the item
            base.type = EnumTypes.String;

            //This is the initial value.
            base.value = "Add Website Url";
        }
Ejemplo n.º 10
0
        public SendGridUserNameStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            /// <summary>
            /// You must set these field correctly
            /// </summary>
            ///
            //This is the field name
            base.fieldName = SetupEnum.SendGridUserName.ToString();

            //This is the description the item has
            base.description = "Email SendGrid: sendgrid.com User Name ";

            //This is the type of the item
            base.type = EnumTypes.String;

            //This is the initial value.
            base.value = "Enter Your sendgrid.com UserName";
        }
Ejemplo n.º 11
0
        public SmtpPasswordStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            /// <summary>
            /// You must set these field correctly
            /// </summary>
            ///
            //This is the field name
            base.fieldName = SetupEnum.SmtpPassword.ToString();

            //This is the description the item has
            base.description = "Email SMTP: Smtp Password";

            //This is the type of the item
            base.type = EnumTypes.String;

            //This is the initial value.
            base.value = "SmtpUser";
        }
Ejemplo n.º 12
0
        public CompanyNameSetupStrategy(SetUpDAL dbIn, string user)
            : base(dbIn, user)
        {
            //This is the field name
            base.fieldName = SetupEnum.CompanyName.ToString();

            //This is the description the item has
            base.description = "Misc: Company Name";

            //This is the type of the item
            base.type = EnumTypes.String;

            string theValue = ValueDb();

            if (string.IsNullOrEmpty(theValue))
                base.value = "Sample Company";
            else
                base.value = theValue;

            this.Memory = theValue;
        }
Ejemplo n.º 13
0
 public SetupInitialize(ApplicationDbContext dbIn, string user)
 {
     db=dbIn;
     repo = new SetUpDAL(db, user);
 }
Ejemplo n.º 14
0
 //------------------------------------------------------------------------------------------------------------
 /// <summary>
 /// This is the constructor. All the variables are initialized here.
 /// </summary>
 public SetUpsController()
 {
     db = new ApplicationDbContext();
     userName = AliKuli.GetSet.Name(User);
     repo = new SetUpDAL(db, userName);
 }
Ejemplo n.º 15
0
 public UnknownStrategy(SetUpDAL dbIn, string user)
     : base(dbIn, user)
 {
 }
Ejemplo n.º 16
0
 public SetupContext(SetUpDAL setupDALin,string user)
 {
     this.setupDAL = setupDALin;
     this.user = user;
 }
Ejemplo n.º 17
0
 public SetupStrategyAbstract(SetUpDAL repo, string user)
 {
     this.repo = repo;
 }