Esempio n. 1
0
 private void OnPlatformChangedEvent(object sender, EventArgs e)
 {
     platformLabel.Text = PlatformModel.GetPlatformName(activityModel.platform);
     if (activityModel.titleName == null && activityModel.npTitleId == null)
     {
         OnGameCloseEvent(this, null);
     }
     else
     {
         OnGameChangedEvent(this, null);
     }
 }
Esempio n. 2
0
        private void initGameTypes()
        {
            String titleName = OnPS.activityModel.titleName;
            String platform  = PsnPlatformComboBox.SelectedItem.ToString();

            if (titleName == null || OnPS.activityModel.platform != platform)
            {
                titleName = SampleGameName;
            }
            var dict = new Dictionary <int, string>();

            dict.Add(int.Parse(GameViewModel.DEFAULT), titleName + " - " + PlatformModel.GetPlatformName(platform));
            dict.Add(int.Parse(GameViewModel.PLATFORM_SHORTCUT), titleName + " - " + platform);
            dict.Add(int.Parse(GameViewModel.GAME_NAME_ONLY), titleName);
            GameType.DataSource    = new BindingSource(dict, null);
            GameType.DisplayMember = "Value";
            GameType.ValueMember   = "Key";
        }
Esempio n. 3
0
 private void InitializeGui()
 {
     this.gameStatusLabel.Text   = "";
     this.onlineStatusLabel.Text = "";
     this.platformLabel.Text     = "";
     this.titleNameLabel.Text    = "";
     pictureBox1.LoadAsync(activityModel.avatarUrl);
     platformLabel.Text     = PlatformModel.GetPlatformName(activityModel.platform);
     onlineStatusLabel.Text = activityModel.onlineStatus;
     if (activityModel.gameStatus != null)
     {
         OnGameStatusChangedEvent(this, new EventArgs());
     }
     if (activityModel.onlineStatus == OnlineStatusModel.ONLINE)
     {
         if (activityModel.npTitleId != null && activityModel.titleName != null)
         {
             OnGameChangedEvent(this, new EventArgs());
         }
     }
 }
Esempio n. 4
0
 private void OnOnlineStatusChangedEvent(object sender, EventArgs e)
 {
     onlineStatusLabel.Text = activityModel.onlineStatus;
     Utils.ShowNotify(Program.notifyIcon, PlatformModel.GetPlatformName(activityModel.platform) + " Online Status: " + activityModel.onlineStatus);
 }