void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.root = ((GSSubtitle.Windows.Special_Charcters.Special_Charactors)(target));
     
     #line 9 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
     this.root.Closing += new System.ComponentModel.CancelEventHandler(this.root_Closing);
     
     #line default
     #line hidden
     
     #line 9 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
     this.root.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.root_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.startanimation_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 3:
     this.cloaseouseEnter_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 4:
     this.closeMouseLeave_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 5:
     this.rightstoryboard_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 6:
     this.cloaseouseEnter_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 7:
     this.closeMouseLeave_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 8:
     this.rightmouseleavestoryboard_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 9:
     this.closinganimation_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 10:
     this.specialCharButton = ((GSSubtitle.Windows.Special_Charcters.SpecialCharButton)(target));
     return;
     case 11:
     this.speciacharbutton1 = ((GSSubtitle.Windows.Special_Charcters.SpecialCharButton)(target));
     return;
     case 12:
     this.closeImage = ((System.Windows.Controls.Image)(target));
     
     #line 194 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
     this.closeImage.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.closeImage_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 13:
     this.multipleCheckbox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 14:
     this.display = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.OkImage = ((System.Windows.Controls.Image)(target));
     
     #line 206 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
     this.OkImage.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.OkImage_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #2
0
        //private void contexteditorfontmenuitem_Click(object sender, RoutedEventArgs e)
        //{

        //    ChangeContextEditorFont();
        //}

        //private void contexteditorfontcolormenuitem_Click(object sender, RoutedEventArgs e)
        //{
        //    ChangeCoontextEditorFontColor();
        //}



        //private void contexteditoritalicmenuitem_Click(object sender, RoutedEventArgs e)
        //{
        //    TextBoxListViewToggleTag("i",true);
        //}

        //private void contexteditorundelinemenuitem_Click(object sender, RoutedEventArgs e)
        //{
        //    TextBoxListViewToggleTag("u",true);
        //}

        private void AddSpecialCharacterToCE()
        {
            StringBuilder stringbuilder = new StringBuilder("");
            Special_Charactors specialchars = new Special_Charactors(stringbuilder);
            if (specialchars.ShowDialog() == true)
            {
                int selectionstart = contextEditor.SelectionStart;
                contextEditor.Text = contextEditor.Text.Insert(selectionstart, specialchars.returncharactors.ToString());
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((GSSubtitle.Windows.Special_Charcters.Special_Charactors)(target));

            #line 9 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
                this.root.Closing += new System.ComponentModel.CancelEventHandler(this.root_Closing);

            #line default
            #line hidden

            #line 9 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
                this.root.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.root_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.startanimation_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 3:
                this.cloaseouseEnter_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 4:
                this.closeMouseLeave_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 5:
                this.rightstoryboard_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 6:
                this.cloaseouseEnter_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 7:
                this.closeMouseLeave_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 8:
                this.rightmouseleavestoryboard_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 9:
                this.closinganimation_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 10:
                this.specialCharButton = ((GSSubtitle.Windows.Special_Charcters.SpecialCharButton)(target));
                return;

            case 11:
                this.speciacharbutton1 = ((GSSubtitle.Windows.Special_Charcters.SpecialCharButton)(target));
                return;

            case 12:
                this.closeImage = ((System.Windows.Controls.Image)(target));

            #line 194 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
                this.closeImage.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.closeImage_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 13:
                this.multipleCheckbox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 14:
                this.display = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.OkImage = ((System.Windows.Controls.Image)(target));

            #line 206 "..\..\..\..\Windows\Special Charcters\Special Charactors.xaml"
                this.OkImage.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.OkImage_MouseLeftButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #4
0
 private void SurroundMainListViewSelectedItemsWithSpecialCharacters(bool UndoAble)
 {
     if (mainListView.SelectedItems.Count < 1) return;
     StringBuilder grabber = new StringBuilder();
     Special_Charactors specialcharactors = new Special_Charactors(grabber);
     if (specialcharactors.ShowDialog() != true) return;
     string text = grabber.ToString();
     if (string.IsNullOrWhiteSpace(text)) return;
     using (UndoAble ? mainListView.SelectedItems.Count > 1 ? new ChangeCollection("{0} Lines Surrounded with {1} ", mainListView.SelectedItems.Count + "", text) : null:null)
     {
         if (mainListView.SelectedItems.Count > 1)
             foreach (Line item in mainListView.SelectedItems) item.SetContext(string.Format("{0}{1}{2}",text,item.Context,text),UndoAble);
         else
         {
             Line line = mainListView.SelectedItem as Line;
             line.SetContext(string.Format("{0}{1}{2}", text, line.Context, text), UndoAble, string.Format("Line Number {0} Text Decorate", line.LineNumber + ""));
         }
     }
 }