Exemplo n.º 1
0
 private void iconReplacementModeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.DockSettings.General.IconReplacementMode = this.iconReplacementModeToolStripMenuItem.Checked;
     this.DockSettings.SetEntry("General", "IconReplacementMode", this.iconReplacementModeToolStripMenuItem.Checked.ToString());
     if (this.DockSettings.General.IconReplacementMode)
     {
         FileOps.FileOps fileOps = new FileOps.FileOps(IntPtr.Zero, this.Language, this.DockSettings);
         fileOps.Open(Application.StartupPath + "\\System\\Icons", "", ProcessWindowStyle.Normal, base.Handle);
     }
 }
Exemplo n.º 2
0
 public void InitializeFileOps()
 {
     if (this.DockItemSectionName != null && this.DockItemSectionName != "")
     {
         if (this.DockItemSettings.GetEntry(this.DockItemSectionName, "Action") == "[link]")
         {
             this.FileOperations = new FileOps.FileOps(IntPtr.Zero, this.DockItemSettings.GetEntry(this.DockItemSectionName, "Args"), this.Language, this.DockSettings);
             string entry = this.DockItemSettings.GetEntry(this.DockItemSectionName, "Name");
             if (entry.Length > 0)
             {
                 this.FileOperations.Name = entry;
             }
         }
         else if (this.DockItemSettings.GetEntry(this.DockItemSectionName, "Action") == "[dockfolder]")
         {
             this.FileOperations = new FileOps.FileOps(IntPtr.Zero, this.Language, this.DockSettings);
             string entry = this.DockItemSettings.GetEntry(this.DockItemSectionName, "Name");
             if (entry.Length > 0)
             {
                 this.FileOperations.Name = entry;
             }
         }
     }
 }