Example #1
0
 /// <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;
 }
Example #2
0
        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");
        }
Example #3
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     DsLightEditor.SaveData("e:\\data.dslt");
 }
Example #4
0
 /// <summary>
 /// Create a new instance.
 /// </summary>
 /// <param name="editor">reference to editor control</param>
 public Entity(DsLightEditor editor)
 {
     this.editor = editor;
 }
Example #5
0
 /// <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;
 }