コード例 #1
0
ファイル: JCodeCompiler.cs プロジェクト: windygu/Justin
 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); };
 }
コード例 #2
0
 private void CubeViewer_Load(object sender, EventArgs e)
 {
     try
     {
         JSetting.SetUseAppSetting("OLAPConnStr", "OLAPConnStr");
         //CubeViewCtrlSetting.DefaultConnStr = ConfigurationManager.AppSettings["OLAPConnStr"];
     }
     catch { }
 }
コード例 #3
0
ファイル: MdxExecutor.cs プロジェクト: windygu/Justin
 private void MdxExecutor_Load(object sender, EventArgs e)
 {
     this.LoadFile(this.FileName);
     try
     {
         JSetting.SetUseAppSetting("OLAPConnStr", "OLAPConnStr");
         //MdxExecuterCtrlSetting.DefaultConnStr = ConfigurationManager.AppSettings["OLAPConnStr"];
     }
     catch { }
 }
コード例 #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());
        }
コード例 #5
0
ファイル: CubeViewCtrl.cs プロジェクト: windygu/Justin
        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)));
        }
コード例 #6
0
ファイル: TestDataGenerator.cs プロジェクト: windygu/Justin
 public TestDataGenerator()
 {
     InitializeComponent();
     JSetting.SetUseAppSetting("TableConfigFolder", "TableConfigFolder");
 }
コード例 #7
0
ファイル: CodeSnippetMgr.cs プロジェクト: windygu/Justin
 public CodeSnippetMgr()
 {
     JSetting.SetUseAppSetting("CodeSnippet", "CodeSnippet");
     //CodeSnippetCtrl.CodeSnippetFileDirectory = ConfigurationManager.AppSettings["CodeSnippet"];
     InitializeComponent();
 }