public MainWindow() { InitializeComponent(); ShowCurrentCulture(); AllowsTransparency = true; _ucTabCharts = new ucTabCharts(); _solutionExplorer = new ucSolutionExplorer(); TabControl = _ucTabCharts.TabCharts; GlobalData.MainWindow = this; SetReceiveMessages(); var obj = Assembly.GetExecutingAssembly().GetName().Version; _dataContext = IoC.Kernel.Get<IMainScreenViewModel>(new ConstructorArgument("token", Token)); DataContext = _dataContext; _dataContext.ApplicationVersion = string.Format("{0}.{1}.{2}", obj.Minor, obj.Build, obj.Revision); WindowsManagerCode(); Loaded += MainWindow_Loaded; }
public void CreateStartupDialogViewModels() { IocConfig(); MainScreenViewModel = new MainScreenViewModel(this); }