예제 #1
0
        private void MenuAboutClick(object sender, EventArgs e)
        {
            //IL_0115: Unknown result type (might be due to invalid IL or missing references)
            //IL_011b: Expected O, but got Unknown
            _ = GetType().Assembly.GetName().Name;
            StringBuilder stringBuilder = new StringBuilder();

            object[] customAttributes = GetType().Assembly.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), inherit: false);
            if (customAttributes.Length != 0)
            {
                stringBuilder.Append(((AssemblyDescriptionAttribute)customAttributes[0]).Description).Append(Environment.NewLine);
            }
            stringBuilder.Append(Environment.NewLine);
            stringBuilder.Append("Version: ").Append(GetType().Assembly.GetName().Version.ToString()).Append(Environment.NewLine);
            object[] customAttributes2 = GetType().Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), inherit: false);
            if (customAttributes2.Length != 0)
            {
                stringBuilder.Append("Copyright: ").Append(((AssemblyCopyrightAttribute)customAttributes2[0]).Copyright).Append(Environment.NewLine);
            }
            stringBuilder.Append(Environment.NewLine);
            stringBuilder.Append(ExtractInfo(g_Weather));
            stringBuilder.Append(ExtractInfo(g_SunRiseSet));
            AboutDialog val = (AboutDialog)(object)new AboutDialog();

            ((Window)val).SetPosition((WindowPosition)3);
            ((Window)val).set_Title("Simple Weather Tray Gtk Edition");
            val.set_Authors(new string[1]
            {
                "Luke Liukonen"
            });
            val.set_Comments(stringBuilder.ToString());
            ((Widget)val).Show();
        }