Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }