Exemplo n.º 1
0
 public HomeController(ICategory catsvc,IProduct prodsvc,ICart cartsvc, ICheckout checkoutsvc, ICommon commonsvc)
 {
     _categoryService = catsvc;
     _productService = prodsvc;
     _cartService = cartsvc;
     _checkoutService = checkoutsvc;
     _commonService = commonsvc;
 }
Exemplo n.º 2
0
 public AdminHomeController(IAdmin adminsvc,ICommon commonsvc)
     : base(adminsvc,commonsvc)
 {
 }
Exemplo n.º 3
0
 //
 // GET: /Admin/Orders/
 public OrdersController(IAdmin adminsvc, ICommon commonsvc)
     : base(adminsvc, commonsvc)
 {
 }
Exemplo n.º 4
0
 protected AdminController(IAdmin adminsvc,ICommon commonsvc)
 {
     _adminService = adminsvc;
     _commonService = commonsvc;
     _commonService.TempData = TempData;
 }
Exemplo n.º 5
0
 // GET: /Admin/Settings/
 public SettingsController(IAdmin adminsvc,ICommon commonsvc)
     : base(adminsvc,commonsvc)
 {
 }
Exemplo n.º 6
0
 public Dev2ActivityIOBroker(IFile fileWrapper, ICommon common)
     : this(fileWrapper, common, new ActivityIOBrokerMainDriver(), new ActivityIOBrokerValidatorDriver(), new IonicZipFileWrapperFactory())
 {
 }
Exemplo n.º 7
0
 public RatingsController(BeerContext context, UserManager <ApplicationUser> user, ICommon common)
 {
     _context     = context;
     _common      = common;
     _userManager = user;
 }
Exemplo n.º 8
0
        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 = "債券產品別(揭露使用)"
            });
        }
Exemplo n.º 9
0
 internal ActivityIOBrokerBaseDriver(IFile file, ICommon common)
 {
     _fileWrapper = file;
     _common      = common;
 }
 public BusinessLogicGames(IGameRepository gameRepository, ICommon commonBusinessLogic)
 {
     _gameRepository      = gameRepository;
     _commonBusinessLogic = commonBusinessLogic;
 }
Exemplo n.º 11
0
 public PurchaseInvoiceService(ErpDbContext dbContext, ICommon _common) : base(dbContext)
 {
     common = _common;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="AdminRepository"></param>
 public AdminController(IAdmin adminRepository, ILookupDetails lookupDetailsRepository, ICommon CommonRepository)
 {
     _adminRepository  = adminRepository;
     _lookUpRepository = lookupDetailsRepository;
     _CommonRepository = CommonRepository;
 }
Exemplo n.º 13
0
 public DwnExcelController(IHostingEnvironment hostingEnvironment, ICommon CommonRepository)
 {
     _hostingEnvironment = hostingEnvironment;
     _CommonRepository   = CommonRepository;
 }
Exemplo n.º 14
0
 public AccountController(ICommon commonBO)
 {
     m_commonBO = commonBO;
 }
		public ClassWithArrayConstructor(ICommon first, ICommon[] services)
		{
			this.first = first;
			this.services = services;
		}
Exemplo n.º 16
0
 public AdminHomeController(IAdmin adminsvc, ICommon commonsvc) : base(adminsvc, commonsvc)
 {
 }
Exemplo n.º 17
0
			public ServiceDependentComponent(ICommon d)
			{
			}
Exemplo n.º 18
0
 //
 // GET: /Admin/Products/
 public ProductsController(IAdmin adminsvc,ICommon commonsvc)
     : base(adminsvc,commonsvc)
 {
 }
Exemplo n.º 19
0
Arquivo: Form1.cs Projeto: Gwee/csharp
        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_");
        }
Exemplo n.º 20
0
 public abstract IGarage BuildBooking(ICommon common, IHelper helper);
Exemplo n.º 21
0
 public NotesController(INotes INotes, ICommon ICommon)
 {
     _INotes  = INotes;
     _ICommon = ICommon;
 }
Exemplo n.º 22
0
 public override IGarage BuildBooking(ICommon common, IHelper helper)
 {
     return(new PlainTextSource(common, helper));
 }
Exemplo n.º 23
0
        static void TagValueUpdated(ICommon.ITag sender, ICommon.TagValueUpdateEventArgs e)
        {
            LogixUDT logixUDT = sender as LogixUDT;

            if (logixUDT != null)
                PrintStructure(logixUDT);
        }
Exemplo n.º 24
0
 public PlainTextSource(ICommon common, IHelper helper)
 {
     _common = common;
     _helper = helper;
 }
Exemplo n.º 25
0
 public CategoriesController(IAdmin adminsvc,ICommon commonsvc)
     : base(adminsvc,commonsvc)
 {
 }
Exemplo n.º 26
0
 public Banana(ICommon instance)
 {
     this.instance = instance;
 }
Exemplo n.º 27
0
		public CommonServiceUser(ICommon common)
		{
			this.common = common;
		}
Exemplo n.º 28
0
        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;
            }
        }
Exemplo n.º 29
0
		public CommonServiceUser3(ICommon common)
		{
			_common = common;
		}
Exemplo n.º 30
0
 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;
		}
Exemplo n.º 32
0
 public AllocationController(IAllocation iallocation, IUser iuser, ICommon icommon)
 {
     _IAllocation = iallocation;
     _IUser       = iuser;
     _ICommon     = icommon;
 }
Exemplo n.º 33
0
        public void config(ICommon cfg)
        {
            commonCfg = cfg;

            if(commonCfg.Zoomed <= 0) {
                commonCfg.Zoomed = 100;
            }

            _.WordWrap              = commonCfg.WordWrap;
            menuComboBoxZoom.Text   = String.Format("{0} %", commonCfg.Zoomed);
        }
Exemplo n.º 34
0
 public CommonController(IInterests interests, ICommon common)
 {
     _interests = interests;
     _common    = common;
 }
Exemplo n.º 35
0
		public HasTwoConstructors2(ICommon common)
		{
			Common = common;
		}
Exemplo n.º 36
0
        static void TagValueUpdated(ICommon.ITag sender, ICommon.TagValueUpdateEventArgs e)
        {
            LogixUDT udtTag = sender as LogixUDT;

            if (udtTag != null)
                PrintStructure(udtTag);
        }