/// <summary> /// Create a new instance. /// </summary> /// <param name="editor">reference to editor control</param> public DataModel(DsLightEditor editor) { this.editor = editor; Entities = new List <Entity>(); EditorProperties = new EditorProperties(editor); DialogWidth = 406; DialogHeight = 371; }
public Form1() { InitializeComponent(); Left = (int)Math.Round(Screen.GetWorkingArea(this).Width * 0.1); Width = (int)Math.Round(Screen.GetWorkingArea(this).Width * 0.8); Top = (int)Math.Round(Screen.GetWorkingArea(this).Height * 0.1); Height = (int)Math.Round(Screen.GetWorkingArea(this).Height * 0.8); DsLightEditor.SetConnectionString("Data Source=WS2\\SQLEXPRESS;Initial Catalog=Test;Integrated Security=True"); DsLightEditor.LoadData("e:\\data.dslt"); }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { DsLightEditor.SaveData("e:\\data.dslt"); }
/// <summary> /// Create a new instance. /// </summary> /// <param name="editor">reference to editor control</param> public Entity(DsLightEditor editor) { this.editor = editor; }
/// <summary> /// Create a new instance. /// </summary> /// <param name="editor">reference to editor control</param> /// <param name="entity">entity to which this query belongs</param> public Query(DsLightEditor editor, Entity entity) { this.editor = editor; this.entity = entity; }