示例#1
0
 private void listView1_DoubleClick(object sender, EventArgs e)
 {
     if (listView1.SelectedItems != null)
     {
         DetailsForm df = new DetailsForm();
         df.LoadData(listView1.SelectedItems[0].Tag.ToString());
         df.ShowDialog();
     }
 }
示例#2
0
 private void detallesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null)
     {
         DetailsForm df = new DetailsForm();
         df.LoadData(treeView1.SelectedNode.Tag.ToString());
         df.ShowDialog();
     }
 }
示例#3
0
        private void addBookButton_Click(object sender, EventArgs e)
        {
            DetailsForm addBookForm = new DetailsForm();

            if (addBookForm.ShowDialog() == DialogResult.OK)
            {
                GetAndDrawBooks();
            }
        }
示例#4
0
        public void OnDetails(Office.IRibbonControl control)
        {
            var items = GetMultipleMailItemsFromControl(control);

            if (items == null || items.Count == 0 || items.Count > 1)
            {
                // we can only show the details of one email
                return;
            }

            // get the one and only item
            var mailItem = items.First();

            // show the displays
            var categoryList = _mailProcessor.GetStringFromMailItem(mailItem, _engine.Logger);
            var text         = string.Join(";", categoryList.Select(x => x.Value));

            using (var detailsForm = new DetailsForm(_engine.Classify, _engine.Categories, text))
            {
                detailsForm.ShowDialog();
            }
        }
        public void open(Main main, Contact selected)
        {
            DetailsForm details = new DetailsForm(main.Pb.GetObject(selected), main);

            details.ShowDialog();
        }