示例#1
0
 public Contact(MainWindow parentWindow)
 {
     InitializeComponent();
     this.parentWindow = parentWindow;
     var desktopWorkingArea = System.Windows.SystemParameters.WorkArea;
     this.Left = desktopWorkingArea.Right - this.Width * 2;
     this.Top = desktopWorkingArea.Bottom - this.Height;
 }
示例#2
0
        public Conversation(MainWindow parent,String contact)
        {
            InitializeComponent();
            this.contact = contact;
            this.parent = parent;
            BusinessLayer.ConversationManager cm = new BusinessLayer.ConversationManager();

            EntityLayer.Conversation convs = cm.getConversationsFromContact(contact);
            ViewModel.SMS.SMSsModelView cmv = new ViewModel.SMS.SMSsModelView(convs.Messages);

            ConvTitle.Text = "Conversation avec " + convs.Receiver.Nom + " (" + convs.Receiver.Num + ")";

            FilConv.DataContext = cmv;
        }