コード例 #1
0
        private void U13Click(object sender, EventArgs e)
        {
            OpenFileDialog OF = new OpenFileDialog
            {
                Title            = "Load a U13 ROM",
                InitialDirectory = ROMImportDir,
                Filter           = "All files (*) | *.*"
            };

            if (OF.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                OF.FilterIndex = 0;
                ROMImportDir   = System.IO.Path.GetDirectoryName(OF.FileName);
                U13List.Nodes.Add(OF.FileName);
                U13List.EndUpdate();
            }
        }
コード例 #2
0
 private void U13ClearClick(object sender, EventArgs e)
 {
     U13List.Nodes.Clear();
     U13List.EndUpdate();
 }