本文整理汇总了C#中Conversation.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Conversation.Show方法的具体用法?C# Conversation.Show怎么用?C# Conversation.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Conversation
的用法示例。
在下文中一共展示了Conversation.Show方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Hyperlink_Click
private void Hyperlink_Click(object sender, RoutedEventArgs e)
{
BusinessLayer.ConversationManager cm = new BusinessLayer.ConversationManager();
EntityLayer.Conversation c;
if(AddNum.Text.Length > 0)
{
c = cm.getConversationsFromContact(AddNum.Text);
if (c == null)
{
cm.AddConversation(new EntityLayer.Contact(AddNum.Text));
IList<EntityLayer.Conversation> convs = cm.getConversations();
ViewModel.Conversation.ConversationsModelView cmv = new ViewModel.Conversation.ConversationsModelView(convs);
parent.ListConversations.DataContext = cmv;
}
if (!parent.findConvos(AddNum.Text))
{
Conversation cw = new Conversation(parent, AddNum.Text);
parent.addConv(cw);
cw.Show();
}
this.Close();
}
}
示例2: CreateNewConversation
void CreateNewConversation(object o)
{
string to = (string)o;
Conversation c = new Conversation(api, to);
conversations.Add(to, c);
c.Show();
conversationStarted.Set();
}
示例3: ListConversations_MouseDoubleClick
private void ListConversations_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (ListConversations.SelectedItem != null)
{
if (!findConvos(((ConversationModelView)ListConversations.SelectedItem).Receiver.Num))
{
Conversation cw = new Conversation(this, ((ConversationModelView)ListConversations.SelectedItem).Receiver.Num);
addConv(cw);
cw.Show();
}
}
}