| Line 1... |
Line 1... |
| 1 |
using System; |
1 |
using System; |
| 2 |
using System.Collections.Generic; |
- |
|
| 3 |
using System.ComponentModel; |
2 |
using System.ComponentModel; |
| 4 |
using System.Data; |
- |
|
| 5 |
using System.Drawing; |
- |
|
| 6 |
using System.Linq; |
3 |
using System.Linq; |
| 7 |
using System.Text; |
- |
|
| 8 |
using System.Windows.Forms; |
4 |
using System.Windows.Forms; |
| 9 |
using clempaul.Dreamhost.ResponseData; |
- |
|
| 10 |
using clempaul; |
5 |
using clempaul; |
| - |
|
6 |
using clempaul.Dreamhost.ResponseData; |
| 11 |
|
7 |
|
| 12 |
namespace DNS_Manager |
8 |
namespace DNS_Manager |
| 13 |
{ |
9 |
{ |
| 14 |
public partial class AddEdit : Form |
10 |
public partial class AddEdit : Form |
| 15 |
{ |
11 |
{ |
| Line 138... |
Line 134... |
| 138 |
|
134 |
|
| 139 |
this.IsEdit = false; |
135 |
this.IsEdit = false; |
| 140 |
this.textBoxRecord.Enabled = true; |
136 |
this.textBoxRecord.Enabled = true; |
| 141 |
this.comboBoxType.Enabled = true; |
137 |
this.comboBoxType.Enabled = true; |
| 142 |
} |
138 |
} |
| - |
|
139 |
else |
| - |
|
140 |
{ |
| - |
|
141 |
if (MessageBox.Show(e.Error.Message, "DNS Manager", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error) == DialogResult.Retry) |
| - |
|
142 |
{ |
| - |
|
143 |
this.EditRecord.RunWorkerAsync(this.BuildRecord()); |
| - |
|
144 |
return; |
| - |
|
145 |
} |
| - |
|
146 |
} |
| 143 |
|
147 |
|
| 144 |
this.buttonSave.Enabled = true; |
148 |
this.buttonSave.Enabled = true; |
| 145 |
this.buttonCancel.Enabled = true; |
149 |
this.buttonCancel.Enabled = true; |
| 146 |
this.textBoxComment.Enabled = true; |
150 |
this.textBoxComment.Enabled = true; |
| 147 |
this.textBoxValue.Enabled = true; |
151 |
this.textBoxValue.Enabled = true; |