public MainForm() { SideBar.Width = GetSideBarWidth(); this.Text = AppString.General.AppName; this.ForeColor = Color.FromArgb(80, 80, 80); this.Controls.Add(new ExplorerRestarter()); donateBox.Parent = aboutMeBox.Parent = dictionariesBox.Parent = languagesBox.Parent = appSettingBox.Owner = shellList.Owner = shellNewList.Owner = sendToList.Owner = openWithList.Owner = winXList.Owner = guidBlockedList.Owner = enhanceMenusList.Owner = thirdRuleList.Owner = iEList.Owner = MainBody; ToolBar.SelectedButtonChanged += (sender, e) => SwitchTab(ToolBar.SelectedIndex); SideBar.HoverIndexChanged += (sender, e) => ShowItemInfo(); SideBar.SelectIndexChanged += (sender, e) => SwitchItem(); ToolBarButtons[3].MouseDown += (sender, e) => SwitchItem(); ToolBar.AddButtons(ToolBarButtons); ToolBar.SelectedIndex = 0; if (AppConfig.ShowFilePath) { ShowFilePath(); } var droper = new ElevatedFileDroper(this); droper.DragDrop += (sender, e) => { ShellList.CurrentFileObjectPath = droper.DropFilePaths[0]; SwitchTab(1, 9); }; }
private void DragDropToAnalysis() { var droper = new ElevatedFileDroper(this); droper.DragDrop += (sender, e) => { ShellList.CurrentFileObjectPath = droper.DropFilePaths[0]; JumpItem(1, 9); }; }