/// <summary> /// Forwards the messages selected in the active message browser. /// </summary> /// <param name="delete">Set to true to delete the messages after they have been forwarded.</param> public void ForwardSelectedMessagesFromQueue(bool delete) { // Check we have the correct control selected to work with if (_primaryControls.HasActiveDocument) { MessageBrowser messageBrowser = _primaryControls.GetActiveMessageBrowser(); if (messageBrowser != null && messageBrowser.SelectedItems.Count > 0) { //get an array of all the messages we want to forward Message[] messages = new Message[messageBrowser.SelectedItems.Count]; for (int i = 0; i < messageBrowser.SelectedItems.Count; i++) { messages[i] = ((MessageListViewItem)messageBrowser.SelectedItems[i]).Message; } NewMessageForm form = new NewMessageForm(_primaryObjects.License, this, messages, messageBrowser.QSetQueueItem); form.SmallImageList = _primaryControls.GetSize16Icons(); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (delete) { DoDeleteSelectedMessagesFromQueue(messageBrowser); } } } } }
/// <summary> /// Displays the options form to the user. /// </summary> public void DisplayOptions() { OptionsDialog optionsDialog = new OptionsDialog(); optionsDialog.SmallImageList = _primaryControls.GetSize16Icons(); if (optionsDialog.ShowDialog(_primaryForms.EnvironmentForm, _primaryObjects.UserSettings) == DialogResult.OK) { _primaryMenus.RefreshRecentFilesList(_primaryObjects.UserSettings.RecentFileList, _primaryObjects.UserSettings.RecentFileListMaximumEntries); } }
/// <summary> /// Performs initial set up required on application start. /// </summary> public void SetUp() { _primaryForms.QueueSearchForm.AllowMachineSelect = true; _primaryForms.QueueSearchForm.ImageList = _primaryControls.GetSize16Icons(); _primaryForms.QueueSearchForm.ComputerImageIndex = (int)Images.IconType.Server; _primaryForms.QueueSearchForm.QueueImageIndex = (int)Images.IconType.Queue; _primaryObjects.ProcessVisualizer.AwaitingText = Locale.UserMessages.Ready; _primaryObjects.UserSettings.CheckFileAssociations(); _taskManager.SetTitleBarText(); _taskManager.MenuStateManger.SetAllMenusState(); _taskManager.ConfigureEnvironmentAcccordingToUserSettings(); }