Ejemplo n.º 1
0
        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
#if TRACE
            long startTicks = VNC.AppLog.Trace5("Enter", LOG_APPNAME, CLASS_BASE_ERRORNUMBER + 0);
#endif
            // Do not load your data at design time.
            if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            {
                // HACK(crhodes)
                // Disable loading data so we can run app
                //Common.ApplicationDataSet.LoadApplicationDataSetFromDB(Common.ApplicationDataSet);

                // but pretend we have
                SQLInformation.Common.DataFullyLoaded = true;
            }

            VNC.AssemblyHelper.AssemblyInformation info = new VNC.AssemblyHelper.AssemblyInformation(System.Reflection.Assembly.GetExecutingAssembly());

            var eventMessage = string.Format("Started Version: {0}", info.InformationalVersionAttribute);

            SQLInformation.Helper.IndicateApplicationUsage(LOG_APPNAME, DateTime.Now, Common.CurrentUser.Identity.Name, eventMessage);

            Common.UserMode      = new ViewMode(SQLInformation.Data.Config.DefaultUserMode);
            Common.RowDetailMode = SQLInformation.Data.Config.RowDetailMode;

#if TRACE
            VNC.AppLog.Trace5("Exit", LOG_APPNAME, CLASS_BASE_ERRORNUMBER + 2, startTicks);
#endif
        }
Ejemplo n.º 2
0
        private void DXWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            //AssemblyHelper.AssemblyInformation info = new AssemblyHelper.AssemblyInformation(System.Reflection.Assembly.GetCallingAssembly());
            VNC.AssemblyHelper.AssemblyInformation info = new VNC.AssemblyHelper.AssemblyInformation(System.Reflection.Assembly.GetExecutingAssembly());

            tb_Version.Text            = info.Version;
            tb_FileVersion.Text        = info.FileVersionAttribute;
            tb_InformationVersion.Text = info.InformationalVersionAttribute;

            textBlock_AppConfig.Text = SQLInformation.Data.Config.GetAllConfigInfo();
        }