예제 #1
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();
         }
     }
 }
예제 #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();
                }
            }
        }
예제 #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();
                }
            }
        }
예제 #4
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();
                }
            }
        }