public simple_node_editor(simple_element se,node_info ninf,NodeGenerator.NodeGenerator _ng)
		{
			InitializeComponent();
			if (se!=null)
			{
				extended_simple_element ese=se as extended_simple_element;
				if (ese!=null)
				{
					this.se=ese;
				}
				else
				{
					this.se=new extended_simple_element();
					this.se.val_field_type_name=se.val_field_type_name;
					this.se.field_name=se.field_name;
					this.se.field_type=se.field_type;
				}
			}
			if (this.se==null)
			{
				this.se=new extended_simple_element();
			}
			this.ninf=ninf;
			this.ng=_ng;

			set_element();
		}
		public static simple_element edit_element(simple_element se,node_info ninf,NodeGenerator.NodeGenerator _ng)
		{
			simple_node_editor sne=new simple_node_editor(se,ninf,_ng);
			sne.ShowDialog();
			sse=sne.se;
			return sse;
		}
		public static simple_element edit_element(simple_element se,node_info ninf,NodeGenerator.NodeGenerator _ng)
		{
			simple_node_editor sne=new simple_node_editor(se,ninf,_ng);
            var tmp = sne.se.field_name;
            if (sne.ShowDialog() != DialogResult.OK)
                sne.se.field_name = tmp;
			sse=sne.se;
			return sse;
		}