private void btnEdit_Click(object sender, EventArgs e)
 {
     int Index = listLayout.SelectedIndex;
     if (Index >= 0) {
         LayoutEditor editor = new LayoutEditor((Layout)layoutBoxBindingSource[Index]);
         if (editor.ShowDialog() == DialogResult.OK) {
             layoutBoxBindingSource[Index] = editor.ReportLayout;
             layoutBoxBindingSource.ResetCurrentItem();
         }
     }
 }
Exemple #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int Index = listLayout.SelectedIndex;

            if (Index >= 0)
            {
                LayoutEditor editor = new LayoutEditor((Layout)layoutBoxBindingSource[Index]);
                if (editor.ShowDialog() == DialogResult.OK)
                {
                    layoutBoxBindingSource[Index] = editor.ReportLayout;
                    layoutBoxBindingSource.ResetCurrentItem();
                }
            }
        }
Exemple #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            int Index = comboLayout.SelectedIndex;

            if (Index >= 0)
            {
                Layout l = (Layout)layoutBoxBindingSource[Index];
                if (l == null)
                {
                    l = new Layout();
                }

                LayoutEditor editor = new LayoutEditor(l);
                if (editor.ShowDialog() == DialogResult.OK)
                {
                    layoutBoxBindingSource[Index] = editor.ReportLayout;
                    layoutBoxBindingSource.ResetCurrentItem();
                }
            }
        }
        private void button3_Click(object sender, EventArgs e)
        {
            int Index = comboLayout.SelectedIndex;
            if (Index >= 0) {
                Layout l = (Layout)layoutBoxBindingSource[Index];
                if (l == null) l = new Layout();

                LayoutEditor editor = new LayoutEditor(l);
                if (editor.ShowDialog() == DialogResult.OK) {
                    layoutBoxBindingSource[Index] = editor.ReportLayout;
                    layoutBoxBindingSource.ResetCurrentItem();
                }
            }
        }