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();
                    }
                }
            }
        }
Exemplo n.º 2
0
        private async void editMapsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LipSyncMapSelector mapSelector = new LipSyncMapSelector();
            DialogResult       dr          = mapSelector.ShowDialog();

            if (mapSelector.Changed)
            {
                mapSelector.Changed = false;
                SequenceModified();
                ResetLipSyncNodes();
                await VixenSystem.SaveSystemAndModuleConfigAsync();
            }
        }
Exemplo n.º 3
0
 private async void SetupPreviews()
 {
     using (ConfigPreviews form = new ConfigPreviews()) {
         DialogResult result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             await VixenSystem.SaveSystemAndModuleConfigAsync();
         }
         else
         {
             VixenSystem.ReloadSystemConfig();
         }
     }
 }
Exemplo n.º 4
0
        private async void SetupDisplay()
        {
            using (DisplaySetup form = new DisplaySetup()) {
                DialogResult dr = form.ShowDialog();

                if (dr == DialogResult.OK)
                {
                    await VixenSystem.SaveSystemAndModuleConfigAsync();
                }
                else
                {
                    VixenSystem.ReloadSystemConfig();
                }
            }
        }
Exemplo n.º 5
0
 private async void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SaveLocationDataForElements();
     await VixenSystem.SaveSystemAndModuleConfigAsync();
 }