static void Main(string[] args) { Console.WriteLine("hello world"); Console.WriteLine("4! = " + Fact(4)); var j = new Justin(); j.WriteNumbers(); Console.WriteLine("\n This is Liz's branch."); Console.ReadKey(); }
public Justin.BI.OLAP.Entity.Mondrian.Aggregator GetAggregator(Justin.BI.OLAP.Entity.Aggregator aggregator) { switch (aggregator) { case Justin.BI.OLAP.Entity.Aggregator.Sum: return Justin.BI.OLAP.Entity.Mondrian.Aggregator.Sum; case Justin.BI.OLAP.Entity.Aggregator.Count: return Justin.BI.OLAP.Entity.Mondrian.Aggregator.Count; case Justin.BI.OLAP.Entity.Aggregator.Min: return Justin.BI.OLAP.Entity.Mondrian.Aggregator.Min; case Justin.BI.OLAP.Entity.Aggregator.Max: return Justin.BI.OLAP.Entity.Mondrian.Aggregator.Max; case Justin.BI.OLAP.Entity.Aggregator.DistinctCount: return Justin.BI.OLAP.Entity.Mondrian.Aggregator.DistinctCount; case Justin.BI.OLAP.Entity.Aggregator.None: throw new NotSupportedException(string.Format("不支持此枚举类型{0}", aggregator)); case Justin.BI.OLAP.Entity.Aggregator.ByAccount: throw new NotSupportedException(string.Format("不支持此枚举类型{0}", aggregator)); case Justin.BI.OLAP.Entity.Aggregator.AverageOfChildren: return Justin.BI.OLAP.Entity.Mondrian.Aggregator.AVG; case Justin.BI.OLAP.Entity.Aggregator.FirstChild: throw new NotSupportedException(string.Format("不支持此枚举类型{0}", aggregator)); case Justin.BI.OLAP.Entity.Aggregator.LastChild: throw new NotSupportedException(string.Format("不支持此枚举类型{0}", aggregator)); case Justin.BI.OLAP.Entity.Aggregator.FirstNonEmpty: throw new NotSupportedException(string.Format("不支持此枚举类型{0}", aggregator)); case Justin.BI.OLAP.Entity.Aggregator.LastNonEmpty: throw new NotSupportedException(string.Format("不支持此枚举类型{0}", aggregator)); } throw new NotSupportedException(string.Format("不支持此枚举类型{0}", aggregator)); }
private void ActiveContent(Justin.Core.MenuItem data, string fileName = "") { string classStr = data.Class; string[] classInfo = classStr.Trim().Split(','); if (classInfo.Length != 3) { this.ShowMessage("请检查Class设置"); return; } JForm form = CreateJDockForm(classInfo[0], classInfo[2], string.IsNullOrEmpty(fileName) ? null : new object[] { new string[] { fileName } }); if (form == null) return; if (form is IDB) { form.ShowStatus = true; } form.Show(dockPanel); }