~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to src/Frontend-STFL/Views/PersonChatView.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Smuxi - Smart MUltipleXed Irc
 
2
//
 
3
// Copyright (c) 2013 Mirco Bauer <meebey@meebey.net>
 
4
//
 
5
// Full GPL License: <http://www.gnu.org/licenses/gpl.txt>
 
6
//
 
7
// This program is free software; you can redistribute it and/or modify
 
8
// it under the terms of the GNU General Public License as published by
 
9
// the Free Software Foundation; either version 2 of the License, or
 
10
// (at your option) any later version.
 
11
//
 
12
// This program is distributed in the hope that it will be useful,
 
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
// GNU General Public License for more details.
 
16
//
 
17
// You should have received a copy of the GNU General Public License
 
18
// along with this program; if not, write to the Free Software
 
19
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
20
using System;
 
21
using Smuxi.Common;
 
22
using Smuxi.Engine;
 
23
 
 
24
namespace Smuxi.Frontend.Stfl
 
25
{
 
26
    [ChatViewInfo(ChatType = ChatType.Person)]
 
27
    public class PersonChatView : ChatView
 
28
    {
 
29
        public PersonChatView(ChatModel chat, MainWindow window) :
 
30
                         base(chat, window)
 
31
        {
 
32
            Trace.Call(chat, window);
 
33
        }
 
34
 
 
35
        public override void Sync()
 
36
        {
 
37
            base.Sync();
 
38
 
 
39
            var personChat = (PersonChatModel) ChatModel;
 
40
            Participants.Add(personChat.Person);
 
41
        }
 
42
    }
 
43
}