private void button3_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() != DialogResult.OK) { return; } if (String.IsNullOrEmpty(openFileDialog1.FileName)) { return; } String file = openFileDialog1.FileName; try { if (IDCFunction.DoSysFile(file)) { MessageBox.Show("Success."); } else { MessageBox.Show("Execution Failed."); } } catch (Exception ex) { MessageBox.Show("Execution Failed" + ex.Message); } }
private void button2_Click(object sender, EventArgs e) { List <IDCFunction> list = IDCFunction.FindAll(); if (list == null || list.Count <= 0) { return; } foreach (IDCFunction item in list) { String args = ""; if (item.Args != null && item.Args.Count > 0) { foreach (IDCValueTypes elm in item.Args) { args += " " + elm; } } KernelWin.Msg("{0} {1} Flags={2}\n", item.Name, args, item.Flag); } }