예제 #1
0
        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;
        }
예제 #2
0
파일: FormMain.cs 프로젝트: ruslanlyalko/DA
        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;
        }