示例#1
0
        private void DisplayAssemblyInfo()
        {
            Assembly asmb = Assembly.GetExecutingAssembly();

            AssemblyHelper.AssemblyInformation info = new AssemblyHelper.AssemblyInformation(asmb);
            MessageBox.Show(info.ToString(), "Assembly Information");
        }
示例#2
0
        private void DXWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            //AssemblyHelper.AssemblyInformation info = new AssemblyHelper.AssemblyInformation(System.Reflection.Assembly.GetCallingAssembly());
            AssemblyHelper.AssemblyInformation info = new AssemblyHelper.AssemblyInformation(System.Reflection.Assembly.GetExecutingAssembly());

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

            textBlock_AppConfig.Text = VNCAssemblyViewer.Data.Config.GetAllConfigInfo();
        }
示例#3
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))
            {
                //Common.ApplicationDS.LoadApplicationDataSetFromDB(Common.ApplicationDS);
            }

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

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

            VNCAssemblyViewer.Usage.IndicateApplicationUsage(LOG_APPNAME, DateTime.Now, Common.CurrentUser.Identity.Name, eventMessage);

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

#if TRACE
            VNC.AppLog.Trace5("Exit", LOG_APPNAME, CLASS_BASE_ERRORNUMBER + 2, startTicks);
#endif
        }
示例#4
0
        ///// <summary>
        /////
        ///// </summary>
        ///// <param name="commandBar">Which bar to add method to</param>
        ///// <param name="buttonStyle">The type of button to put on the bar</param>
        ///// <remarks></remarks>
        //public AddInInfo(ref CommandBar commandBar, ref MsoButtonStyle buttonStyle)
        //{
        //    base.Name = _NAME;
        //    base.CommandBar = commandBar;
        //    base.EventHandler = Action;
        //    base.ButtonStyle = buttonStyle;
        //    base.BitMapName = _BITMAP_NAME;
        //    base.Asmbly = Assembly.GetExecutingAssembly();
        //    base.Caption = _CAPTION;
        //    base.ToolTipText = _TOOL_TIP_TEXT;
        //    base.Description = _DESCRIPTION;

        //    base.Initialize();
        //}


        public static void DisplayInfo()
        {
            //AssemblyHelper.AssemblyInformation info = new AssemblyHelper.AssemblyInformation(System.Reflection.Assembly.GetExecutingAssembly());
            VNC.AssemblyHelper.AssemblyInformation info = new AssemblyHelper.AssemblyInformation(System.Reflection.Assembly.GetCallingAssembly());
            MessageBox.Show(info.ToString());
        }