Пример #1
0
        protected void btn_Save_Click(object sender, EventArgs e)
        {
            var s = StorageSetting.Get();

            s.NewsClass      = txt_NewsClass.Text;
            s.NewsPage       = txt_NewsPage.Text;
            s.ImageClass     = txt_ImageClass.Text;
            s.ImagePage      = txt_ImagePage.Text;
            s.QuestionClass  = txt_QuestionClass.Text;
            s.QuestionPage   = txt_QuestionPage.Text;
            s.BookClass      = txt_BookClass.Text;
            s.BookInfo       = txt_BookInfo.Text;
            s.BookChapter    = txt_BookChapter.Text;
            s.BookChapterTxt = txt_BookChapterTxt.Text;
            s.JobClass       = txt_JobClass.Text;
            s.JobPost        = txt_JobPost.Text;
            s.JobCompany     = txt_JobCompany.Text;
            s.MovieClass     = txt_MovieClass.Text;
            s.MovieInfo      = txt_MovieInfo.Text;
            s.MovieBaiduPlay = txt_MovieBaiduPlay.Text;
            s.MovieKuaibPlay = txt_MovieKuaibPlay.Text;
            s.MovieDramaPlay = txt_MovieDramaPlay.Text;

            s.Save();
            Js.AlertAndChangUrl("保存成功!", "StaticStorageSetting.aspx");
        }
Пример #2
0
 public DownloadController(
     ApplicationDbContext context,
     StorageSetting storageSetting)
 {
     _context        = context;
     _storageSetting = storageSetting;
 }
Пример #3
0
 public ProjectsController(UserManager <ApplicationUser> userManager,
                           ApplicationDbContext context,
                           StorageSetting storageSetting,
                           IBuildService buildService)
 {
     _userManager    = userManager;
     _context        = context;
     _storageSetting = storageSetting;
     _buildService   = buildService;
 }
Пример #4
0
 public ProjectsController(
     UserManager <ApplicationUser> userManager,
     ApplicationDbContext context,
     StorageSetting storageSetting,
     ILoggerFactory loggerFactory)
 {
     _userManager    = userManager;
     _context        = context;
     _storageSetting = storageSetting;
     _logger         = loggerFactory.CreateLogger <ProjectsController>();
 }
Пример #5
0
 public DockerBuildService(
     StorageSetting storageSetting,
     BuildSetting buildSetting,
     ILogger <DockerBuildService> logger,
     WebSocketConnectionManager connectionManager)
 {
     _storageSetting    = storageSetting;
     _logger            = logger;
     _connectionManager = connectionManager;
     _dockerSetting     = buildSetting.GetBuildMethodSetting <DockerBuildMethodSetting>();
     _client            = new DockerClientConfiguration(_dockerSetting.ApiUri).CreateClient();
 }
Пример #6
0
 public AdminController(
     SignInManager <ApplicationUser> signInManager,
     UserManager <ApplicationUser> userManager,
     ApplicationDbContext context,
     StorageSetting storageSetting,
     ILoggerFactory loggerFactory)
 {
     _signInManager  = signInManager;
     _userManager    = userManager;
     _context        = context;
     _storageSetting = storageSetting;
     _logger         = loggerFactory.CreateLogger <AccountController>();
 }
Пример #7
0
        public static void Load()
        {
            GlobalSetting.Setting();

            ProductBuySetting.Setting();
            ProductSellSetting.Setting();
            EmployeeSetting.Setting();
            SupplierSetting.Setting();
            SupplierProductSetting.Setting();
            CustomerSetting.Setting();
            OrderBuySetting.Setting();
            OrderSellSetting.Setting();
            ProductOrderSetting.Setting();
            StorageSetting.Setting();
            StorageProductSetting.Setting();
            PersonProductSetting.Setting();
        }
Пример #8
0
        protected void LoadInfo()
        {
            var s = StorageSetting.Get();

            txt_NewsClass.Text      = s.NewsClass;
            txt_NewsPage.Text       = s.NewsPage;
            txt_ImageClass.Text     = s.ImageClass;
            txt_ImagePage.Text      = s.ImagePage;
            txt_QuestionClass.Text  = s.QuestionClass;
            txt_QuestionPage.Text   = s.QuestionPage;
            txt_BookClass.Text      = s.BookClass;
            txt_BookInfo.Text       = s.BookInfo;
            txt_BookChapter.Text    = s.BookChapter;
            txt_BookChapterTxt.Text = s.BookChapterTxt;
            txt_JobClass.Text       = s.JobClass;
            txt_JobPost.Text        = s.JobPost;
            txt_JobCompany.Text     = s.JobCompany;
            txt_MovieClass.Text     = s.MovieClass;
            txt_MovieInfo.Text      = s.MovieInfo;
            txt_MovieBaiduPlay.Text = s.MovieBaiduPlay;
            txt_MovieKuaibPlay.Text = s.MovieKuaibPlay;
            txt_MovieDramaPlay.Text = s.MovieDramaPlay;
        }