public HomeController(ICategory catsvc,IProduct prodsvc,ICart cartsvc, ICheckout checkoutsvc, ICommon commonsvc) { _categoryService = catsvc; _productService = prodsvc; _cartService = cartsvc; _checkoutService = checkoutsvc; _commonService = commonsvc; }
public AdminHomeController(IAdmin adminsvc,ICommon commonsvc) : base(adminsvc,commonsvc) { }
// // GET: /Admin/Orders/ public OrdersController(IAdmin adminsvc, ICommon commonsvc) : base(adminsvc, commonsvc) { }
protected AdminController(IAdmin adminsvc,ICommon commonsvc) { _adminService = adminsvc; _commonService = commonsvc; _commonService.TempData = TempData; }
// GET: /Admin/Settings/ public SettingsController(IAdmin adminsvc,ICommon commonsvc) : base(adminsvc,commonsvc) { }
public Dev2ActivityIOBroker(IFile fileWrapper, ICommon common) : this(fileWrapper, common, new ActivityIOBrokerMainDriver(), new ActivityIOBrokerValidatorDriver(), new IonicZipFileWrapperFactory()) { }
public RatingsController(BeerContext context, UserManager <ApplicationUser> user, ICommon common) { _context = context; _common = common; _userManager = user; }
public A5Controller() { this.A5Repository = new A5Repository(); this.CommonFunction = new Common(); this.Cache = new DefaultCacheProvider(); searchOption = new List <SelectOption>(); searchOption.AddRange(EnumUtil.GetValues <A59_SelectType>() .Select(x => new SelectOption() { text = x.GetDescription(), value = x.ToString() })); sType = new List <SelectOption>() { new SelectOption() { text = Rating_Type.A.GetDescription(), value = "1" }, new SelectOption() { text = Rating_Type.B.GetDescription(), value = "2" } }; actions = new List <SelectOption>() { new SelectOption() { text = "查詢&下載", value = "downLoad" }, new SelectOption() { text = "上傳&存檔", value = "upLoad" } }; A59titles.Add(new FormateTitle() { OldTitle = "Reference_Nbr", NewTitle = "帳戶編號" }); A59titles.Add(new FormateTitle() { OldTitle = "Report_Date", NewTitle = "報導日" }); A59titles.Add(new FormateTitle() { OldTitle = "Version", NewTitle = "資料版本" }); A59titles.Add(new FormateTitle() { OldTitle = "Bond_Number", NewTitle = "債券編號" }); A59titles.Add(new FormateTitle() { OldTitle = "Origination_Date", NewTitle = "債券購入(認列)日期" }); A59titles.Add(new FormateTitle() { OldTitle = "Portfolio_Name", NewTitle = "Portfolio英文" }); A59titles.Add(new FormateTitle() { OldTitle = "SMF", NewTitle = "債券產品別(揭露使用)" }); }
internal ActivityIOBrokerBaseDriver(IFile file, ICommon common) { _fileWrapper = file; _common = common; }
public BusinessLogicGames(IGameRepository gameRepository, ICommon commonBusinessLogic) { _gameRepository = gameRepository; _commonBusinessLogic = commonBusinessLogic; }
public PurchaseInvoiceService(ErpDbContext dbContext, ICommon _common) : base(dbContext) { common = _common; }
/// <summary> /// Constructor /// </summary> /// <param name="AdminRepository"></param> public AdminController(IAdmin adminRepository, ILookupDetails lookupDetailsRepository, ICommon CommonRepository) { _adminRepository = adminRepository; _lookUpRepository = lookupDetailsRepository; _CommonRepository = CommonRepository; }
public DwnExcelController(IHostingEnvironment hostingEnvironment, ICommon CommonRepository) { _hostingEnvironment = hostingEnvironment; _CommonRepository = CommonRepository; }
public AccountController(ICommon commonBO) { m_commonBO = commonBO; }
public ClassWithArrayConstructor(ICommon first, ICommon[] services) { this.first = first; this.services = services; }
public AdminHomeController(IAdmin adminsvc, ICommon commonsvc) : base(adminsvc, commonsvc) { }
public ServiceDependentComponent(ICommon d) { }
// // GET: /Admin/Products/ public ProductsController(IAdmin adminsvc,ICommon commonsvc) : base(adminsvc,commonsvc) { }
public Form1() { InitializeComponent(); int arrSize = myRand.Next(12, 16); arrControls = new Control[arrSize]; int currPosition = 2; for (int i = 0; i < arrSize; i++) { if (myRand.Next(2) == 0) { arrControls[i] = new Button(); ButtonLabel = "Button"; } else { arrControls[i] = new Label(); ButtonLabel = "Label"; } arrControls[i].Location = new Point(currPosition, 3); int temp = myRand.Next(15, 40); switch (myRand.Next(4)) { case 0: arrControls[i].Size = new Size(temp, temp); break; case 1: arrControls[i].Size = new Size(2 * temp, 2 * temp); break; case 2: arrControls[i].Size = new Size(2 * temp, temp); break; case 3: arrControls[i].Size = new Size(temp, 2 * temp); break; } string tempColor = "Red"; switch (myRand.Next(3)) { case 1: tempColor = "Green"; break; case 2: tempColor = "Blue"; break; } currPosition += arrControls[i].Size.Width + 2; arrControls[i].BackColor = Color.FromName(tempColor); this.Controls.Add(arrControls[i]); } ButtonLabel = "Button"; if (myRand.Next(2) == 0) { ButtonLabel = "Label"; } RectangleSquare = "Rectangle"; if (myRand.Next(2) == 0) { RectangleSquare = "Square"; } this.Text = ButtonLabel + " " + RectangleSquare; ClientColor.Text = "Red"; switch (myRand.Next(3)) { case 1: ClientColor.Text = "Green"; break; case 2: ClientColor.Text = "Blue"; break; } ClientColor.ForeColor = Color.FromName(ClientColor.Text); HttpChannel channel = new HttpChannel(); ChannelServices.RegisterChannel(channel, false); myICommon = (ICommon)Activator.GetObject( typeof(ICommon), "http://localhost:1234/_Server_"); }
public abstract IGarage BuildBooking(ICommon common, IHelper helper);
public NotesController(INotes INotes, ICommon ICommon) { _INotes = INotes; _ICommon = ICommon; }
public override IGarage BuildBooking(ICommon common, IHelper helper) { return(new PlainTextSource(common, helper)); }
static void TagValueUpdated(ICommon.ITag sender, ICommon.TagValueUpdateEventArgs e) { LogixUDT logixUDT = sender as LogixUDT; if (logixUDT != null) PrintStructure(logixUDT); }
public PlainTextSource(ICommon common, IHelper helper) { _common = common; _helper = helper; }
public CategoriesController(IAdmin adminsvc,ICommon commonsvc) : base(adminsvc,commonsvc) { }
public Banana(ICommon instance) { this.instance = instance; }
public CommonServiceUser(ICommon common) { this.common = common; }
static void TagValueUpdated(ICommon.ITag sender, ICommon.TagValueUpdateEventArgs e) { //Here we'll just display the name of the tag and that it was updated. If you //want to extract the value you'll have to cast it to the correct type. You //can do this by using a switch as shown below. Console.WriteLine("Tag " + e.Tag.Address + " Updated"); switch (((LogixTag)sender).LogixType) { case LogixTypes.Bool: Console.WriteLine("New value is: " + ((LogixBOOL)sender).Value.ToString()); break; case LogixTypes.Control: //The control tag is a lot more complicated, there is no way currently to know //which member was updated, so all you can do is say it was updated, we'll print //out one of the members though. Console.WriteLine("New value is: " + ((LogixCONTROL)sender).POS.ToString()); break; case LogixTypes.Counter: //Same as the counter above, we'll just print out the ACC value Console.WriteLine("New ACC value is: " + ((LogixCOUNTER)sender).ACC.ToString()); break; case LogixTypes.DInt: //Print out the value. DINT's are equivalent to int in .NET Console.WriteLine("New DINT value is: " + ((LogixDINT)sender).Value.ToString()); break; case LogixTypes.Int: //An INT in a logix processor is more like a short in .NET Console.WriteLine("New INT value is: " + ((LogixINT)sender).Value.ToString()); break; case LogixTypes.LInt: //LINT's are equivalent to long in .NET Console.WriteLine("New LINT value is: " + ((LogixLINT)sender).Value.ToString()); break; case LogixTypes.Real: //REALs are single precision floats Console.WriteLine("New REAL value is: " + ((LogixREAL)sender).Value.ToString()); break; case LogixTypes.SInt: //SINTs are signed bytes Console.WriteLine("New SINT value is: " + ((LogixSINT)sender).Value.ToString()); break; case LogixTypes.String: //Strings are just like .NET strings, so notice how we can skip the .StringValue //member, since the .ToString() will automatically be called, which returns the //same value as .StringValue Console.WriteLine("New STRING value is: " + ((LogixSTRING)sender)); break; case LogixTypes.Timer: //Timers again are like the CONTROL and COUNTER types Console.WriteLine("New Timer.ACC value is: " + ((LogixTIMER)sender).ACC.ToString()); break; case LogixTypes.User_Defined: //The only way to get the value out of a UDT, PDT, or MDT is to define the //structure or know the member name you wish to read. We'll just print that //we know its a UDT, MDT, or PDT that changed. Console.WriteLine("The user defined type has changed"); break; default: break; } }
public CommonServiceUser3(ICommon common) { _common = common; }
public KRiskController() { //this.C4Repository = new C4Repository(); this.CommonFunction = new Common(); //this.Cache = new DefaultCacheProvider(); }
public ClassWithTwoParametersWithSameType(ICommon one, ICommon two) { this.one = one; this.two = two; }
public AllocationController(IAllocation iallocation, IUser iuser, ICommon icommon) { _IAllocation = iallocation; _IUser = iuser; _ICommon = icommon; }
public void config(ICommon cfg) { commonCfg = cfg; if(commonCfg.Zoomed <= 0) { commonCfg.Zoomed = 100; } _.WordWrap = commonCfg.WordWrap; menuComboBoxZoom.Text = String.Format("{0} %", commonCfg.Zoomed); }
public CommonController(IInterests interests, ICommon common) { _interests = interests; _common = common; }
public HasTwoConstructors2(ICommon common) { Common = common; }
static void TagValueUpdated(ICommon.ITag sender, ICommon.TagValueUpdateEventArgs e) { LogixUDT udtTag = sender as LogixUDT; if (udtTag != null) PrintStructure(udtTag); }