public ManageColumnsDialog()
 {
     this.InitializeComponent();
     this.SizeGripProvider = new Nomad.Commons.Controls.SizeGripProvider(this.tlpButtons);
     if (this.lvItems.ExplorerTheme)
     {
         this.imgAligns.ImageSize = new Size(ImageHelper.DefaultSmallIconSize.Width, ImageHelper.DefaultSmallIconSize.Height + 3);
     }
     else
     {
         this.imgAligns.ImageSize = ImageHelper.DefaultSmallIconSize;
     }
     this.imgAligns.AddAspected(IconSet.GetImage("TextAlignLeft"));
     this.imgAligns.AddAspected(IconSet.GetImage("TextAlignRight"));
     this.imgAligns.AddAspected(IconSet.GetImage("TextAlignCenter"));
     this.tsAlign.BackColor = this.BackColor;
     this.tsAlign.Renderer = BorderLessToolStripRenderer.Default;
     this.btnSaveTemplate.Image = IconSet.GetImage("SaveAs");
     this.tsbLeftAlign.Image = IconSet.GetImage("TextAlignLeft");
     this.tsbCenter.Image = IconSet.GetImage("TextAlignCenter");
     this.tsbRightAlign.Image = IconSet.GetImage("TextAlignRight");
     this.tsbLeftAlign.Tag = HorizontalAlignment.Left;
     this.tsbCenter.Tag = HorizontalAlignment.Center;
     this.tsbRightAlign.Tag = HorizontalAlignment.Right;
     this.tsAlign.Padding = new Padding((this.tsAlign.Width - ((this.tsbLeftAlign.Width + this.tsbCenter.Width) + this.tsbRightAlign.Width)) / 2, 0, 0, 0);
     this.cmbTemplate.SetItems<ListViewColumnInfo[]>(Settings.Default.ColumnTemplates);
     bool flag = SettingsManager.CheckSafeMode(SafeMode.SkipFormPlacement) || (Control.ModifierKeys == Keys.Shift);
     FormSettings.RegisterForm(this, flag ? FormPlacement.None : FormPlacement.Size);
 }
 public SelectSearchFoldersDialog()
 {
     this.InitializeComponent();
     this.SizeGripProvider = new Nomad.Commons.Controls.SizeGripProvider(this.tlpButtons);
     this.imlCheck.Images.Add(this.CreateCheckBoxGlyph(CheckBoxState.UncheckedNormal));
     this.imlCheck.Images.Add(this.CreateCheckBoxGlyph(CheckBoxState.CheckedNormal));
     this.imlCheck.Images.Add(this.CreateCheckBoxGlyph(CheckBoxState.MixedNormal));
     bool flag = SettingsManager.CheckSafeMode(SafeMode.SkipFormPlacement) || (Control.ModifierKeys == Keys.Shift);
     FormSettings.RegisterForm(this, flag ? FormPlacement.None : FormPlacement.Size);
 }
 public SelectFolderDialog()
 {
     this.InitializeComponent();
     this.SizeGripProvider = new Nomad.Commons.Controls.SizeGripProvider(this.tlpButtons);
     this.AutoComplete.PreviewEnvironmentVariable += new EventHandler<PreviewEnvironmentVariableEventArgs>(AutoCompleteEvents.PreviewEnvironmentVariable);
     this.AutoComplete.PreviewFileSystemInfo += new EventHandler<PreviewFileSystemInfoEventArgs>(AutoCompleteEvents.PreviewFileSystemInfo);
     if (Settings.Default.UseACSKnownShellFolders)
     {
         this.AutoComplete.GetCustomSource += new EventHandler<GetCustomSourceEventArgs>(AutoCompleteEvents.GetKnownFoldersSource);
         this.AutoComplete.UseCustomSource = true;
     }
     if (Settings.Default.UseACSRecentItems)
     {
         this.AutoComplete.GetCustomSource += new EventHandler<GetCustomSourceEventArgs>(AutoCompleteEvents.GetComboBoxSource);
         this.AutoComplete.UseCustomSource = true;
     }
     bool flag = SettingsManager.CheckSafeMode(SafeMode.SkipFormPlacement) || (Control.ModifierKeys == Keys.Shift);
     FormSettings.RegisterForm(this, flag ? FormPlacement.None : FormPlacement.Size);
 }
 public FilterDialog()
 {
     this.InitializeComponent();
     this.SizeGripProvider = new Nomad.Commons.Controls.SizeGripProvider(this.tlpButtons);
     Binding binding = new Binding("View", Settings.Default, "FilterDialogView", true, DataSourceUpdateMode.OnPropertyChanged) {
         ControlUpdateMode = ControlUpdateMode.Never
     };
     this.filterControlComplex.DataBindings.Add(binding);
     this.tsmiViewBasic.Tag = ComplexFilterView.Basic;
     this.tsmiViewAdvanced.Tag = ComplexFilterView.Advanced;
     this.tsmiViewFull.Tag = ComplexFilterView.Full;
     this.tsView.DataBindings.Add(new Binding("BackColor", this.tlpButtons, "BackColor", false, DataSourceUpdateMode.Never));
     this.tsView.DataBindings.Add(new Binding("Font", this, "Font", false, DataSourceUpdateMode.Never));
     this.tsView.Renderer = BorderLessToolStripRenderer.Default;
     this.tsView.ImageList = this.imageList;
     this.tssbChangeView.Dock = DockStyle.Left;
     this.btnSaveTemplate.Image = IconSet.GetImage("SaveAs");
     this.imageList.Images.Add(Resources.ShowDetail);
     this.imageList.Images.Add(Resources.HideDetail);
 }
 public SelectButtonImage()
 {
     EventHandler handler = null;
     this.components = null;
     this.InitializeComponent();
     this.SizeGripProvider = new Nomad.Commons.Controls.SizeGripProvider(this.tlpButtons);
     List<ListViewItem> list = new List<ListViewItem>();
     foreach (DictionaryEntry entry in IconSet.IconResourceSet)
     {
         Image image = entry.Value as Image;
         if (image != null)
         {
             if (this.ImageSize.IsEmpty)
             {
                 this.ImageSize = image.Size;
             }
             ListViewItem item = new ListViewItem {
                 Tag = image,
                 ImageKey = (string) entry.Key
             };
             list.Add(item);
         }
     }
     this.DefaultItems = list.ToArray();
     if (this.ImageSize.IsEmpty)
     {
         this.ImageSize = new Size(0x10, 0x10);
     }
     this.lvDefault.HandleCreated += new EventHandler(this.ImageListView_HandleCreated);
     this.lvUserDefined.HandleCreated += new EventHandler(this.ImageListView_HandleCreated);
     if (handler == null)
     {
         handler = delegate (object sender, EventArgs e) {
             if (this.UserDefinedContainer != null)
             {
                 this.UserDefinedContainer.Dispose();
             }
         };
     }
     base.Disposed += handler;
 }
 public OptionsDialog()
 {
     this.InitializeComponent();
     this.SizeGripProvider = new Nomad.Commons.Controls.SizeGripProvider(this.tlpButtons);
     this.components = new Container();
     this.InitializeColors();
     base.SuspendLayout();
     bool flag = SettingsManager.CheckSafeMode(SafeMode.SkipFormPlacement) || (Control.ModifierKeys == Keys.Shift);
     FormSettings.RegisterForm(this, flag ? FormPlacement.None : (FormPlacement.Size | FormPlacement.Location));
     OptionsSectionGroup sectionGroup = (OptionsSectionGroup) ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).GetSectionGroup("optionsDialog");
     foreach (OptionsSection section in sectionGroup.OrderedSectionList)
     {
         string sectionCaption = Resources.ResourceManager.GetString(section.SectionCaption);
         if (string.IsNullOrEmpty(sectionCaption))
         {
             sectionCaption = section.SectionCaption;
         }
         string sectionDescription = Resources.ResourceManager.GetString(section.SectionDescription);
         if (string.IsNullOrEmpty(sectionDescription))
         {
             sectionDescription = section.SectionDescription;
         }
         ToolStripItem item = this.AddSectionButton(sectionCaption, sectionDescription, IconSet.GetImage(section.SectionImage));
         if (this.InitialSectionItem == null)
         {
             Control[] controlArray = this.CreateSectionBlocks(section.SectionBlocks);
             foreach (Control control in controlArray)
             {
                 this.components.Add(control);
             }
             this.InitialSectionItem = item;
             this.InitialSectionItem.Tag = controlArray;
         }
         else
         {
             item.Tag = section.SectionBlocks;
         }
     }
     base.ResumeLayout();
 }