public actionButton(string mnemonic, int mode, ImageSorter f) { this.Location = new System.Drawing.Point(3, 3); this.Name = "folderButton"; this.Size = new System.Drawing.Size(150, 22); this.TabIndex = 1; this.UseVisualStyleBackColor = true; this.Click += new System.EventHandler(this.doAction); this.Text = "&" + mnemonic + ")" + (mode == 1?">":(mode == 2?"<":"wut")); Mode = mode; formRef = f; }
public folderButton(string folderPath, PictureBox picBox, string i, ImageSorter f) { this.Location = new System.Drawing.Point(3, 3); this.Name = "folderButton"; this.Size = new System.Drawing.Size(150, 22); this.TabIndex = 1; this.UseVisualStyleBackColor = true; this.Click += new System.EventHandler(this.moveFile); this.Path = folderPath; string[] folderParts = folderPath.Split('\\'); FolderName = folderParts[folderParts.Length - 1]; this.Text = "&" + i + ") " + FolderName; this.PicBox = picBox; this.parentForm = f; }