示例#1
0
        public override void setData(CompontData data)
        {
            base.setData(data);
            EllipsoidData pdata = (EllipsoidData)data;

            tb_a.Text         = pdata.a.ToString();
            tb_b.Text         = pdata.b.ToString();
            tb_c.Text         = pdata.c.ToString();
            this.tx_name.Text = pdata.show_name;
            return;
        }
示例#2
0
        override protected CompontData genData(bool is_tmp_show)
        {
            CompontData base_data = base.genData(is_tmp_show);

            if (!base.getBaseData(base_data))
            {
                return(null);
            }
            EllipsoidData data;

            if (is_tmp_show || !is_modify_flag)
            {
                data = new EllipsoidData(base_data);
            }
            else
            {
                data = (EllipsoidData)base_data;
            }
            data.setData(float.Parse(tb_a.Text), float.Parse(tb_b.Text), float.Parse(tb_c.Text));
            data.show_name = tx_name.Text;
            return(data);
        }