| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | /********************************************************************* |
| 2 | * |
||
| 3 | * Upload Settings dialog for MPFS21 |
||
| 4 | * |
||
| 5 | ********************************************************************* |
||
| 6 | * FileName: UploadSettings.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 UploadSettings : Form |
||
| 51 | { |
||
| 52 | public UploadSettings() |
||
| 53 | { |
||
| 54 | InitializeComponent(); |
||
| 55 | } |
||
| 56 | |||
| 57 | private void btnDefaults_Click(object sender, EventArgs e) |
||
| 58 | { |
||
| 59 | txtUploadAddress.Text = "MCHPBOARD"; |
||
| 60 | txtUploadPath.Text = "mpfsupload"; |
||
| 61 | txtUploadUser.Text = "admin"; |
||
| 62 | txtUploadPass.Text = "microchip"; |
||
| 63 | } |
||
| 64 | |||
| 65 | private void btnOK_Click(object sender, EventArgs e) |
||
| 66 | { |
||
| 67 | Settings.Default.UploadAddress = txtUploadAddress.Text; |
||
| 68 | Settings.Default.UploadPath = txtUploadPath.Text; |
||
| 69 | Settings.Default.UploadUser = txtUploadUser.Text; |
||
| 70 | Settings.Default.UploadPass = txtUploadPass.Text; |
||
| 71 | } |
||
| 72 | |||
| 73 | private void UploadSettings_Load(object sender, EventArgs e) |
||
| 74 | { |
||
| 75 | txtUploadAddress.Text = Settings.Default.UploadAddress; |
||
| 76 | txtUploadPath.Text = Settings.Default.UploadPath; |
||
| 77 | txtUploadUser.Text = Settings.Default.UploadUser; |
||
| 78 | txtUploadPass.Text = Settings.Default.UploadPass; |
||
| 79 | } |
||
| 80 | |||
| 81 | } |
||
| 82 | } |
Powered by WebSVN v2.8.3