Пример #1
0
        public VariableViewWindow(AutomaticMixer sourceMixer)
        {
            Opacity = 0;

            InitializeComponent();

            listView1.SetDoubleBuffered(true);

            Icon = Resources.editoricon;

            _sourceMixer = sourceMixer;
        }
        public AudioSessionWindow(AutomaticMixer sourceMixer)
        {
            Opacity = 0;

            InitializeComponent();

            Icon = Resources.editoricon;

            _sourceMixer    = sourceMixer;
            _updateDelegate = (_, args) => this.SafeInvoke(() => audioSessionViewer1.RefreshSessions(args));

            VisibleChanged += OnVisibleChanged;
            FormClosed     += OnFormClosedEventHandler;
        }
Пример #3
0
        public ConfigurationManager(AutomaticMixer mixer)
        {
            Opacity = 0;

            _mixer = mixer;
            InitializeComponent();

            Icon = Resources.editoricon;

            toolStrip1.Renderer = new ToolStripProfessionalRenderer(new StandardSystemColorTable());

            elementList1.SetupList(_mixer.GetBehaviours(),
                                   (window, info) =>
                                   BehaviourEditor.ShowDialog(window, (Behaviour)info, _mixer.GroupNamesEnumerable),
                                   info => _mixer.AddBehaviour((Behaviour)info),
                                   info => _mixer.RemoveBehaviour((Behaviour)info),
                                   null, null,
                                   info => ((Behaviour)info).Group);

            _mixer.BehavioursChanged += OnBehavioursChanged;
        }