Beispiel #1
0
        public DomainForm(Form parent, DBRegistrationClass dbReg, TreeNode tn, ContextMenuStrip cm)
        {
            InitializeComponent();
            this.MdiParent = parent;
            _dbReg         = dbReg;
            DomainClass tc = (DomainClass)tn.Tag;

            if (tc == null)
            {
                DomainObject              = new DomainClass();
                DomainObject.Name         = "NEW_DOMAIN";
                DomainObject.NotNull      = false;
                DomainObject.FieldType    = "INTEGER";
                DomainObject.CharSet      = "NONE";
                DomainObject.Collate      = "NONE";
                DomainObject.DefaultValue = string.Empty;
                DomainObject.Check        = string.Empty;
            }
            else
            {
                DomainObject = tc;
            }
            if (!string.IsNullOrEmpty(DomainObject.DefaultValue))
            {
                Console.WriteLine();
            }
            OrgDomainObject = (DomainClass)DomainObject.Clone();

            Cm = cm;
            Tn = tn;
            _localNotify.Notify.OnRaiseErrorHandler += Notify_OnRaiseErrorHandler;
            _localNotify.Notify.OnRaiseInfoHandler  += Notify_OnRaiseInfoHandler;
        }