Ejemplo n.º 1
0
 private void BtnFooter_Click(object sender, RoutedEventArgs e)
 {
     // create url link to temp file header.html
     string url = WebSite.TempPath + "footer.html";
     // open web editor and navigate it to url
     WebEditor we = new WebEditor();
     we.Show();
     we.LoadSite(url);
 }
Ejemplo n.º 2
0
        private void BtnEditor_Click(object sender, RoutedEventArgs e)
        {
            // open webeditor and load file for editing...            
            WebEditor we = new WebEditor();
            we.Show();

            // make url by homepath + filename
            string url = WebSite.TempPath + TxtName.Text;
            // create file if it isn't existed
            if (!File.Exists(url))
            { 
                File.Create(url);
                Gui.newdocument();
                we.SavePath = url;               
            }
            else
                we.LoadSite(url);
            
        }
Ejemplo n.º 3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainWindow1 = ((WPFWebCreator.WebEditor)(target));
     
     #line 5 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.MainWindow1.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 5 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.MainWindow1.Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow1_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.RibbonButtonNew = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 15 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.RibbonButtonNew.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonNew_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.RibbonButtonOpen = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 16 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.RibbonButtonOpen.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonOpen_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.RibbonButtonOpenweb = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 17 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.RibbonButtonOpenweb.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonOpenweb_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.RibbonButtonSave = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 18 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.RibbonButtonSave.Click += new System.Windows.RoutedEventHandler(this.RibbonButtonSave_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.RibbonComboboxFormat = ((System.Windows.Controls.ComboBox)(target));
     
     #line 22 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.RibbonComboboxFormat.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RibbonComboboxFormat_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.RibbonComboboxFonts = ((System.Windows.Controls.ComboBox)(target));
     
     #line 30 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.RibbonComboboxFonts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RibbonComboboxFonts_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.RibbonComboboxFontHeight = ((System.Windows.Controls.ComboBox)(target));
     
     #line 31 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.RibbonComboboxFontHeight.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RibbonComboboxFontHeight_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.SettingsBold = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 34 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsBold.Click += new System.Windows.RoutedEventHandler(this.SettingsBold_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.SettingsItalic = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 35 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsItalic.Click += new System.Windows.RoutedEventHandler(this.SettingsItalic_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.SettingsUnderLine = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 36 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsUnderLine.Click += new System.Windows.RoutedEventHandler(this.SettingsUnderLine_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.SettingsFontColor = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 37 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsFontColor.Click += new System.Windows.RoutedEventHandler(this.SettingsFontColor_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.SettingsBackColor = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 38 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsBackColor.Click += new System.Windows.RoutedEventHandler(this.SettingsBackColor_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.SettingsAddLink = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 39 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsAddLink.Click += new System.Windows.RoutedEventHandler(this.SettingsAddLink_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.SettingsAddImage = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 40 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsAddImage.Click += new System.Windows.RoutedEventHandler(this.SettingsAddImage_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.SettingsLeftAlign = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 41 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsLeftAlign.Click += new System.Windows.RoutedEventHandler(this.SettingsLeftAlign_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.SettingsCenter2 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 42 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsCenter2.Click += new System.Windows.RoutedEventHandler(this.SettingsCenter2_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.SettingsRightAlign = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 43 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsRightAlign.Click += new System.Windows.RoutedEventHandler(this.SettingsJustifyRight_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.SettingsCenter = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 44 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsCenter.Click += new System.Windows.RoutedEventHandler(this.SettingsJustifyFull_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.SettingsNumbered = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 45 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsNumbered.Click += new System.Windows.RoutedEventHandler(this.SettingsInsertOrderedList_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.SettingsBullets = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 46 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsBullets.Click += new System.Windows.RoutedEventHandler(this.SettingsBullets_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.SettingsOutIdent = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 47 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsOutIdent.Click += new System.Windows.RoutedEventHandler(this.SettingsOutIdent_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.SettingsIdent = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 48 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.SettingsIdent.Click += new System.Windows.RoutedEventHandler(this.SettingsIdent_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.EditWeb1 = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 55 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.EditWeb1.Click += new System.Windows.RoutedEventHandler(this.EditWeb_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.ViewHTML = ((System.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 56 "..\..\..\HtmlEditor\WebEditor.xaml"
     this.ViewHTML.Click += new System.Windows.RoutedEventHandler(this.ViewHTML_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.lblCursorPosition = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.webBrowserEditor = ((WPFWebCreator.WPFWebBrowser)(target));
     return;
     case 28:
     this.HtmlEditor1 = ((WPFWebCreator.HtmlEditor)(target));
     return;
     }
     this._contentLoaded = true;
 }