- Main Page
- Packages
- Classes
- Files

- File List
- File Members

# D:/guillaume/guillara/3D/DXGfx/DXGfxLib/FileNameUIEditor.cs

Go to the documentation of this file.

    00001 using System;
    00002 using System.Collections.Generic;
    00003 using System.ComponentModel;
    00004 using System.Drawing;
    00005 using System.Data;
    00006 using System.Text;
    00007 using System.Windows.Forms;
    00008
    00009 namespace DXGfxLib
    00010 {
    00011     public partial class FileNameUIEditor : Form
    00012     {
    00013         public string associatedFileName = "";
    00014
    00015         public FileNameUIEditor()
    00016         {
    00017             InitializeComponent();
    00018         }
    00019
    00020         public FileNameUIEditor(string fileName)
    00021         {
    00022             associatedFileName = fileName;
    00023         }
    00024
    00025         void selectBtn_Click(object sender, EventArgs e)
    00026         {
    00027             OpenFileDialog opdlg = new OpenFileDialog();
    00028
    00029             opdlg.Filter = "All files (*.*)|*.*";
    00030             opdlg.FilterIndex = 1;
    00031
    00032             if (opdlg.ShowDialog() == DialogResult.OK)
    00033             {
    00034                 associatedFileName = opdlg.FileName;
    00035             }
    00036         }
    00037
    00038         public void Execute()
    00039         {
    00040             OpenFileDialog opdlg = new OpenFileDialog();
    00041
    00042             opdlg.Filter = "All files (*.*)|*.*";
    00043             opdlg.FilterIndex = 1;
    00044
    00045             if (opdlg.ShowDialog() == DialogResult.OK)
    00046             {
    00047                 associatedFileName = opdlg.FileName;
    00048             }
    00049         }
    00050     }
    00051 }