public static ShenbaoContentService getInstance()
        {
            if (shenbaoContentService == null)
            {
                shenbaoContentService = new ShenbaoContentService();
            }

            return(shenbaoContentService);
        }
        public static ShenbaoContentService getInstance()
        {
            if (shenbaoContentService == null)
            {
                shenbaoContentService = new ShenbaoContentService();
            }

            return shenbaoContentService;
        }
        public ShenbaoContentForm()
        {
            InitializeComponent();

            shenbaoContentService = ShenbaoContentService.getInstance();

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

            initData(formatWhere());
        }
        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;

            }
        }
 public ShenbaoContentEditForm(ShenbaoContentService shenbaoContentService)
 {
     this.shenbaoContentService = shenbaoContentService;
     InitializeComponent();
 }