예제 #1
0
        public ShenbaoContentForm()
        {
            InitializeComponent();

            shenbaoContentService = ShenbaoContentService.getInstance();

            pageUpControl.MyControl    = gridControl;
            pageUpControl.QueryService = shenbaoContentService;

            initData(formatWhere());
        }
예제 #2
0
        public ShenbaoContentEditForm(int id, int logicid, String content, string content_en, ShenbaoContentService shenbaoContentService, Boolean readOnly = false)
        {
            InitializeComponent();
            this.shenbaoContentService = shenbaoContentService;
            this.id              = id;
            textBox.Text         = content;
            textBox_en.Text      = content_en;
            textBox_logicId.Text = logicid.ToString();

            if (readOnly == true)
            {
                textBox.ReadOnly         = true;
                textBox_en.ReadOnly      = true;
                textBox_logicId.ReadOnly = true;
                button_ok.Visible        = false;
            }
        }
예제 #3
0
 public ShenbaoContentEditForm(ShenbaoContentService shenbaoContentService)
 {
     this.shenbaoContentService = shenbaoContentService;
     InitializeComponent();
 }