protected override void Dispose(bool disposing) { if (disposing && (components != null)) { self = null; DatatreeDotNet.dt_unload_datatree(datatree); DatatreeDotNet.dt_destroy_datatree(datatree); DatatreeDotNet.dt_destroy_command(command); components.Dispose(); } base.Dispose(disposing); }
private void Constructor() { self = this; InitializeComponent(); ctrlValue.ValueChanged += ctrlValue_ValueChanged; treeView.NodeMouseClick += treeView_NodeMouseClick; txtCmd.KeyDown += txtCmd_KeyDown; DatatreeDotNet.dt_create_datatree(ref datatree, OnError); DatatreeDotNet.dt_create_command(ref command); Text = FORM_TITLE; New(); EditState = EditStates.Closed; }