Exemple #1
0
 /// <summary>
 /// Determines the application startup order.
 /// </summary>
 public EntryService(IPowerSchemeService power, IMainMessageBox messageBox)
 {
     ActionFirstStart = ShowFirstStartDialog;
     _power           = power;
     _args            = Environment.GetCommandLineArgs();
     _messageBox      = messageBox;
 }
Exemple #2
0
 public ViewModel(IPowerSchemeService power)
 {
     components       = new Container();
     Power            = power;
     ContextLeftMenu  = new LeftContextMenu(components, power);
     ContextRightMenu = new RightContextMenu(components, power);
     NotifyIcon       = new NotifyIcon(components);
 }
Exemple #3
0
        private void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (disposing)
            {
                Mutex    = null;
                _power   = null;
                _appInfo = null;
                _messageBox.Dispose();
            }
            _isDisposed = true;
        }
Exemple #4
0
 public RightContextMenu(IContainer components, IPowerSchemeService power) : base(components, power)
 {
 }
 protected ContextMainMenu(IContainer components, IPowerSchemeService power) : base(components)
 {
     Power = power;
 }