| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | /********************************************************************* |
| 2 | * |
||
| 3 | * Log Window dialog for MPFS21 |
||
| 4 | * |
||
| 5 | ********************************************************************* |
||
| 6 | * FileName: LogWindow.cs |
||
| 7 | * Dependencies: Microsoft .NET Framework 2.0 |
||
| 8 | * Processor: x86 |
||
| 9 | * Complier: Microsoft Visual C# 2008 Express Edition |
||
| 10 | * Company: Microchip Technology, Inc. |
||
| 11 | * |
||
| 12 | * Software License Agreement |
||
| 13 | * |
||
| 14 | * This software is owned by Microchip Technology Inc. ("Microchip") |
||
| 15 | * and is supplied to you for use exclusively as described in the |
||
| 16 | * associated software agreement. This software is protected by |
||
| 17 | * software and other intellectual property laws. Any use in |
||
| 18 | * violation of the software license may subject the user to criminal |
||
| 19 | * sanctions as well as civil liability. Copyright 2008 Microchip |
||
| 20 | * Technology Inc. All rights reserved. |
||
| 21 | * |
||
| 22 | * |
||
| 23 | * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT |
||
| 24 | * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT |
||
| 25 | * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
||
| 26 | * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
||
| 27 | * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR |
||
| 28 | * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF |
||
| 29 | * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS |
||
| 30 | * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE |
||
| 31 | * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER |
||
| 32 | * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT |
||
| 33 | * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. |
||
| 34 | * |
||
| 35 | * |
||
| 36 | * Author Date Comment |
||
| 37 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
| 38 | * Elliott Wood 4/17/2008 Original |
||
| 39 | ********************************************************************/ |
||
| 40 | using System; |
||
| 41 | using System.Collections.Generic; |
||
| 42 | using System.ComponentModel; |
||
| 43 | using System.Data; |
||
| 44 | using System.Drawing; |
||
| 45 | using System.Text; |
||
| 46 | using System.Windows.Forms; |
||
| 47 | |||
| 48 | namespace MPFS21 |
||
| 49 | { |
||
| 50 | public partial class LogWindow : Form |
||
| 51 | { |
||
| 52 | /// <summary> |
||
| 53 | /// Sets the image to display |
||
| 54 | /// </summary> |
||
| 55 | public Icon Image |
||
| 56 | { |
||
| 57 | set |
||
| 58 | { |
||
| 59 | iconBox.Image = Icon.FromHandle(value.Handle).ToBitmap(); |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | public List<string> Log |
||
| 64 | { |
||
| 65 | set |
||
| 66 | { |
||
| 67 | foreach (String s in value) |
||
| 68 | { |
||
| 69 | txtLogWindow.Text += s + "\r\n"; |
||
| 70 | } |
||
| 71 | } |
||
| 72 | } |
||
| 73 | |||
| 74 | public String Message |
||
| 75 | { |
||
| 76 | set { txtMessage.Text = value; } |
||
| 77 | } |
||
| 78 | |||
| 79 | public LogWindow() |
||
| 80 | { |
||
| 81 | InitializeComponent(); |
||
| 82 | } |
||
| 83 | |||
| 84 | private void LogWindow_Load(object sender, EventArgs e) |
||
| 85 | { |
||
| 86 | txtLogWindow.Select(0, 0); |
||
| 87 | btnOK.Select(); |
||
| 88 | } |
||
| 89 | } |
||
| 90 | } |
Powered by WebSVN v2.8.3