Exemplo n.º 1
0
        public Deskband()
        {
            Options.MinHorizontalSize       = new Size(18, 0);
            Options.MinVerticalSize         = new Size(0, 40);
            TaskbarInfo.TaskbarEdgeChanged += OnTaskbarEdgeChanged;

            ToolbarLogger.Initialize();
            ILogger logger = ToolbarLogger.GetLogger("EverythingToolbar");

            logger.Info("EverythingToolbar started. Version: {version}, OS: {os}", Assembly.GetExecutingAssembly().GetName().Version, Environment.OSVersion);

            AppDomain.CurrentDomain.UnhandledException += (sender, args) => ToolbarLogger.GetLogger("EverythingToolbar").Error((Exception)args.ExceptionObject, "Unhandled Exception");

            ToolbarControl.SetTaskbarEdge(TaskbarInfo.Edge);
        }
Exemplo n.º 2
0
 private void OnTaskbarEdgeChanged(object sender, TaskbarEdgeChangedEventArgs e)
 {
     ToolbarControl.SetTaskbarEdge(e.Edge);
 }