private void RemoveFolder() { if (this._listOfFolders.Count == 0) { return; } CustumFolder remove = this._listOfFolders[this._listOfFolders.Count - 1]; this._listOfFolders.RemoveAt(this._listOfFolders.Count - 1); _nextPossitionCustomFolderY -= PANEL_CHECKBOX_CUSTOMFOLDERS_SIZE_Y + PANEL_CHECKBOX_PADDING_Y; remove.Dispose(); }
private void AddFolder() { CustumFolder custumFolder = new CustumFolder() { Checked = true, Location = new Point(PANEL_CHECKBOX_CUSTOMFOLDERS_POSSITION_X, _nextPossitionCustomFolderY) }; custumFolder.ChangeDirectoryBrowserDialog(); _listOfFolders.Add(custumFolder); this.pnlChooseFolders.Controls.Add(custumFolder); _nextPossitionCustomFolderY += PANEL_CHECKBOX_CUSTOMFOLDERS_SIZE_Y + PANEL_CHECKBOX_PADDING_Y; }