Example #1
0
        // Add to common history
        private void TextBox_KeyDown(object sender, KeyEventArgs e)
        {
            if (historicCommonMode && e.Key == Key.Return)
            {
                // set the expander visibility
                if (historicCommon.Count == 0)
                {
                    ExpanderVisibility(true);
                }

                // Delete File and Folder Number
                TextBoxHint _sender = sender as TextBoxHint;
                string      _text   = _sender.Text;
                if (_sender.FolderNumber)
                {
                    _text = _sender.Text.Replace("<FolderNumber>", "");
                }
                if (_sender.FileNumber)
                {
                    _text = _sender.Text.Replace("<FileNumber>", "");
                }

                // Update the history list
                if (!historicCommon.Contains(_text))
                {
                    historicCommon.Insert(0, _text);
                    if (historicCommon.Count > _historicLimit)
                    {
                        historicCommon.Remove(historicCommon[_historicLimit]);
                    }
                }
            }
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SpinnerGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.NumTxt = ((File_Renamer.TextBoxHint)(target));
                return;

            case 3:
                this.Up = ((System.Windows.Controls.Button)(target));

            #line 87 "..\..\..\src\Spinner.xaml"
                this.Up.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Up_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 87 "..\..\..\src\Spinner.xaml"
                this.Up.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Up_PreviewMouseLeftButtonUp);

            #line default
            #line hidden

            #line 87 "..\..\..\src\Spinner.xaml"
                this.Up.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Buttons_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 4:
                this.Down = ((System.Windows.Controls.Button)(target));

            #line 88 "..\..\..\src\Spinner.xaml"
                this.Down.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Down_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 88 "..\..\..\src\Spinner.xaml"
                this.Down.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Down_PreviewMouseLeftButtonUp);

            #line default
            #line hidden

            #line 88 "..\..\..\src\Spinner.xaml"
                this.Down.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Buttons_MouseRightButtonUp);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.textBox = ((File_Renamer.TextBoxHint)(target));

            #line 10 "..\..\..\src\TextBoxHint.xaml"
                this.textBox.Loaded += new System.Windows.RoutedEventHandler(this.TextBox_Loaded);

            #line default
            #line hidden

            #line 11 "..\..\..\src\TextBoxHint.xaml"
                this.textBox.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBox_PreviewMouseDown);

            #line default
            #line hidden

            #line 12 "..\..\..\src\TextBoxHint.xaml"
                this.textBox.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBox_MouseEnter);

            #line default
            #line hidden

            #line 13 "..\..\..\src\TextBoxHint.xaml"
                this.textBox.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBox_MouseLeave);

            #line default
            #line hidden

            #line 14 "..\..\..\src\TextBoxHint.xaml"
                this.textBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden

            #line 15 "..\..\..\src\TextBoxHint.xaml"
                this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

            #line default
            #line hidden

            #line 16 "..\..\..\src\TextBoxHint.xaml"
                this.textBox.LostFocus += new System.Windows.RoutedEventHandler(this.TextBox_LostFocus);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #4
0
 // Set the rename buttons enabled state and set the actuel textbox
 private void TextBox_GotFocus(object sender, RoutedEventArgs e)
 {
     FileNumberBtn.IsEnabled = true;
     LastTextBox             = (TextBoxHint)sender;
     if (LastTextBox.FileNumber)
     {
         FileNumberBtn.IsChecked = true;
     }
     else
     {
         FileNumberBtn.IsChecked = false;
     }
 }
