Пример #1
0
        public static void SetValue(IUseCase aUseCase, string sqlpath, string htmlpath, ref string tablename, ref string nodeSqlpath, ref string nodeHtmlpath, ref bool bJson, ref bool bCloseBtn, ref bool bDetail)
        {
            frmInput input = new frmInput();

            input.initSqlpath       = sqlpath;
            input.initHtmlpath      = htmlpath;
            input.txtTableName.Text = tablename;
            input.txtHtmlPath.Text  = nodeHtmlpath;
            input.txtSqlPath.Text   = nodeSqlpath;
            if (input.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                nodeSqlpath  = input.txtSqlPath.Text;
                nodeHtmlpath = input.txtHtmlPath.Text;
                tablename    = input.txtTableName.Text;
                aUseCase.AddReference("tablename", input.txtTableName.Text, false);
                aUseCase.AddReference("sql.path", input.txtSqlPath.Text, false);
                aUseCase.AddReference("html.path", input.txtHtmlPath.Text, false);
                bJson     = input.cbJson.Checked;
                bCloseBtn = input.cbClose.Checked;
                bDetail   = input.cbDetail.Checked;
            }
        }