Exemplo 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);
 }
Exemplo 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);
            
        }