private async void changeMapToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LipSyncNodeSelect nodeSelectDlg = new LipSyncNodeSelect();

            //nodeSelectDlg.MaxNodes = _mapping.MapItems.Count;
            nodeSelectDlg.MaxNodes          = Int32.MaxValue;
            nodeSelectDlg.MatrixOptionsOnly = false;
            nodeSelectDlg.AllowGroups       = true;
            nodeSelectDlg.AllowRecursiveAdd = false;

            DialogResult dr = nodeSelectDlg.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                if (nodeSelectDlg.SelectedElementNodes.Any())
                {
                    FaceSetupHelper helper  = new FaceSetupHelper();
                    var             success = helper.Perform(nodeSelectDlg.SelectedElementNodes);
                    if (success)
                    {
                        RenderLipSyncElementsAsync();
                        await VixenSystem.SaveSystemAndModuleConfigAsync();
                    }
                }
            }
        }
Example #2
0
        private void changeMapToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LipSyncNodeSelect nodeSelectDlg = new LipSyncNodeSelect();

            //nodeSelectDlg.MaxNodes = _mapping.MapItems.Count;
            nodeSelectDlg.MaxNodes          = Int32.MaxValue;
            nodeSelectDlg.MatrixOptionsOnly = false;
            nodeSelectDlg.AllowGroups       = true;
            nodeSelectDlg.AllowRecursiveAdd = false;

            DialogResult dr = nodeSelectDlg.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                if (nodeSelectDlg.SelectedElementNodes.Any())
                {
                    FaceSetupHelper helper = new FaceSetupHelper();
                    helper.Perform(nodeSelectDlg.SelectedElementNodes);
                }
            }
        }