/// <summary>
        /// Constructor
        /// </summary>
        public BBotMainWindow()
        {
            this.InitializeComponent();

            mainWidgetsViewModel = new BBotFrontEndViewModel();

            //Set Widgets' DataContext
            this.connectionView.DataContext   = mainWidgetsViewModel.ConnectionViewModel;
            this.voiceView.DataContext        = mainWidgetsViewModel.VoiceViewModel;
            this.botTerminalView.DataContext  = mainWidgetsViewModel.BotTerminalViewModel;
            this.legsView.DataContext         = mainWidgetsViewModel.LegslViewModel;
            this.quickButtonsView.DataContext = mainWidgetsViewModel.QuickButtonsViewModel;
            this.eyeView.DataContext          = mainWidgetsViewModel.EyeViewModel;

            this.Closing += BBotMainWindow_Closing;
        }
Exemple #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public BBotMainWindow()
        {
            this.InitializeComponent();

            mainWidgetsViewModel = new BBotFrontEndViewModel();

            //Set Widgets' DataContext
            this.connectionView.DataContext = mainWidgetsViewModel.ConnectionViewModel;
            this.voiceView.DataContext = mainWidgetsViewModel.VoiceViewModel;
            this.botTerminalView.DataContext = mainWidgetsViewModel.BotTerminalViewModel;
            this.legsView.DataContext = mainWidgetsViewModel.LegslViewModel;
            this.quickButtonsView.DataContext = mainWidgetsViewModel.QuickButtonsViewModel;
            this.eyeView.DataContext = mainWidgetsViewModel.EyeViewModel;

            this.Closing += BBotMainWindow_Closing;
        }