65 |
|
{ |
66 |
|
if (txtLog.InvokeRequired) |
67 |
|
{ |
68 |
< |
txtLog.Invoke((Action)(delegate { UpdateLogOutput(logmessage); })); |
68 |
> |
try |
69 |
> |
{ |
70 |
> |
txtLog.Invoke((Action)(delegate { UpdateLogOutput(logmessage); })); |
71 |
> |
} |
72 |
> |
catch { } |
73 |
|
return; |
74 |
|
} |
75 |
|
txtLog.AppendText(logmessage); |
165 |
|
IXMLTVRuntimeInstance xmltv = null; |
166 |
|
bool status = false; |
167 |
|
xmltv = XMLTV.DeSerialize(filename, out status); |
168 |
+ |
XMLTV.CreateFromInstance(xmltv, new EventHandler<EventArgs>(XMLTV_OnInstanceCreated)); |
169 |
|
if (!status) |
170 |
|
{ |
171 |
|
MessageBox.Show("Failed to load data - check log", "Failed to load data", MessageBoxButtons.OK, MessageBoxIcon.Error); |
172 |
|
return; |
173 |
|
} |
174 |
|
MessageBox.Show("Successfully loaded data", "Successfully loaded data", MessageBoxButtons.OK, MessageBoxIcon.Information); |
170 |
– |
CreateControls(); |
175 |
|
} |
176 |
|
catch (Exception ex) |
177 |
|
{ |
222 |
|
} |
223 |
|
} |
224 |
|
|
225 |
+ |
private void mnuItemExit_Click(object sender, EventArgs e) |
226 |
+ |
{ |
227 |
+ |
this.Close(); |
228 |
+ |
} |
229 |
+ |
|
230 |
|
} |
231 |
|
} |
232 |
|
|