Example #5
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.textBox = ((File_Renamer.TextBoxHint)(target));
     
     #line 10 "..\..\..\src\TextBoxHint.xaml"
     this.textBox.Loaded += new System.Windows.RoutedEventHandler(this.TextBox_Loaded);
     
     #line default
     #line hidden
     
     #line 11 "..\..\..\src\TextBoxHint.xaml"
     this.textBox.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBox_PreviewMouseDown);
     
     #line default
     #line hidden
     
     #line 12 "..\..\..\src\TextBoxHint.xaml"
     this.textBox.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBox_MouseEnter);
     
     #line default
     #line hidden
     
     #line 13 "..\..\..\src\TextBoxHint.xaml"
     this.textBox.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBox_MouseLeave);
     
     #line default
     #line hidden
     
     #line 14 "..\..\..\src\TextBoxHint.xaml"
     this.textBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);
     
     #line default
     #line hidden
     
     #line 15 "..\..\..\src\TextBoxHint.xaml"
     this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);
     
     #line default
     #line hidden
     
     #line 16 "..\..\..\src\TextBoxHint.xaml"
     this.textBox.LostFocus += new System.Windows.RoutedEventHandler(this.TextBox_LostFocus);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Example #6
0
 // Get the text of specified textbox
 private string CheckTextBoxText(TextBoxHint txt, int i)
 {
     if (!txt.IsEmpty() && txt.EditMode)
     {
         if (txt.FileNumber)
         {
             return((txt.Text).Replace("<FileNumber>", Increment(FilesList[i].Number.ToString())));
         }
         else
         {
             return(txt.Text);
         }
     }
     else
     {
         return(string.Empty);
     }
 }
