private void CreateChattingShell(string strRoomSID) { Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background, new ThreadStart(() => { var ChattingViewModel = new ChattingViewModel(strRoomSID, this); var ChattingView = new ChattingView(ChattingViewModel); var ChattingShellViewModel = new ChattingShellViewModel(strRoomSID, this); var ChattingShellView = new ChattingShellView(ChattingShellViewModel); ChattingShellView.ChattingViewModel = ChattingViewModel; ChattingShellView.Content = ChattingView; ChattingViewModel.ShellView = ChattingShellView; if (true == this.m_ChattingRoomsDictionary.Register(strRoomSID, ChattingShellView)) { ChattingShellView.ShowChattingShellView(); } })); }
protected void Awake() { instance = this; _text = GetComponent<Text>(); }
protected void Awake() { instance = this; _text = GetComponent <Text>(); }