using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Diagram.UI.Interfaces;
using DiagramUI.Labels;
using DataPerformer;
namespace DataPerformerUI.Forms
{
/// <summary>
/// Editor of properties of 3D table
/// </summary>
public partial class FormTable3D : Form, IUpdatableForm
{
#region Fields
IObjectLabel label;
#endregion
#region Ctor
internal FormTable3D()
{
InitializeComponent();
}
/// <summary>
/// Constructor
/// </summary>
/// <param name="label">Label of object</param>
public FormTable3D(IObjectLabel label)
: this()
{
this.LoadResources();
this.label = label;
UpdateFormUI();
}
#endregion
#region IUpdatableForm Members
/// <summary>
/// Updates form UI
/// </summary>
public void UpdateFormUI()
{
Text = label.Name;
}
#endregion
private void FormTable3D_FormClosing(object sender, FormClosingEventArgs e)
{
userControlTable3D.SaveComments();
}
private void FormTable3D_Load(object sender, EventArgs e)
{
userControlTable3D.Table = label.Object as Table3D;
}
}
}