示例#1
0
 private void AddGroup_Confirm_Click(object sender, RoutedEventArgs e)
 {
     if (AddGroup_userId.Text != "")
     {
         AddGroup_NameList.Add(AddGroup_userId.Text);
         AddGroup_userId.Text = "";
     }
 }
示例#2
0
        private async void AddGroup_Commit_Click(object sender, RoutedEventArgs e)
        {
            if (AddGroup_NameList.Count != 0)
            {
                // 保存Conversation信息
                await viewModel.AddConversationAsync(AddGroup_NameList);

                // 清空数组
                AddGroup_NameList.Clear();

                // 更新页面
                await RefreshCollectionAsync();
            }
        }