/[cits3200i]/branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/EditMetadataControl.cs


UCC Code Repository

Contents of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/EditMetadataControl.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 88 - (show annotations) (download)
Tue Oct 12 04:54:08 2010 UTC (11 years, 1 month ago) by rvvs89
File size: 1114 byte(s)
Syncing.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Drawing;
5 using System.Data;
6 using System.Text;
7 using System.Windows.Forms;
8
9 namespace MetadataPlugin.Source
10 {
11 public partial class EditMetadataControl : UserControl
12 {
13 private IMetadataEditor editor;
14
15 public EditMetadataControl()
16 {
17 InitializeComponent();
18 }
19
20 public IMetadataEditor Editor
21 {
22 get { return editor; }
23 set
24 {
25 editor = value;
26 Control editorControl = editor.EditorControl;
27 splitContainer.Panel2.Controls.Clear();
28 editorControl.Width = splitContainer.Panel2.Width;
29 editorControl.Height = splitContainer.Panel2.Height;
30 editorControl.Location = new Point(0, 0);
31 editorControl.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
32 splitContainer.Panel2.Controls.Add(editorControl);
33 }
34 }
35 }
36 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26