Example #7
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.FileRenamer = ((File_Renamer.MainWindow)(target));
     return;
     case 10:
     this.MainBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 11:
     this.MainBordergrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 12:
     this.TitleGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 13:
     this.MainMenu = ((System.Windows.Controls.Menu)(target));
     return;
     case 14:
     this.FileRenamerMenu = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 15:
     this.NormalMode = ((System.Windows.Controls.MenuItem)(target));
     
     #line 426 "..\..\MainWindow.xaml"
     this.NormalMode.Click += new System.Windows.RoutedEventHandler(this.NormalMode_Click);
     
     #line default
     #line hidden
     
     #line 426 "..\..\MainWindow.xaml"
     this.NormalMode.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.GetColumnWidth);
     
     #line default
     #line hidden
     return;
     case 16:
     this.AdvancedMode = ((System.Windows.Controls.MenuItem)(target));
     
     #line 427 "..\..\MainWindow.xaml"
     this.AdvancedMode.Click += new System.Windows.RoutedEventHandler(this.AdvancedMode_Click);
     
     #line default
     #line hidden
     
     #line 427 "..\..\MainWindow.xaml"
     this.AdvancedMode.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.GetColumnWidth);
     
     #line default
     #line hidden
     return;
     case 17:
     this.IncrementPadding = ((System.Windows.Controls.MenuItem)(target));
     
     #line 429 "..\..\MainWindow.xaml"
     this.IncrementPadding.Click += new System.Windows.RoutedEventHandler(this.IncrementPadding_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.DefaultPadding = ((System.Windows.Controls.MenuItem)(target));
     
     #line 430 "..\..\MainWindow.xaml"
     this.DefaultPadding.Click += new System.Windows.RoutedEventHandler(this.IncrementPadding_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.NoPadding = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 20:
     this.TenPadding = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 21:
     this.HundredPadding = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 22:
     this.ThousandPadding = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 23:
     this.TenThousandPadding = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 24:
     this.HundredThousandPadding = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 25:
     this.MillionPadding = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 26:
     this.AboutMenu = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 27:
     this.Help = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 28:
     this.About = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 29:
     this.Donate = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 30:
     this.PART_TITLE = ((System.Windows.Controls.Label)(target));
     
     #line 446 "..\..\MainWindow.xaml"
     this.PART_TITLE.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.PART_TITLE_MouseDoubleClick);
     
     #line default
     #line hidden
     
     #line 446 "..\..\MainWindow.xaml"
     this.PART_TITLE.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.PART_TITLE_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 446 "..\..\MainWindow.xaml"
     this.PART_TITLE.MouseMove += new System.Windows.Input.MouseEventHandler(this.PART_TITLE_MouseMove);
     
     #line default
     #line hidden
     return;
     case 31:
     this.PART_CLOSE = ((System.Windows.Controls.Button)(target));
     
     #line 447 "..\..\MainWindow.xaml"
     this.PART_CLOSE.Click += new System.Windows.RoutedEventHandler(this.PART_CLOSE_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.ClosePath = ((System.Windows.Shapes.Path)(target));
     return;
     case 33:
     this.PART_MAXIMISE = ((System.Windows.Controls.Button)(target));
     
     #line 451 "..\..\MainWindow.xaml"
     this.PART_MAXIMISE.Click += new System.Windows.RoutedEventHandler(this.PART_MAXIMIZE_RESTORE_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.NormalPath = ((System.Windows.Shapes.Path)(target));
     return;
     case 35:
     this.PART_RESTORE = ((System.Windows.Controls.Button)(target));
     
     #line 454 "..\..\MainWindow.xaml"
     this.PART_RESTORE.Click += new System.Windows.RoutedEventHandler(this.PART_MAXIMIZE_RESTORE_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.RestorePath = ((System.Windows.Shapes.Path)(target));
     return;
     case 37:
     this.PART_MINIMISE = ((System.Windows.Controls.Button)(target));
     
     #line 457 "..\..\MainWindow.xaml"
     this.PART_MINIMISE.Click += new System.Windows.RoutedEventHandler(this.PART_MINIMISE_Click);
     
     #line default
     #line hidden
     return;
     case 38:
     this.MinimizePath = ((System.Windows.Shapes.Path)(target));
     return;
     case 39:
     this.CenterGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 40:
     this.TopToolBarGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 41:
     this.ChoosePanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 42:
     this.RenameBtn = ((System.Windows.Controls.RadioButton)(target));
     
     #line 474 "..\..\MainWindow.xaml"
     this.RenameBtn.Click += new System.Windows.RoutedEventHandler(this.RenameChoose);
     
     #line default
     #line hidden
     return;
     case 43:
     this.Arrow_Copy1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 44:
     this.ReplaceBtn = ((System.Windows.Controls.RadioButton)(target));
     
     #line 486 "..\..\MainWindow.xaml"
     this.ReplaceBtn.Click += new System.Windows.RoutedEventHandler(this.RenameChoose);
     
     #line default
     #line hidden
     return;
     case 45:
     this.SubArrow_Copy = ((System.Windows.Controls.Canvas)(target));
     return;
     case 46:
     this.RenameTxt = ((File_Renamer.TextBoxHint)(target));
     return;
     case 47:
     this.ReplaceTxt = ((File_Renamer.TextBoxHint)(target));
     return;
     case 48:
     this.WithTxt = ((File_Renamer.TextBoxHint)(target));
     return;
     case 49:
     this.TrimStartSpn = ((File_Renamer.Spinner)(target));
     return;
     case 50:
     this.PrefixTxt = ((File_Renamer.TextBoxHint)(target));
     return;
     case 51:
     this.TrimEndSpn = ((File_Renamer.Spinner)(target));
     return;
     case 52:
     this.SuffixTxt = ((File_Renamer.TextBoxHint)(target));
     return;
     case 53:
     this.RenamePanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 54:
     this.FolderNumberBtn = ((System.Windows.Controls.Button)(target));
     
     #line 507 "..\..\MainWindow.xaml"
     this.FolderNumberBtn.Click += new System.Windows.RoutedEventHandler(this.FolderNumberBtn_Click);
     
     #line default
     #line hidden
     return;
     case 55:
     this.NewFolder = ((System.Windows.Controls.Canvas)(target));
     return;
     case 56:
     this.FileNumberBtn = ((System.Windows.Controls.Button)(target));
     
     #line 519 "..\..\MainWindow.xaml"
     this.FileNumberBtn.Click += new System.Windows.RoutedEventHandler(this.FileNumberBtn_Click);
     
     #line default
     #line hidden
     return;
     case 57:
     this.NewFile_Copy = ((System.Windows.Controls.Canvas)(target));
     return;
     case 58:
     this.RenameSelBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 59:
     this.RenameSel1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 60:
     this.RenameAllBtn = ((System.Windows.Controls.Button)(target));
     
     #line 540 "..\..\MainWindow.xaml"
     this.RenameAllBtn.Click += new System.Windows.RoutedEventHandler(this.RenameAllBtn_Click);
     
     #line default
     #line hidden
     return;
     case 61:
     this.RenameAll1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 62:
     this.CenterMainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 63:
     this.CenterMainGrid0 = ((System.Windows.Controls.ColumnDefinition)(target));
     return;
     case 64:
     this.CenterMainGrid1 = ((System.Windows.Controls.ColumnDefinition)(target));
     return;
     case 65:
     this.CenterMainGrid2 = ((System.Windows.Controls.ColumnDefinition)(target));
     return;
     case 66:
     this.ExplorerGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 67:
     this.Computer = ((System.Windows.Controls.Canvas)(target));
     return;
     case 68:
     this.ExplorerTextBloc = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 69:
     this.AddFolderBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 70:
     this.Plus = ((System.Windows.Controls.Canvas)(target));
     return;
     case 71:
     this.AddSubFoldersBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 72:
     this.PlusSub = ((System.Windows.Controls.Canvas)(target));
     return;
     case 73:
     this.ExplorerTv = ((System.Windows.Controls.TreeView)(target));
     
     #line 610 "..\..\MainWindow.xaml"
     this.ExplorerTv.Loaded += new System.Windows.RoutedEventHandler(this.ExplorerTv_Loaded);
     
     #line default
     #line hidden
     
     #line 610 "..\..\MainWindow.xaml"
     this.ExplorerTv.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.ExplorerTv_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 74:
     this.DataGridsGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 75:
     this.FolderGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 76:
     this.NewFolder_Copy = ((System.Windows.Controls.Canvas)(target));
     return;
     case 77:
     this.FoldersTextBloc = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 78:
     this.UpFoldersBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 79:
     this.Arrow = ((System.Windows.Controls.Canvas)(target));
     return;
     case 80:
     this.TopFoldersBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 81:
     this.SplitArrow = ((System.Windows.Controls.Canvas)(target));
     return;
     case 82:
     this.DownFoldersBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 83:
     this.Arrow_Copy = ((System.Windows.Controls.Canvas)(target));
     return;
     case 84:
     this.BottomFoldersBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 85:
     this.SplitArrow_Copy = ((System.Windows.Controls.Canvas)(target));
     return;
     case 86:
     this.DeleteFoldersBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 87:
     this.Delete = ((System.Windows.Controls.Canvas)(target));
     return;
     case 88:
     this.FoldersDG = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 89:
     this.DataGridsGridSplitter = ((System.Windows.Controls.GridSplitter)(target));
     return;
     case 90:
     this.FilesGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 91:
     this.NewFile = ((System.Windows.Controls.Canvas)(target));
     return;
     case 92:
     this.FilesTextBloc = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 93:
     this.UpFilesBtn = ((System.Windows.Controls.Button)(target));
     
     #line 764 "..\..\MainWindow.xaml"
     this.UpFilesBtn.Click += new System.Windows.RoutedEventHandler(this.UpItemDG);
     
     #line default
     #line hidden
     return;
     case 94:
     this.Arrow1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 95:
     this.TopFilesBtn = ((System.Windows.Controls.Button)(target));
     
     #line 784 "..\..\MainWindow.xaml"
     this.TopFilesBtn.Click += new System.Windows.RoutedEventHandler(this.TopItemDG);
     
     #line default
     #line hidden
     return;
     case 96:
     this.SplitArrow1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 97:
     this.DownFilesBtn = ((System.Windows.Controls.Button)(target));
     
     #line 812 "..\..\MainWindow.xaml"
     this.DownFilesBtn.Click += new System.Windows.RoutedEventHandler(this.DownItemDG);
     
     #line default
     #line hidden
     return;
     case 98:
     this.Arrow_Copy2 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 99:
     this.BottomFilesBtn = ((System.Windows.Controls.Button)(target));
     
     #line 832 "..\..\MainWindow.xaml"
     this.BottomFilesBtn.Click += new System.Windows.RoutedEventHandler(this.BottomItemDG);
     
     #line default
     #line hidden
     return;
     case 100:
     this.SplitArrow_Copy1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 101:
     this.DeleteFilesBtn = ((System.Windows.Controls.Button)(target));
     return;
     case 102:
     this.Delete1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 103:
     this.FilesDG = ((System.Windows.Controls.DataGrid)(target));
     
     #line 872 "..\..\MainWindow.xaml"
     this.FilesDG.BeginningEdit += new System.EventHandler<System.Windows.Controls.DataGridBeginningEditEventArgs>(this.FilesDG_BeginningEdit);
     
     #line default
     #line hidden
     
     #line 872 "..\..\MainWindow.xaml"
     this.FilesDG.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.FilesDG_MouseRightButtonUp);
     
     #line default
     #line hidden
     
     #line 872 "..\..\MainWindow.xaml"
     this.FilesDG.CellEditEnding += new System.EventHandler<System.Windows.Controls.DataGridCellEditEndingEventArgs>(this.FilesDG_CellEditEnding);
     
     #line default
     #line hidden
     return;
     case 105:
     this.PopupTest = ((System.Windows.Controls.Primitives.Popup)(target));
     return;
     case 106:
     
     #line 919 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Open_Click);
     
     #line default
     #line hidden
     return;
     case 107:
     
     #line 920 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Show_Click);
     
     #line default
     #line hidden
     return;
     case 108:
     this.Message = ((File_Renamer.MessageUser)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #8
0
 // Set the rename buttons enabled state and set the actuel textbox
 private void TextBox_GotFocus(object sender, RoutedEventArgs e)
 {
     FileNumberBtn.IsEnabled = true;
     LastTextBox = (TextBoxHint)sender;
     if (LastTextBox.FileNumber)
     {
         FileNumberBtn.IsChecked = true;
     }
     else
     {
         FileNumberBtn.IsChecked = false;
     }
 }
Example #9
0
        // Get the text of specified textbox
        private string CheckTextBoxText(TextBoxHint txt, int i)
        {
            if (!txt.IsEmpty() && txt.EditMode)
            {
                if (txt.FileNumber) return (txt.Text).Replace("<FileNumber>", Increment(FilesList[i].Number.ToString()));
                else return txt.Text;
            }
            else return string.Empty;

        }
Example #10
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.SpinnerGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.NumTxt = ((File_Renamer.TextBoxHint)(target));
     return;
     case 3:
     this.Up = ((System.Windows.Controls.Button)(target));
     
     #line 87 "..\..\..\src\Spinner.xaml"
     this.Up.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Up_PreviewMouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 87 "..\..\..\src\Spinner.xaml"
     this.Up.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Up_PreviewMouseLeftButtonUp);
     
     #line default
     #line hidden
     
     #line 87 "..\..\..\src\Spinner.xaml"
     this.Up.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Buttons_MouseRightButtonUp);
     
     #line default
     #line hidden
     return;
     case 4:
     this.Down = ((System.Windows.Controls.Button)(target));
     
     #line 88 "..\..\..\src\Spinner.xaml"
     this.Down.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Down_PreviewMouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 88 "..\..\..\src\Spinner.xaml"
     this.Down.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Down_PreviewMouseLeftButtonUp);
     
     #line default
     #line hidden
     
     #line 88 "..\..\..\src\Spinner.xaml"
     this.Down.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Buttons_MouseRightButtonUp);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }