protected override void OpenItem()
        {
            var selected = new CommonCollection <NonRoutineJob>();

            foreach (NonRoutineJob o in DirectivesViewer.SelectedItems)
            {
                selected.CompareAndAdd(o);
            }

            foreach (var t in selected)
            {
                var form = ScreenAndFormManager.GetEditForm(t);
                form.Show();
            }

            selected.Clear();
        }
Example #2
0
        protected override void RadGridView1_DoubleClick(object sender, EventArgs e)
        {
            if (SelectedItem == null)
            {
                return;
            }
            var form = ScreenAndFormManager.GetEditForm(SelectedItem);

            if (form.ShowDialog() == DialogResult.OK)
            {
                var subs = GetListViewSubItems(SelectedItem);
                for (int i = 0; i < subs.Count; i++)
                {
                    radGridView1.SelectedRows[0].Cells[i].Value = subs[i].Text;
                }
            }
        }
Example #3
0
        protected override void RadGridView1_DoubleClick(object sender, EventArgs e)
        {
            if (SelectedItem != null)
            {
                var dp = ScreenAndFormManager.GetEditForm(SelectedItem);
                if (dp.ShowDialog() == DialogResult.OK)
                {
                    if (dp is ProductForm)
                    {
                        var changedJob = ((ProductForm)dp).CurrentProdcuct;
                        radGridView1.SelectedRows[0].Tag = changedJob;

                        var subs = GetListViewSubItems(SelectedItem);
                        for (int i = 0; i < subs.Count; i++)
                        {
                            radGridView1.SelectedRows[0].Cells[i].Value = subs[i].Text;
                        }
                    }
                }
            }
        }
        protected virtual void ItemsListViewMouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (SelectedItem == null)
            {
                return;
            }

            var form = ScreenAndFormManager.GetEditForm(SelectedItem);

            if (form == null)
            {
                return;
            }

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                itemsListView.Items[itemsListView.Items.IndexOf(itemsListView.SelectedItems[0])] =
                    new ListViewItem(GetListViewSubItems(SelectedItem), null)
                {
                    Tag = SelectedItem
                };
            }
        }