public static void ViewPaletteFile() { OpenFileDialog openFile = new OpenFileDialog(); openFile.Title = "Open A Palette File:"; openFile.Filter = "Krypton Palette Files (*.xml)|*.xml"; if (openFile.ShowDialog() == DialogResult.OK) { PaletteFileEditor paletteFileEditor = new PaletteFileEditor(Path.GetFullPath(openFile.FileName)); paletteFileEditor.Show(); } }
private void kbtnViewPaletteFile_Click(object sender, EventArgs e) { OpenFileDialog openFile = new OpenFileDialog(); openFile.Title = "Open A Palette File:"; openFile.Filter = "Krypton Palette Files (*.xml)|*.xml"; if (openFile.ShowDialog() == DialogResult.OK) { PaletteFileEditor paletteFileEditor = new PaletteFileEditor(Path.GetFullPath(openFile.FileName)); paletteFileEditor.Show(); } }
public static void ViewPaletteFile() { CommonOpenFileDialog openFile = new CommonOpenFileDialog(); openFile.Title = "Open A Palette File:"; openFile.Filters.Add(new CommonFileDialogFilter("Krypton Palette Files", "xml")); if (openFile.ShowDialog() == CommonFileDialogResult.Ok) { PaletteFileEditor paletteFileEditor = new PaletteFileEditor(Path.GetFullPath(openFile.FileName)); paletteFileEditor.Show(); } }
private void kryptonButton2_Click(object sender, EventArgs e) { PaletteFileEditor paletteFileEditor = new PaletteFileEditor(); paletteFileEditor.Show(); }