Example #1
0
 private void MainFrom_SetupUI()
 {
     conversationTabButton.BackgroundImage = Properties.Resources.converstation_select;
     contractButton.BackgroundImage        = Properties.Resources.contract_normal;
     settingTabButton.BackgroundImage      = Properties.Resources.setting_normal;
     HeaderPicture.SizeMode = PictureBoxSizeMode.CenterImage;
     DCWebImageMaanager.shard.downloadImageAsync(SettingMenager.shard.avatar, (image, b) =>
     {
         if (image != null)
         {
             HeaderPicture.BeginInvoke(new EventHandler((s, e) =>
             {
                 HeaderPicture.Image = image;
             }));
         }
     });
     HeaderPicture.Image = Properties.Resources.moren;
 }
 SetValue(HeaderPicture, value);