private void GetNewResource()
        {
            string newResourceId = string.Empty;
            string serverName    = string.Empty;

            //using (AssetSelectionForm form = new AssetSelectionForm(DeviceCapabilities.Print))
            using (RemotePrintQueueSelectionForm form = new RemotePrintQueueSelectionForm(false))
            {
                //form.MultiSelect = false;
                form.ShowDialog(this);
                if (form.DialogResult == DialogResult.OK)
                {
                    var temp = form.SelectedPrintQueues.FirstOrDefault();
                    RemotePrintQueueInfo info = ((RemotePrintQueueInfo)temp);
                    //resourceId = form.SelectedPrintQueues.FirstOrDefault().QueueName;
                    //serverName = form.SelectedPrintQueues.FirstOrDefault();
                    newResourceId = info.QueueName;
                    serverName    = info.ServerHostName;


                    //newResourceId = form.SelectedPrintQueues.FirstOrDefault().QueueName;
                    BulkPrintQueueUpdate(newResourceId, serverName);
                }
            }
        }
        private void EditBlank_Button_Click(object sender, EventArgs e)
        {
            string resourceId = string.Empty;
            string serverName = string.Empty;

            using (RemotePrintQueueSelectionForm form = new RemotePrintQueueSelectionForm(false))
            {
                form.ShowDialog(this);
                if (form.DialogResult == DialogResult.OK)
                {
                    var temp = form.SelectedPrintQueues.FirstOrDefault();
                    RemotePrintQueueInfo info = ((RemotePrintQueueInfo)temp);
                    //resourceId = form.SelectedPrintQueues.FirstOrDefault().QueueName;
                    //serverName = form.SelectedPrintQueues.FirstOrDefault();
                    resourceId = info.QueueName;
                    serverName = info.ServerHostName;
                    UpdateBlankPrintQueues(resourceId, serverName);
                }
                form.Refresh();
            }
        }