public GridViewConvert(Main main) { _main = main; InitializeComponent(); // Listen to Messages // Setup message queue for receiving Messages IMessageQueue queueMessage = ServiceScope.Get<IMessageBroker>().GetOrCreate("message"); queueMessage.OnMessageReceive += OnMessageReceive; IMessageQueue queueMessageEncoding = ServiceScope.Get<IMessageBroker>().GetOrCreate("encoding"); queueMessageEncoding.OnMessageReceive += OnMessageReceiveEncoding; audioEncoder = ServiceScope.Get<IAudioEncoder>(); // Load the Settings gridColumns = new GridViewColumnsConvert(); dataGridViewConvert.AutoGenerateColumns = false; dataGridViewConvert.DataSource = bindingList; // Now Setup the columns, we want to display CreateColumns(); CreateContextMenu(); }
public GridViewConvert(Main main) { _main = main; InitializeComponent(); // Listen to Messages // Setup message queue for receiving Messages IMessageQueue queueMessage = ServiceScope.Get <IMessageBroker>().GetOrCreate("message"); queueMessage.OnMessageReceive += OnMessageReceive; IMessageQueue queueMessageEncoding = ServiceScope.Get <IMessageBroker>().GetOrCreate("encoding"); queueMessageEncoding.OnMessageReceive += OnMessageReceiveEncoding; audioEncoder = ServiceScope.Get <IAudioEncoder>(); // Load the Settings gridColumns = new GridViewColumnsConvert(); dataGridViewConvert.AutoGenerateColumns = false; dataGridViewConvert.DataSource = bindingList; // Now Setup the columns, we want to display CreateColumns(); CreateContextMenu(); }