Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            CN.ConnectionString  = "SERVER=" + OSAEApi.DBConnection + ";" + "DATABASE=" + OSAEApi.DBName + ";" + "PORT=" + OSAEApi.DBPort + ";" + "UID=" + OSAEApi.DBUsername + ";" + "PASSWORD="******";";
            CN2.ConnectionString = "SERVER=" + OSAEApi.DBConnection + ";" + "DATABASE=" + OSAEApi.DBName + ";" + "PORT=" + OSAEApi.DBPort + ";" + "UID=" + OSAEApi.DBUsername + ";" + "PASSWORD="******";";

            Load_App_Name();
            gCurrentScreen = OSAEApi.GetObjectProperty(gAppName, "Default Screen");
            if (gCurrentScreen == "")
            {
                Set_Default_Screen();
            }
            Load_Screen(gCurrentScreen);
            timer.Interval = TimeSpan.FromSeconds(5);
            timer.Tick    += new EventHandler(timer_Tick);
            timer.Start();
        }