コード例 #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
ファイル: ConfigDialog.cs プロジェクト: jonbws/strengthreport
        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();
                }
            }
        }