Beispiel #1
0
        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();
                }
            }));
        }
Beispiel #2
0
    protected void Awake()
    {
        instance = this;

        _text = GetComponent<Text>();
    }
Beispiel #3
0
    protected void Awake()
    {
        instance = this;

        _text = GetComponent <Text>();
    }