Ejemplo n.º 1
0
 public JCodeCompiler()
 {
     InitializeComponent();
     JSetting.SetUseAppSetting("JDKPath", "JDKPath");
     //CodeComplierCtrl.JDKPath = ConfigurationManager.AppSettings["JDKPath"];
     this.codeComplierCtrl1.FileChanged = (fileName) => { this.FileName = fileName; };
     this.LoadAction = (fileName) => { this.codeComplierCtrl1.LoadFile(fileName); };
     this.SaveAction = (fileName) => { this.codeComplierCtrl1.SaveFile(fileName, this.Extension); };
 }
Ejemplo n.º 2
0
 private void CubeViewer_Load(object sender, EventArgs e)
 {
     try
     {
         JSetting.SetUseAppSetting("OLAPConnStr", "OLAPConnStr");
         //CubeViewCtrlSetting.DefaultConnStr = ConfigurationManager.AppSettings["OLAPConnStr"];
     }
     catch { }
 }
Ejemplo n.º 3
0
 private void MdxExecutor_Load(object sender, EventArgs e)
 {
     this.LoadFile(this.FileName);
     try
     {
         JSetting.SetUseAppSetting("OLAPConnStr", "OLAPConnStr");
         //MdxExecuterCtrlSetting.DefaultConnStr = ConfigurationManager.AppSettings["OLAPConnStr"];
     }
     catch { }
 }
Ejemplo n.º 4
0
        private void TableConfigCtrl_Load(object sender, EventArgs e)
        {
            JSetting.SetUseAppSetting("TableConfigFolder", "TableConfigFolder");
            if (this.TableSetting != null)
            {
                BindTableToTree();
            }
            JTable.SqlProcess = (StringBuilder sqlBuilder, JTable table) =>
            {
                string fileName = GetFullFileName(table.TableName, sqlFileExtensions);
                File.AppendAllText(fileName, sqlBuilder.ToString());
            };

            this.ShowToolTips(new ToolTip());
        }
Ejemplo n.º 5
0
        private void CubeViewCtrl_Load(object sender, EventArgs e)
        {
            this.ShowToolTips(new ToolTip());
            this.cboxConnStrings.Items.Clear();
            foreach (var item in ConfigurationManager.AppSettings.AllKeys)
            {
                if (item.StartsWith("OLAPConnStr", StringComparison.CurrentCultureIgnoreCase))
                {
                    this.cboxConnStrings.Items.Add(ConfigurationManager.AppSettings[item]);
                }
            }

            if (string.IsNullOrEmpty(cboxConnStrings.Text))
            {
                this.cboxConnStrings.Text = JSetting.Get("OLAPConnStr");
            }
            JSetting.SetUseAppSetting("OLAPConnStr", "OLAPConnStr");
            cboxFilterType.Items.Clear();
            cboxFilterType.Items.AddRange(Enum.GetNames(typeof(FilterType)));
        }
Ejemplo n.º 6
0
 public TestDataGenerator()
 {
     InitializeComponent();
     JSetting.SetUseAppSetting("TableConfigFolder", "TableConfigFolder");
 }
Ejemplo n.º 7
0
 public CodeSnippetMgr()
 {
     JSetting.SetUseAppSetting("CodeSnippet", "CodeSnippet");
     //CodeSnippetCtrl.CodeSnippetFileDirectory = ConfigurationManager.AppSettings["CodeSnippet"];
     InitializeComponent();
 }