Diff of /trunk/Mainform.xaml.cs
Parent Directory
|
Revision Log
|
Patch
| revision 55, Thu Oct 16 10:40:41 2008 UTC | revision 56, Fri Oct 17 10:44:11 2008 UTC | |
|---|---|---|
| # | Line 50 | Line 50 |
| 50 | ||
| 51 | ||
| 52 | network.OnLog += network_OnLog; | network.OnLog += network_OnLog; |
| 53 | network.OnMessageChat += new Xenki.DefaultNetwork.OnMessageChatDelegate(network_OnMessageChat); | network.OnMessageChat += network_OnMessageChat; |
| 54 | } | } |
| 55 | catch (Exception e) | catch (Exception e) |
| 56 | { | { |
| # | Line 65 | Line 65 |
| 65 | new System.Windows.Forms.MethodInvoker | new System.Windows.Forms.MethodInvoker |
| 66 | (delegate | (delegate |
| 67 | { | { |
| ListBoxItem lbi = new ListBoxItem(); | ||
| lbi.Content = msg; | ||
| 68 | if (messageDialog.Items.Count > 20) | if (messageDialog.Items.Count > 20) |
| 69 | messageDialog.Items.RemoveAt(0); | messageDialog.Items.RemoveAt(0); |
| 70 | ||
| 71 | messageDialog.Items.Add(lbi); | messageDialog.Items.Add(msg); |
| 72 | } | } |
| 73 | ) | ) |
| 74 | ); | ); |
| # | Line 89 | Line 86 |
| 86 | new System.Windows.Forms.MethodInvoker | new System.Windows.Forms.MethodInvoker |
| 87 | (delegate | (delegate |
| 88 | { | { |
| 89 | ListBoxItem lbi = new ListBoxItem(); | //ListBoxItem lbi = new ListBoxItem(); |
| 90 | lbi.Content = log; | //lbi.Content = log; |
| 91 | ||
| 92 | if (logBox.Items.Count > 20) | if (logBox.Items.Count > 20) |
| 93 | logBox.Items.RemoveAt(0); | logBox.Items.RemoveAt(0); |
| 94 | ||
| 95 | logBox.Items.Add(lbi); | logBox.Items.Add(log); |
| 96 | Console.WriteLine(log); | |
| 97 | ||
| 98 | //logBox.ScrollIntoView(lbi); | //logBox.ScrollIntoView(lbi); |
| 99 | } | } |
| 100 | ) | ) |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

