public Cart() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); encrypt = EncryptFactory.CreateEncrypt(); MyOrders = OrdersFactory.CreateOrders(); MyCart = OrdersGoodsTmpFactory.CreateOrdersGoodsTmp(); MyProduct = ProductFactory.CreateProduct(); MyMem = MemberFactory.CreateMember(); Mypackage = PackageFactory.CreatePackage(); MyAddr = MemberAddressFactory.CreateMemberAddress(); MyDelivery = DeliveryWayFactory.CreateDeliveryWay(); MyPayway = PayWayFactory.CreatePayWay(); Mydelierytime = DeliveryTimeFactory.CreateDeliveryTime(); MyInvioce = OrdersInvoiceFactory.CreateOrdersInvoice(); MyFavorFee = PromotionFavorFeeFactory.CreatePromotionFavorFee(); MyCoupon = PromotionFavorCouponFactory.CreatePromotionFavorCoupon(); MyPolicy = PromotionFavorPolicyFactory.CreatePromotionFavorPolicy(); MyGift = PromotionFavorGiftFactory.CreatePromotionFavorGift(); MyCommission = SupplierCommissionCategoryFactory.CreateSupplierCommissionCategory(); MySupplier = SupplierFactory.CreateSupplier(); MyFavor = PromotionFavorFactory.CreatePromotionFavor(); MyLimit = PromotionLimitFactory.CreatePromotionLimit(); MyMemberFavor = MemberFavoritesFactory.CreateMemberFavorites(); pageurl = new PageURL(int.Parse(Application["Static_IsEnable"].ToString())); }
public SampleDetailsPageModel(ISampleConsignService service3, SampleStorageDbContext db2, ISampleUcControler service1, ITools service2) { sampleConsignService = service3; dbSampleStorage = db2; sampleUcControler = service1; tools = service2; }
public Orders() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); encrypt = EncryptFactory.CreateEncrypt(); MyOrders = OrdersFactory.CreateOrders(); Mylog = OrdersLogFactory.CreateOrdersLog(); MyDelivery = DeliveryWayFactory.CreateDeliveryWay(); MyPayway = PayWayFactory.CreatePayWay(); MyProduct = ProductFactory.CreateProduct(); Mypackage = PackageFactory.CreatePackage(); Myorderdelivery = OrdersDeliveryFactory.CreateOrdersDelivery(); MyFavorFee = PromotionFavorFeeFactory.CreatePromotionFavorFee(); MyCoupon = PromotionFavorCouponFactory.CreatePromotionFavorCoupon(); MyBack = OrdersBackApplyFactory.CreateOrdersBackApply(); MyPolicy = PromotionFavorPolicyFactory.CreatePromotionFavorPolicy(); MySupplier = SupplierFactory.CreateSupplier(); Mydelierytime = DeliveryTimeFactory.CreateDeliveryTime(); MyMember = MemberFactory.CreateMember(); MyConsumption = MemberConsumptionFactory.CreateMemberConsumption(); pageurl = new PageURL(int.Parse(Application["Static_IsEnable"].ToString())); MyAccountLog = MemberAccountLogFactory.CreateMemberAccountLog(); MyFavor = PromotionFavorFactory.CreatePromotionFavor(); MyCouponRule = PromotionCouponRuleFactory.CreatePromotionFavorCoupon(); MyInvoice = OrdersInvoiceFactory.CreateOrdersInvoice(); }
public ZhongXin() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = ZhongXinFactory.Create(); MySupplier = SupplierFactory.CreateSupplier(); DBHelper = SQLHelperFactory.CreateSQLHelper(); pub = new Public_Class(); sendmessages = new ZhongXinUtil.SendMessages(); //Supplier_ID = tools.CheckInt(Session["supplier_id"].ToString()); //佣金 CommissionAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccno"]; CommissionAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccnm"]; //交易保证金 GuaranteeAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccno"]; GuaranteeAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccnm"]; }
public Member() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyMember = MemberFactory.CreateMember(); Mygrade = MemberGradeFactory.CreateMemberGrade(); MyMemLog = MemberLogFactory.CreateMemberLog(); encrypt = EncryptFactory.CreateEncrypt(); MyConsumption = MemberConsumptionFactory.CreateMemberConsumption(); MyFavor = MemberFavoritesFactory.CreateMemberFavorites(); MyProduct = ProductFactory.CreateProduct(); MyPackage = PackageFactory.CreatePackage(); MyReview = ProductReviewFactory.CreateProductReview(); MyFeedback = FeedBackFactory.CreateFeedBack(); MyAddr = MemberAddressFactory.CreateMemberAddress(); MyCart = OrdersGoodsTmpFactory.CreateOrdersGoodsTmp(); MyCoupon = PromotionFavorCouponFactory.CreatePromotionFavorCoupon(); // MyEmail = U_EmailNotifyRequestFactory.CreateU_EmailNotifyRequest(); MyAccountLog = MemberAccountLogFactory.CreateMemberAccountLog(); MyShop = SupplierShopFactory.CreateSupplierShop(); pageurl = new PageURL(int.Parse(Application["Static_IsEnable"].ToString())); }
public ProductType() { Tools = ToolsFactory.CreateTools(); DBHelper = SQLHelperFactory.CreateSQLHelper(); MyBrand = BrandFactory.CreateBrand(); MyProductTypeExtend = ProductTypeExtendFactory.CreateProductTypeExtend(); }
public Presenter(IMainForm view, ITools tools, IMessageService message) { _view = view; _tools = tools; _message = message; _view.ApplicationClose += ApplicationClose; _view.Connected += Connection; _view.TableSelected += TableSelect; _view.RowDeleted += RowDeleted; _view.RowChanged += RowChanged; _view.DBCreated += DBCreated; _view.Refreshed += Refreshed; _view.Disconnected += Disconnected; _view.TableCreate += TableCreate; _view.TableCreated += TableCreated; _view.DBDeleted += DBDeleted; _view.TableDeleted += TableDeleted; _view.DBRenamed += DBRenamed; _view.TableRenamed += TableRenamed; _view.RowSearched += RowSearched; _view.DataFiltered += DataFiltered; _view.UploadRows += _view_UploadRows; _view.QueryExecute += _view_QueryExecute; }
// // Constructor // public Helper(GitRepo repo) { _folder = repo._folder; _tools = repo._tools; _debug = repo._debug; _keys = new Dictionary <string, string>(); Help(); }
public ModulePage(ITools tools, object[] arguments) { DataContext = null; Width = 1080; Height = 1590; Loaded += ApplicationPage_Loaded; Tools = tools; Arguments = arguments; }
private void DrawGroup_Click(object sender, EventArgs e) //Выбираем группу { if (toolStripComboBox1.SelectedIndex == -1) { return; } tl = tools[toolStripComboBox1.SelectedIndex + 3]; toolsJob = paintFigure; }
public GenerationSteps(IUserInputProvider userInputProvider, IExecutingPluginAssemblyProvider assemblyProvider, ITools tools, ITimeKeeper timeKeeper, IConsoleWriter consoleWriter, IExceptionFormatter exceptionFormatter) { _userInputProvider = userInputProvider; _assemblyProvider = assemblyProvider; _tools = tools; _timeKeeper = timeKeeper; _consoleWriter = consoleWriter; _exceptionFormatter = exceptionFormatter; }
/// <summary> /// Ctor. /// </summary> /// <param name="tools">ITools instance</param> public WordStatisticRule(ITools tools) { if (tools == null) { throw new ArgumentNullException(nameof(tools)); } _tools = tools; }
public ProductPrice() { Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyMem = MemberFactory.CreateMember(); Myprice = ProductPriceFactory.CreateProductPrice(); Mygrade = MemberGradeFactory.CreateMemberGrade(); }
public ToolsController ( ITools tools, HttpClient client ) { _tools = tools; _client = client; }
formTools toolsJob; //Создаём переменную делегата чтобы заносить в неё методы для отработки private void Form1_Load(object sender, EventArgs e) { gr = pictureBox1.CreateGraphics(); tl = null; tools.Add(null); tools.Add(new Rect.RectCreator()); tools.Add(new Elips.ElipsCreator()); toolsJob = selectFigure; select = new FigureSelect(); }
/// <summary> /// Remove a ToolStripItem from all its instances /// </summary> /// <param name="tools">List of ToolStripItem</param> /// <param name="key">Key to remove the ToolStripItem</param> public static void Remove(this ITools tools, object key) { if (tools is ToolsList) { Remove(tools as ToolsList, key.ToString()); } else { Remove(tools, key); } }
public Addr() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = AddrFactory.CreateAddr(); }
public Logistics() { Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; MyBLL = LogisticsFactory.CreateLogistics(); tools = ToolsFactory.CreateTools(); encrypt = EncryptFactory.CreateEncrypt(); }
public SCMConfig() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); DBHelper = SQLHelperFactory.CreateSQLHelper(); }
/// <summary> /// Adds a new ToolStripItem /// </summary> /// <param name="tools">List of ToolStrip Items</param> /// <param name="toolId">Id of the tool. Empty by default</param> /// <param name="style">Type of ToolStrip Item . Button by default</param> /// <param name="index">Index to insert. 0 by default </param> /// <returns>A new ToolStrip Item</returns> public static ToolStripItem Add(this ITools tools, string toolId = "", ToolbarHelper.ConstantsType style = ToolbarHelper.ConstantsType.ssTypeButton, int index = 0) { if (tools is ToolsList) // If the list belongs to the tools of the toolbar { return(Add(tools as ToolsList, toolId, style, index)); } else // If the list belongs to the menu tools of a ToolStripItem { return(Add(tools as ToolsListMenu, toolId, style, index)); } }
public FriendlyLinkCate() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = FriendlyLinkFactory.CreateFriendlyLinkCate(); }
public OrdersLog() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = OrdersLogFactory.CreateOrdersLog(); }
public SupplierGrade() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = SupplierGradeFactory.CreateSupplierGrade(); }
public ProductAuditReason() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = ProductAuditReasonFactory.CreateProductAuditReason(); }
public Help() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = HelpFactory.CreateHelp(); cate = new HelpCate(); }
public Config() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = ConfigFactory.CreateConfig(); MyReviewconfig = ProductReviewConfigFactory.CreateProductReviewConfig(); }
public DeliveryWay() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = DeliveryWayFactory.CreateDeliveryWay(); addrBLL = AddrFactory.CreateAddr(); }
// // Constructor // public PublishPackage(string repoPath, string packageFilePath, Action <string> logMessageFn, ITools tools = null, bool debug = false) { _repoPath = repoPath; _packageFilePath = packageFilePath; _logMessageFn = logMessageFn; _packageFile = new PackageFile(_packageFilePath); _tools = tools ?? Singletons.Tools; _debug = debug; }
public RBACResource() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = RBACResourceFactory.CreateRBACResource(); MyGroupBLL = RBACResourceFactory.CreateRBACResourceGroup(); }
public Brand() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); brand = BrandFactory.CreateBrand(); MyProductType = ProductTypeFactory.CreateProductType(); }
protected MirrorModule(ITools tools) { _dispatcher = CoreWindow.GetForCurrentThread().Dispatcher; Tools = tools; ModuleName = GetType().Name; if (string.IsNullOrWhiteSpace(IconPath) || !IconPath.ToLower().EndsWith(".xaml")) { throw new Exception($"The module {ModuleName}'s icon path is invalid."); } if (MainPage != null && !typeof(ModulePage).IsAssignableFrom(MainPage)) { throw new InvalidCastException($"The MainPage's type should be an {nameof(ModulePage)}."); } _primaryPeriodicTaskTimer = new DispatcherTimer(); _secondaryPeriodicTaskTimer = new DispatcherTimer(); Initialize(); }
public Test(IPhantomJS phantomJS, ITools tools) { this.phantomJS = phantomJS; this.tools = tools; }
public JasmineRunner(ITools tools, IPhantomJS phantomJS) { this.tools = tools; this.phantomJS = phantomJS; }
public ModulePageViewModelBase(ITools tools, object[] arguments) { Tools = tools; Arguments = arguments; }