コード例 #1
0
 public HotKeySettingTab(Control flpHotkeys, HotkeyManager hotkeyManager, HotKeysConfig hotKeysConfig, IUserControlFactory factory)
 {
     _flpHotkeys = flpHotkeys;
     _hotkeyManager = hotkeyManager;
     _hotKeysConfig = hotKeysConfig;
     _factory = factory;
 }
コード例 #2
0
        public MainWindow(IScheduleViewModel viewModel, IUserControlFactory controlFactory)
        {
            InitializeComponent();

            viewModel.AddObserver(this);
            DataContext   = viewModel;
            MonthCalendar = controlFactory.GetMonthCalendar(viewModel);

            Initialize();
        }
コード例 #3
0
 public FrmImportSqlDeclaration(IUserControlFactory ucFactory, DeclarationSqlController controller)
     : this()
 {
     if (ucFactory == null)
     {
         throw new ArgumentNullException("ucFactory");
     }
     if (controller == null)
     {
         throw new ArgumentNullException("controller");
     }
     _ucFactory  = ucFactory;
     _controller = controller;
 }
コード例 #4
0
        public MonthCalendar(IScheduleViewModel viewModel, IUserControlFactory userControlFactory)
        {
            InitializeComponent();

            _itemsControls  = new List <ItemsControl>();
            DataContext     = viewModel;
            _controlFactory = userControlFactory;
            viewModel.AddObserver(this);

            InitializeStrings();
            InitializeGridLines();
            InitializeDayItemsControls();
            InitializeDayTextBlocks();
            LoadEvents();
        }
コード例 #5
0
 public FrmParametrage(IUserControlFactory ucFactory)
     : this()
 {
     _ucFactory = ucFactory;
 }