private BattleNotifierController(IMain view) { MainView = view; notifyLogic = new NotifyLogic(view); notificationTimer.Tick += new EventHandler(OnTimedEvent); SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged; }
private bool IsValid(IMain window) { if (window.Where == Constants.WhereDefaultValue) return false; if (window.What == Constants.WhatDefaultValue) return false; return true; }
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); }
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; }
public NotifyLogic(IMain view) { MainView = view; }
public fPageAttach(IApp app, IMain main) : base() { m_app = app; m_main = main; InitializeComponent(); }
public MainPresenter(IMain windowIn) { this.window = windowIn; }
public MainController(IMain main) { this.main = main; }
public static void InitializeBattleNotifierController(IMain view) { if (instance == null) instance = new BattleNotifierController(view); }
public static Props Create(IMain mainsup) { return(Props.Create(() => new MainSupervisor(mainsup))); }
public MainExecutor(IMain main) { _main = Ensure.NotNull(main, nameof(main)); }
public void init(IMain delt, int idx) { _delt = delt; _idx = idx; }
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; }
public MainControl(IMain iMain) { this.iMain = iMain; }
public ClsHonorarios(IMain view) { vista = view; }
public ClsOrdenesCompra(IMain view) { vista = view; }
public fMedia(IMain main) : base() { m_main = main; }
public ViewModel2(IMain main) { _main = main; }
public FormTakeBookingInWork(IWorker serviceI, IMain serviceM) { InitializeComponent(); this.serviceI = serviceI; this.serviceM = serviceM; }
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; }
public PMain(IMain view) => this.vMain = view;
public void AddComponent(IMain main) { _map.Add(main); }
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); }
public MainPresenter(IMain pView) { this.view = pView; this.InitializePresenter(); }
public MainController(ApplicationContext context) { _context = context; _main = new MainRepo(_context); }
public frmModuleView(IMain MDIfrm) { InitializeComponent(); MDIForm = MDIfrm; _GZTable = new GZFunctionLayout(pan_Container, 90, 103); }
public FormMain(IMain service) { InitializeComponent(); this.service = service; }
public ParameterMain(IMain main) { _main = main; }
public PresenterMain(IMain _view) { view = _view; }
public PlayCardControl(IMain delt) { _delt = delt; }
public void Starup(IMain main) { main.Run(); }
public MainController(IMain repository) { this.repository = repository; }