using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace SQLToNeo.Gui{
/// <summary>
/// Zusammenfassung fr ConflictForm.
/// </summary>
public class ConflictForm : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.RichTextBox rtbxConflicts;
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.Container components = null;
public ConflictForm()
{
InitializeComponent();
}
/// <summary>
/// Die verwendeten Ressourcen bereinigen.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Vom Windows Form-Designer generierter Code
/// <summary>
/// Erforderliche Methode fr die Designeruntersttzung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor gendert werden.
/// </summary>
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnClose = new System.Windows.Forms.Button();
this.rtbxConflicts = new System.Windows.Forms.RichTextBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.rtbxConflicts);
this.groupBox1.Controls.Add(this.btnClose);
this.groupBox1.Location = new System.Drawing.Point(8, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(456, 264);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Conflicts";
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(376, 236);
this.btnClose.Name = "btnClose";
this.btnClose.TabIndex = 1;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// rtbxConflicts
//
this.rtbxConflicts.Location = new System.Drawing.Point(8, 16);
this.rtbxConflicts.Name = "rtbxConflicts";
this.rtbxConflicts.ReadOnly = true;
this.rtbxConflicts.Size = new System.Drawing.Size(440, 216);
this.rtbxConflicts.TabIndex = 2;
this.rtbxConflicts.Text = "";
//
// ConflictForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(472, 269);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "ConflictForm";
this.Text = "SQLToNeo Conflicts";
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void btnClose_Click(object sender, System.EventArgs e)
{
this.Close();
}
public void AddConflicts(ArrayList conflicts)
{
if(conflicts.Count == 0)
conflicts.Add("No conflicts found in the current model!");
foreach(string s in conflicts)
rtbxConflicts.AppendText(s);
}
}
}
|