Example #1
0
        static void Main()
        {
            //Beispiel 123
            string sAppPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);

            //string m_customDBPath = @"\Storage Card\CustomNET\Data\smt_ind890_data.sdf";
            string m_customDBPath = sAppPath + @"\Data\smt_ind890_data.sdf";

            cDB_Settings.CE_ConnectionString =
                m_customDBPath;

            //    string.Format("DataSource={0}", m_customDBPath);

            // Test to see if custom DB exists
            if (!System.IO.File.Exists(m_customDBPath))
            {
                MessageBox.Show("FEHLER 1221: Datenbank nicht installiert");
                MessageBox.Show(m_customDBPath);
                return;
            }

            SiAuto.WriteErrorLog("StartUp", "", null);

            //   Allgemein.FormHelper.cFullScreen f = new Allgemein.FormHelper.cFullScreen();
            //  f.SetFullScreen(true);

            try
            {
                Application.Run(new frmMain());
                //Application.Run(new Form1());
            }
            catch (Exception ex)
            {
            }
            finally
            {
                //    Allgemein.FormHelper.cFullScreen f1 = new Allgemein.FormHelper.cFullScreen();
                //  f1.SetFullScreen(false);
            }
        }