Exemple #1
0
        private void UpdateTitle()
        {
            Text = string.Format("OleView .NET v{0}", COMUtilities.GetVersion());
            if (COMUtilities.IsAdministrator())
            {
                Text += " - Administrator -";
                menuFileOpenAsAdmin.Visible = false;
            }

            if (Environment.Is64BitOperatingSystem)
            {
                if (!Environment.Is64BitProcess)
                {
                    Text += " - 32bit";
                    menuFileOpenViewer.Text = "Open 64bit Viewer";
                }
                else
                {
                    Text += " - 64bit";
                    menuFileOpenViewer.Text = "Open 32bit Viewer";
                }
            }

            if (m_registry.FilePath != null)
            {
                Text += String.Format(" - {0}", m_registry.FilePath);
            }
        }
 public AboutForm()
 {
     InitializeComponent();
     labelText.Text = string.Format(labelText.Text, COMUtilities.GetVersion());
 }