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); }; }
private void CubeViewer_Load(object sender, EventArgs e) { try { JSetting.SetUseAppSetting("OLAPConnStr", "OLAPConnStr"); //CubeViewCtrlSetting.DefaultConnStr = ConfigurationManager.AppSettings["OLAPConnStr"]; } catch { } }
private void MdxExecutor_Load(object sender, EventArgs e) { this.LoadFile(this.FileName); try { JSetting.SetUseAppSetting("OLAPConnStr", "OLAPConnStr"); //MdxExecuterCtrlSetting.DefaultConnStr = ConfigurationManager.AppSettings["OLAPConnStr"]; } catch { } }
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()); }
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))); }
public TestDataGenerator() { InitializeComponent(); JSetting.SetUseAppSetting("TableConfigFolder", "TableConfigFolder"); }
public CodeSnippetMgr() { JSetting.SetUseAppSetting("CodeSnippet", "CodeSnippet"); //CodeSnippetCtrl.CodeSnippetFileDirectory = ConfigurationManager.AppSettings["CodeSnippet"]; InitializeComponent(); }