示例#1
0
文件: HiganUI.cs 项目: MiLO83/higanui
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        //[STAThread]
        //[DllImport( "snes.dll" )]
        //static extern
        static void Main()
        {
            //check for files, prevents crash.
            if (!File.Exists( "SharpDX.DirectInput.dll" )) MessageBox.Show( "missing - SharpDX.DirectInput.dll." );
            if (!File.Exists( "ObjectListView.dll" )) MessageBox.Show( "missing - ObjectListView.dll." );
            if (!File.Exists( "SevenZipSharp.dll" )) MessageBox.Show( "missing - SevenZipSharp.dll." );
            if (!File.Exists( "SharpDX.DirectInput.dll" )) MessageBox.Show( "missing - SharpDX.DirectInput.dll." );
            if (!File.Exists( "SharpDX.dll" )) MessageBox.Show( "missing - SharpDX.dll." );
            if (!File.Exists( "7z.dll")) MessageBox.Show("missing - 7z.dll.");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault( false );

            splashScreen sp= new splashScreen();
            sp.Show();
            Application.Run( new Form1( sp) );
        }
示例#2
0
文件: main.cs 项目: MiLO83/higanui
        public Form1( splashScreen sp)
        {
            InitializeComponent();

            //7zipdll
            string applicationPath = Path.Combine( Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location ), "7z.dll" );
            SevenZipExtractor.SetLibraryPath( applicationPath );

            //ini file
            string p = System.Reflection.Assembly.GetExecutingAssembly().Location;
            p = p.Substring( 0, p.Length - 3 ) + "ini";
            iniFile = new IniFile( p );

            populateListViews();
            populatemenuCheckStates();
            loadSettings();
            //make a timer for small lists, no need for a timer with large file lists.
            sp.Hide();
        }