private BattleNotifierController(IMain view)
 {
     MainView = view;
     notifyLogic = new NotifyLogic(view);
     notificationTimer.Tick += new EventHandler(OnTimedEvent);
     SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
 }
Esempio n. 2
0
 private bool IsValid(IMain window)
 {
     if (window.Where == Constants.WhereDefaultValue)
         return false;
     if (window.What == Constants.WhatDefaultValue)
         return false;
     return true;
 }
Esempio n. 3
0
        public override void StartAsync(IMain main)
        {
            Console.WriteLine("IrcPlugin starting...");

              base.StartAsync(main);

              PluginStatus = PluginStatusEnum.Starting;

              _IrcConnection = new ServerConnection();
              _IrcConnection.ChannelEvent += HandleChannelEvent;
              _IrcConnection.ServerEvent += HandleServerEvent;
              Console.WriteLine("IrcPlugin connecting to {0}:{1}...", _Address, _Port);
              _IrcConnection.BeginConnect(_Address, _Port, IrcConnectionFinished);
        }
Esempio n. 4
0
        public LoginForm(MainForm m, IMain iMain)
        {
            InitializeComponent();

            mainForm         = m;
            mainForm.Enabled = false;
            model            = iMain;

            // check exist file settings
            // if does, show saved login and password
            // else show default
            if (model.UserLogin != null)
            {
                usernameEdt.Text = model.UserLogin;
            }
            else
            {
                usernameEdt.Text = "Username";
                passwordEdt.Text = "Password";
            }
            serverPathEdt.Text = model.ServiceFolderPath;
        }
Esempio n. 5
0
 public NotifyLogic(IMain view)
 {
     MainView = view;
 }
Esempio n. 6
0
 public fPageAttach(IApp app, IMain main) : base()
 {
     m_app  = app;
     m_main = main;
     InitializeComponent();
 }
Esempio n. 7
0
 public MainPresenter(IMain windowIn)
 {
     this.window = windowIn;
 }
Esempio n. 8
0
 public MainController(IMain main)
 {
     this.main = main;
 }
 public static void InitializeBattleNotifierController(IMain view)
 {
     if (instance == null)
         instance = new BattleNotifierController(view);
 }
Esempio n. 10
0
 public static Props Create(IMain mainsup)
 {
     return(Props.Create(() => new MainSupervisor(mainsup)));
 }
Esempio n. 11
0
 public MainExecutor(IMain main)
 {
     _main = Ensure.NotNull(main, nameof(main));
 }
Esempio n. 12
0
 public void init(IMain delt, int idx)
 {
     _delt = delt;
     _idx  = idx;
 }
Esempio n. 13
0
		public static void Initialize(IMain main)
		{
			Main = main;
			_logContainer = new LogContainer();
			ServiceLocator.Locator.Register<ILogger>(_logContainer);
			ServiceLocator.Locator.Register<IMain>(Main);
			ServiceLocator.Locator.Register<ICoroutinesManager>(Main.CoroutinesManager);
			_logContainer.SetLoggingLevel(_loggingLevel);
			Log = _logContainer;
			Main.Log = _logContainer;
			Main.CoroutinesManager.Log = _logContainer;
		}
Esempio n. 14
0
 public MainControl(IMain iMain)
 {
     this.iMain = iMain;
 }
Esempio n. 15
0
 public ClsHonorarios(IMain view)
 {
     vista = view;
 }
Esempio n. 16
0
 public ClsOrdenesCompra(IMain view)
 {
     vista = view;
 }
Esempio n. 17
0
 public MainPresenter(IMain windowIn)
 {
     this.window = windowIn;
 }
Esempio n. 18
0
 public fMedia(IMain main) : base()
 {
     m_main = main;
 }
Esempio n. 19
0
 public ViewModel2(IMain main)
 {
     _main = main;
 }
Esempio n. 20
0
 public FormTakeBookingInWork(IWorker serviceI, IMain serviceM)
 {
     InitializeComponent();
     this.serviceI = serviceI;
     this.serviceM = serviceM;
 }
Esempio n. 21
0
 public ConsoleApplication(IMain coreMain)
 {
     _atsMain = coreMain;
 }
 public void ShowCurrentBattleNotification(IMain main)
 {
     if (CurrentBattle != null)
         ShowBattleNotification(main, CurrentBattle, true);
 }
 public frmModuleView(IMain MDIfrm)
 {
     InitializeComponent();
     MDIForm = MDIfrm;
 }
 public MainController(IResponsiveClient helper, IMain control)
     : base(helper)
 {
     _control = control;
 }
Esempio n. 25
0
 public PMain(IMain view) => this.vMain = view;
Esempio n. 26
0
 public void AddComponent(IMain main)
 {
     _map.Add(main);
 }
Esempio n. 27
0
 public void SetMain(IMain main)
 {
     _main = main;
 }
        public void ShowBattleNotification(IMain m, Battle battle, bool showCurrent = false, bool simulation = false)
        {
            ClearBattleNotification();

            BattleNotificationSettings settings = UserSettings.Instance.GetBattleNotificationSettings();

            if (settings.Basic.ShowBattleDialog || settings.Basic.ShowMapDialog)
            {
                bool mapOK = SetMap(battle, showCurrent, simulation);

                double timeLeft = battle.TimeLeft;
                if (settings.Basic.ShowBattleDialog)
                    bn = new BattleNotification(battle, timeLeft, 0, settings);

                int height = bn == null ? 0 : bn.Height + 20;
                mn = new MapNotification(battle, timeLeft, height, MapSizeIndexToWidth(settings.Basic.MapSize), mapOK, settings);
            }

            SetupWindowsDisplayBehaviour(settings);

            if (settings.Basic.ShowMapDialog)
                m.ShowNotification(mn);
            if (settings.Basic.ShowBattleDialog)
                m.ShowNotification(bn);

            SetupSound(settings);
            SetupLifeTime(settings);
        }
Esempio n. 29
0
 public MainPresenter(IMain pView)
 {
     this.view = pView;
     this.InitializePresenter();
 }
Esempio n. 30
0
 public MainController(ApplicationContext context)
 {
     _context = context;
     _main    = new MainRepo(_context);
 }
Esempio n. 31
0
 public frmModuleView(IMain MDIfrm)
 {
     InitializeComponent();
     MDIForm  = MDIfrm;
     _GZTable = new GZFunctionLayout(pan_Container, 90, 103);
 }
Esempio n. 32
0
 public FormMain(IMain service)
 {
     InitializeComponent();
     this.service = service;
 }
Esempio n. 33
0
 public ParameterMain(IMain main)
 {
     _main = main;
 }
Esempio n. 34
0
 public PresenterMain(IMain _view)
 {
     view = _view;
 }
Esempio n. 35
0
 public PlayCardControl(IMain delt)
 {
     _delt = delt;
 }
Esempio n. 36
0
 public void Starup(IMain main)
 {
     main.Run();
 }
Esempio n. 37
0
 public MainController(IMain repository)
 {
     this.repository = repository;
 }