示例#1
0
        AnimationsContainer OpenSecondOMF(string filename)
        {
            if (Main_OMF == null)
            {
                return(null);
            }

            AnimationsContainer new_omf = editor.OpenOMF(filename);

            if (new_omf == null)
            {
                return(new_omf);
            }

            int error_v = editor.CompareOMF(Main_OMF, new_omf);

            if (error_v == 1)
            {
                DialogResult result = GetErrorCode(1);
                if (DialogResult == DialogResult.No)
                {
                    return(null);
                }
            }
            else if (error_v == 2)
            {
                GetErrorCode(2);
            }

            return(new_omf);
        }
示例#2
0
        AnimationsContainer OpenSecondOMF(string filename)
        {
            if (Main_OMF == null)
            {
                return(null);
            }

            AnimationsContainer new_omf = editor.OpenOMF(filename);

            if (new_omf == null)
            {
                return(new_omf);
            }

            int error_v = editor.CompareOMF(Main_OMF, new_omf);

            if (error_v == 1)
            {
                DialogResult result = MessageBox.Show(rm.GetString("MERGE_ERROR_1"), "Info", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (DialogResult == DialogResult.No)
                {
                    return(null);
                }
            }
            else if (error_v == 2)
            {
                MessageBox.Show(rm.GetString("MERGE_ERROR_2"), "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            return(new_omf);
        }