public DialogResult ShowMotionSettingAjin()
        {
            MotionSetting motSetting = new MotionSetting();
            DialogResult  res        = motSetting.ShowDialog();

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                if (m_motion != null)
                {
                    m_motion.SaveMotionINI(DefPath.MotionSetting);
                }
            }

            return(res);
        }
Example #2
0
        private void button_load_mot_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            openFileDialog1.Filter           = "AXM files (*.mot)|*.mot|All files (*.*)|*.*";
            openFileDialog1.FilterIndex      = 1;
            openFileDialog1.RestoreDirectory = true;

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                if (m_motion.LoadMOTFile(openFileDialog1.FileName) != (uint)AXT_FUNC_RESULT.AXT_RT_SUCCESS)
                {
                    MessageBox.Show("File load failed");
                }
                else
                {
                    string motionSettingPath = DefPath.MotionSetting;
                    m_motion.SaveMotionINI(motionSettingPath);
                    textBox_MOT_filepath.Text = openFileDialog1.FileName;
                }
            }
        }