Ejemplo n.º 1
0
 private void NewFolderButton_Click(object sender, EventArgs e)
 {
     using (CreateFolderDialogue createFolderDialogue = new CreateFolderDialogue())
     {
         int num = (int)createFolderDialogue.ShowDialog();
         if (createFolderDialogue.DialogResult != DialogResult.OK)
         {
             return;
         }
         this.FavouritesComboBox.Items.Add((object)createFolderDialogue.newFavouriteDirectoryInfo);
         this.FavouritesComboBox.SelectedIndex = checked (this.FavouritesComboBox.Items.Count - 1);
     }
 }
 public CreateFolderDialogue()
 {
     this.Load += new EventHandler(this.CreateFolderDialogue_Load);
     CreateFolderDialogue.__ENCAddToList((object)this);
     this.InitializeComponent();
 }