Example #1
0
        public override void setData(CompontData data)
        {
            base.setData(data);
            ParaboloidData pdata = (ParaboloidData)data;

            tb_focus.Text     = pdata.focus.ToString();
            tb_radius.Text    = pdata.radius.ToString();
            this.tx_name.Text = pdata.show_name;
            return;
        }
Example #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);
            }
            ParaboloidData data;

            if (is_tmp_show || !is_modify_flag)
            {
                data = new ParaboloidData(base_data);
            }
            else
            {
                data = (ParaboloidData)base_data;
            }

            data.setData(float.Parse(tb_focus.Text), float.Parse(tb_radius.Text));
            data.show_name = tx_name.Text;
            return(data);
        }