Beispiel #1
0
        private void updateScreen()
        {
            //IL_00c4: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ce: Expected O, but got Unknown
            WeatherResponse weatherResponse = this.weatherResponse = (WeatherResponse)g_Weather.Invoke();
            ISharedResponse sharedResponse  = g_SunRiseSet.Invoke();
            string          text            = SharedObjects.BetweenTimespans(DateTime.Now.TimeOfDay, ((SunRiseSetResponse)sharedResponse).SunRise.TimeOfDay, ((SunRiseSetResponse)sharedResponse).SunSet.TimeOfDay) ? "Day" : "Night";
            string          name            = Enum.GetName(typeof(SharedObjects.WeatherTypes), weatherResponse.WType);

            trayIcon.set_Tooltip($"{name} {weatherResponse.Temp}");
            _ = text + name;
            trayIcon.set_Pixbuf((Pixbuf)(object)new Pixbuf(GetWeatherIconPath(weatherResponse.WType, text == "Day")));
        }
Beispiel #2
0
 public tray()
 {
     //IL_0001: Unknown result type (might be due to invalid IL or missing references)
     //IL_000b: Expected O, but got Unknown
     //IL_0064: Unknown result type (might be due to invalid IL or missing references)
     //IL_006e: Expected O, but got Unknown
     //IL_0069: Unknown result type (might be due to invalid IL or missing references)
     //IL_0073: Expected O, but got Unknown
     //IL_008a: Unknown result type (might be due to invalid IL or missing references)
     //IL_0094: Expected O, but got Unknown
     Application.Init();
     Load();
     trayIcon = (StatusIcon)(object)new StatusIcon((Pixbuf)(object)new Pixbuf("icons" + Path.DirectorySeparatorChar + "fog.png"));
     trayIcon.set_Visible(true);
     trayIcon.add_PopupMenu((PopupMenuHandler)(object)new PopupMenuHandler(OnTrayIconPopup));
     trayIcon.set_Tooltip("Hello World Icon");
     updateScreen();
 }