public FormMain() { InitializeComponent(); ToastNotification.ToastBackColor = Color.SteelBlue; ToastNotification.DefaultToastPosition = eToastPosition.BottomCenter; SuspendLayout(); _commands = new MetroBillCommands { StartControlCommands = { Logon = new Command(), Exit = new Command() }, }; _commands.StartControlCommands.Logon.Executed += StartControlLogonClick; _commands.StartControlCommands.Exit.Executed += startControl_ExitClick; _startControl = new StartControl { Commands = _commands }; Controls.Add(_startControl); _startControl.BringToFront(); _startControl.SlideSide = DevComponents.DotNetBar.Controls.eSlideSide.Right; FormClosing += StopProcess; }