MeshExplorer.Settings.Settings C# (CSharp) Method

Settings() public method

public Settings ( ) : System
return System
        public Settings()
        {
            if (Directory.Exists(@"..\..\..\Data\"))
            {
                OfdDirectory = Path.GetFullPath(@"..\..\..\Data\");
            }
            else if (Directory.Exists(@"Data\"))
            {
                OfdDirectory = Path.GetFullPath(@"Data\");
            }
            else
            {
                //System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
                OfdDirectory = Application.StartupPath;
            }

            SfdDirectory = OfdDirectory;
            SfdFilter = "Triangle file (*.node;*.poly)|*.node;*.poly";
            SfdFilter += "|Triangle.NET JSON (*.json)|*.json";
            SfdFilterIndex = 1;

            OfdFilter = SfdFilter;
            //OfdFilter += "|Polygon data (*.dat)|*.dat";
            //OfdFilter += "|COMSOL mesh (*.mphtxt)|*.mphtxt";
            //OfdFilter += "|AVS UCD data (*.ucd)|*.ucd";
            //OfdFilter += "|VTK data (*.vtk)|*.vtk";

            OfdFilterIndex = 0;

            CurrentFile = "";

            RefineMode = false;
            ExceptionThrown = false;
        }
Settings