Exemplo n.º 1
0
 public MainForm()
 {
     InitializeComponent();
     isDecrypt = false;
     lbFlag = false;
     friends = new Friends();
     populateFriends();
     btAddImage.Enabled = false;
     btnRemoveImgs.Enabled = false;
 }
Exemplo n.º 2
0
 public AddImage(Friends friends , string friendId)
 {
     InitializeComponent();
     dataGridView1.DataSource = friends.getFriendImagesSource(friendId);
     foreach (DataGridViewColumn cl in dataGridView1.Columns)
     {
         if (cl.Name.Equals("name"))
         {
             cl.Visible = true;
             cl.MinimumWidth = dataGridView1.Width;
         }
         else
         {
             cl.Visible = false;
         }
     }
     this.friendId = friendId;
     this.friends = friends;
 }