Upload to server
uploading
This commit is contained in:
55
omegapro/Omega/Forms/frmEditQuestion.cs
Normal file
55
omegapro/Omega/Forms/frmEditQuestion.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Datalib.Linq;
|
||||
using System.Linq;
|
||||
using DocumentFormat.OpenXml;
|
||||
using DocumentFormat.OpenXml.Packaging;
|
||||
using DocumentFormat.OpenXml.Validation;
|
||||
using OpenXmlPowerTools;
|
||||
using System.Xml.Linq;
|
||||
using Datalib.EntityClasses;
|
||||
using Datalib.FactoryClasses;
|
||||
using Datalib.HelperClasses;
|
||||
|
||||
namespace Omega.Forms
|
||||
{
|
||||
public partial class frmEditQuestion : Omega.BasicForms.frmCommon
|
||||
{
|
||||
public TblQuestionEntity Question { get; set; }
|
||||
|
||||
public frmEditQuestion()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void frmEditQuestion_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void LoadData()
|
||||
{
|
||||
List<Source> Sources = new List<Source>();
|
||||
byte[] Content = Convert.FromBase64String(Question.Content);
|
||||
Sources.Add(new Source(new WmlDocument(Guid.NewGuid().ToString("N"), Content),false));
|
||||
WmlDocument des = DocumentBuilder.BuildDocument(Sources);
|
||||
richEditControl.OpenXmlBytes = des.DocumentByteArray;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user