public BaseMain(UCDNV863 Root, string AppName, Brush icon) { root = Root; //初始化工具栏 rec.Fill = icon; toolbox.Children.Add(rec); toolbox.HorizontalAlignment = HorizontalAlignment.Right; title.Text = AppName; title.Effect = new System.Windows.Media.Effects.DropShadowEffect() { Color = Colors.White, ShadowDepth = 0, BlurRadius = 5 }; toolbox.Children.Add(title); toolbox.Children.Add(toolboxSub); toolbox.RenderTransform = transform; transform.Y = 0;//= -100; root.sPanel.Children.Add(toolbox); //初始化信息板容器 grdPanel.RenderTransform = transformpanel; transformpanel.X = 300; root.grdInfo.Children.Add(grdPanel); if (SystemParameters.PrimaryScreenWidth < 1300) { rec.Width = rec.Height = 16; title.FontSize = 16; } else if (SystemParameters.PrimaryScreenWidth < 1900) { rec.Width = rec.Height = 24; title.FontSize = 11; } }
public RFullView(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { // 工具栏初始化 zButton btn; btn = new zButton() { text = "网格区域", group = "0" }; btn.Click += new System.Windows.RoutedEventHandler(btnArea_Click); toolboxSub.Children.Add(btn); btnArea = btn; btn = new zButton() { text = "技术指标", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnIndex_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "网架规模", group = "2" }; btn.Click += new System.Windows.RoutedEventHandler(btnSize_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "生产统计", group = "3" }; btn.Click += new System.Windows.RoutedEventHandler(btnStat_Click); toolboxSub.Children.Add(btn); }
public PTimes(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { // 工具栏初始化 for (int i = 2015; i < 2026; i++) { cmbYear.Items.Add(i); } cmbYear.SelectedValue = 2020; toolboxSub.Children.Add(cmbYear); cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "配网规划演进", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnEvolve_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "配网历史变迁", group = "2", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnHistory_Click); toolboxSub.Children.Add(btn); //btn = new zButton() { text = "用电负荷变化", group = "3", IsEnabled=false }; //btn.Click += new System.Windows.RoutedEventHandler(btnLoadChange_Click); //toolboxSub.Children.Add(btn); }
public PChoice(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { // 工具栏初始化 for (int i = 2015; i < 2026; i++) { cmbYear.Items.Add(i); } cmbYear.SelectedValue = 2020; toolboxSub.Children.Add(cmbYear); cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "变电站选址定容", IsEnabled = false, }; btn.Click += new System.Windows.RoutedEventHandler(btnTransform_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "充电桩选址定容" }; btn.Click += new System.Windows.RoutedEventHandler(btnCharge_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "储能装置选址定容", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnStore_Click); toolboxSub.Children.Add(btn); }
public RRealTime(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { // 工具栏初始化 zButton btn; btn = new zButton() { text = "显示潮流", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnFlow_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "变压器负载", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnLoadColumn_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "电压等值图", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnVLContour_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "停电区域", group = "1", Margin = new System.Windows.Thickness(0, 0, 10, 0) }; btn.Click += new System.Windows.RoutedEventHandler(btnCutArea_Click); toolboxSub.Children.Add(btn); }
public PAll(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { //// 工具栏初始化 //for (int i = 2015; i < 2026; i++) // cmbYear.Items.Add(i); //cmbYear.SelectedValue = 2020; //toolboxSub.Children.Add(cmbYear); //cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); //zButton btn; //btn = new zButton() { text = "配网自动化程度" }; //btn.Click += new System.Windows.RoutedEventHandler(btnAuto_Click); //toolboxSub.Children.Add(btn); //btn = new zButton() { text = "可靠性分析" }; //btn.Click += new System.Windows.RoutedEventHandler(btnReliability_Click); //toolboxSub.Children.Add(btn); //btn = new zButton() { text = "N-1分析" }; //btn.Click += new System.Windows.RoutedEventHandler(btnN1_Click); //toolboxSub.Children.Add(btn); //btn = new zButton() { text = "主动性分析" }; //btn.Click += new System.Windows.RoutedEventHandler(btnInitiative_Click); //toolboxSub.Children.Add(btn); //btn = new zButton() { text = "方案对比" }; //btn.Click += new System.Windows.RoutedEventHandler(btnCompare_Click); //toolboxSub.Children.Add(btn); }
public PEvalute(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { object container = VisualTreeHelper.GetParent(_Global.InstanceSelector); if (container != null) { (container as System.Windows.Controls.StackPanel).Children.Remove(_Global.InstanceSelector); } toolboxSub.Children.Add(_Global.InstanceSelector); //// 工具栏初始化 //for (int i = 2015; i < 2026; i++) // cmbYear.Items.Add(i); //cmbYear.SelectedValue = 2020; //toolboxSub.Children.Add(cmbYear); //cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "指标体系" }; btn.Click += new System.Windows.RoutedEventHandler(btnIndex_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "指标鱼骨图" }; btn.Click += new System.Windows.RoutedEventHandler(btnIndexFish_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "KPI关键指标" }; btn.Click += new System.Windows.RoutedEventHandler(btnKPI_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "评价指数" }; btn.Click += new System.Windows.RoutedEventHandler(btnIDX_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "财务评价指标" }; btn.Click += new System.Windows.RoutedEventHandler(btnEconomy_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "敏感性分析" }; btn.Click += new System.Windows.RoutedEventHandler(btnPrice_Click); toolboxSub.Children.Add(btn); }
public AppBase(UCDNV863 Root) { root = Root; //初始化信息板容器 grdPanel.RenderTransform = transformpanel; transformpanel.X = 300; root.grdInfo.Children.Add(grdPanel); }
public ITimesApp(UCDNV863 Root) : base(Root) { if (ITimesController.ucpanel == null) { ITimesController.ucpanel = new ITimesPanel(root); } root.grdContent.Children.Add(ITimesController.ucpanel); }
public SectionFlowDiagram(UCDNV863 Parent) { parent = Parent; earth = parent.earth; InitializeComponent(); parent.grdMap.MouseDown += new MouseButtonEventHandler(map_MouseDown); parent.grdMap.MouseMove += new MouseEventHandler(map_MouseMove); parent.grdMap.MouseWheel += new MouseWheelEventHandler(map_MouseWheel); DataGenerator.UpdateSectionData = updateData; }
public PAnalyse(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { object container = VisualTreeHelper.GetParent(_Global.InstanceSelector); if (container != null) { (container as System.Windows.Controls.StackPanel).Children.Remove(_Global.InstanceSelector); } toolboxSub.Children.Add(_Global.InstanceSelector); //// 工具栏初始化 //for (int i = 2015; i < 2026; i++) // cmbYear.Items.Add(i); //cmbYear.SelectedValue = 2020; //toolboxSub.Children.Add(cmbYear); //cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "配网自动化程度" }; btn.Click += new System.Windows.RoutedEventHandler(btnAuto_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "可靠性分析" }; btn.Click += new System.Windows.RoutedEventHandler(btnReliability_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "N-1分析" }; btn.Click += new System.Windows.RoutedEventHandler(btnN1_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "主动性分析" }; btn.Click += new System.Windows.RoutedEventHandler(btnInitiative_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "方案对比" }; btn.Click += new System.Windows.RoutedEventHandler(btnCompare_Click); toolboxSub.Children.Add(btn); }
public PEvalute(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { // 工具栏初始化 for (int i = 2015; i < 2026; i++) { cmbYear.Items.Add(i); } cmbYear.SelectedValue = 2020; toolboxSub.Children.Add(cmbYear); cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "指标体系" }; btn.Click += new System.Windows.RoutedEventHandler(btnIndex_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "指标鱼骨图" }; btn.Click += new System.Windows.RoutedEventHandler(btnIndexFish_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "KPI关键指标" }; btn.Click += new System.Windows.RoutedEventHandler(btnKPI_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "评价指数" }; btn.Click += new System.Windows.RoutedEventHandler(btnIDX_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "财务评价指标" }; btn.Click += new System.Windows.RoutedEventHandler(btnEconomy_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "敏感性分析" }; btn.Click += new System.Windows.RoutedEventHandler(btnPrice_Click); toolboxSub.Children.Add(btn); }
public PanelData(UCDNV863 Root) { root = Root; tmr.Tick += new EventHandler(tmr_Tick); loadrates = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.VListItem>(); volts = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.VListItem>(); realLoads = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.ChartDataPoint>(); planLoads = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.ChartDataPoint>(); greenpowers = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.VListItem>(); greenscales = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.ChartDataPoint>(); cars = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.VListItem>(); customs = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.VListItem>(); cuts = new System.ComponentModel.BindingList <MyClassLibrary.DevShare.VListItem>(); }
public RHistory(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { toolboxSub.Children.Add(new TextBlock() { Text = "时间段:", Foreground = Brushes.Cyan, VerticalAlignment = System.Windows.VerticalAlignment.Bottom, Margin = new System.Windows.Thickness(20, 0, 0, 0), FontSize = 16 }); dateStart = new DevExpress.Xpf.Editors.DateEdit() { DateTime = DateTime.Now.AddDays(-1), Height = 24, VerticalAlignment = System.Windows.VerticalAlignment.Bottom }; toolboxSub.Children.Add(dateStart); toolboxSub.Children.Add(new TextBlock() { Text = "――――", Foreground = Brushes.Cyan, VerticalAlignment = System.Windows.VerticalAlignment.Bottom, Margin = new System.Windows.Thickness(4, 0, 4, 0) }); dateEnd = new DevExpress.Xpf.Editors.DateEdit() { DateTime = DateTime.Now, Height = 24, Margin = new System.Windows.Thickness(0, 0, 60, 0), VerticalAlignment = System.Windows.VerticalAlignment.Bottom }; toolboxSub.Children.Add(dateEnd); dateStart.EditValueChanged += new DevExpress.Xpf.Editors.EditValueChangedEventHandler(dateStart_EditValueChanged); dateEnd.EditValueChanged += new DevExpress.Xpf.Editors.EditValueChangedEventHandler(dateEnd_EditValueChanged); // 工具栏初始化 zButton btn; btn = new zButton() { text = "运行重演", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnReplay_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "统计分析", group = "2", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnStatistics_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "指标评价", group = "3" }; btn.Click += new System.Windows.RoutedEventHandler(btnIndexEvaluate_Click); toolboxSub.Children.Add(btn); }
public IParaSet(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { zButton btn; btn = new zButton() { text = "分类负荷特性" }; btn.Click += new System.Windows.RoutedEventHandler(btnClassifcation_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "统计负荷特性" }; btn.Click += new System.Windows.RoutedEventHandler(btnSummary_Click); toolboxSub.Children.Add(btn); }
public RFuture(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { zButton btn; // 工具栏初始化 cmbSelect.Items.Add("5分钟后"); cmbSelect.Items.Add("30分钟后"); cmbSelect.Items.Add("60分钟后"); toolboxSub.Children.Add(cmbSelect); cmbSelect.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbSelect_SelectionChanged); btn = new zButton() { text = "预测 ", Foreground = new SolidColorBrush(Colors.Blue), isNormalButton = true, group = "0", Margin = new System.Windows.Thickness(3, 0, 30, 0), IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnCal_Click); toolboxSub.Children.Add(btn); //显示部分 btn = new zButton() { text = "预测潮流", group = "1", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnFlow_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "负荷转移", group = "1", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnLoadTransfer_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "电压无功", group = "1", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnVLRP_Click); toolboxSub.Children.Add(btn); }
public PChoice(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { object container = VisualTreeHelper.GetParent(_Global.InstanceSelector); if (container != null) { (container as System.Windows.Controls.StackPanel).Children.Remove(_Global.InstanceSelector); } toolboxSub.Children.Add(_Global.InstanceSelector); //// 工具栏初始化 //for (int i = 2015; i < 2026; i++) // cmbYear.Items.Add(i); //cmbYear.SelectedValue = 2020; //toolboxSub.Children.Add(cmbYear); //cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "变电站选址定容", IsEnabled = false, }; btn.Click += new System.Windows.RoutedEventHandler(btnTransform_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "充电桩选址定容" }; btn.Click += new System.Windows.RoutedEventHandler(btnCharge_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "储能装置选址定容", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnStore_Click); toolboxSub.Children.Add(btn); }
public PTimes(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { object container = VisualTreeHelper.GetParent(_Global.InstanceSelector); if (container != null) { (container as System.Windows.Controls.StackPanel).Children.Remove(_Global.InstanceSelector); } toolboxSub.Children.Add(_Global.InstanceSelector); //// 工具栏初始化 //for (int i = 2015; i < 2026; i++) // cmbYear.Items.Add(i); //cmbYear.SelectedValue = 2020; //toolboxSub.Children.Add(cmbYear); //cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "配网规划演进", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnEvolve_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "配网历史变迁", group = "2", IsEnabled = false }; btn.Click += new System.Windows.RoutedEventHandler(btnHistory_Click); toolboxSub.Children.Add(btn); //btn = new zButton() { text = "用电负荷变化", group = "3", IsEnabled=false }; //btn.Click += new System.Windows.RoutedEventHandler(btnLoadChange_Click); //toolboxSub.Children.Add(btn); }
public MLog(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { }
public MRoleManage(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { }
public PRunSupplyRange(UCDNV863 Root) : base(Root) { panel = new PRunSupplyRangePanel(Root); grdPanel.Children.Add(panel); }
public PAnalyseAutoPanel(UCDNV863 Root) { root = Root; InitializeComponent(); }
public IParaSetSummary(UCDNV863 Root) : base(Root) { }
public RHistoryStat(UCDNV863 Root) : base(Root) { }
public RFullViewGridArea(UCDNV863 Root) : base(Root) { //panel = new PRunFlowPanel(root); //动画需求,不能放入load中 //grdPanel.Children.Add(panel); }
public PEvaluteSensitive(UCDNV863 Root) : base(Root) { //panel = new PRunFlowPanel(root); //动画需求,不能放入load中 //grdPanel.Children.Add(panel); }
public PRunFlow(UCDNV863 Root) : base(Root) { panel = new PRunFlowPanel(root); //动画需求,不能放入load中 grdPanel.Children.Add(panel); }
public PAnalyseInitiative(UCDNV863 Root) : base(Root) { panel = new PAnalyseInitiativePanel(Root); grdPanel.Children.Add(panel); }
public IParaSetClassification(UCDNV863 Root) : base(Root) { }
public PRun(UCDNV863 parent, string AppName, Brush icon) : base(parent, AppName, icon) { object container = VisualTreeHelper.GetParent(_Global.InstanceSelector); if (container != null) { (container as System.Windows.Controls.StackPanel).Children.Remove(_Global.InstanceSelector); } toolboxSub.Children.Add(_Global.InstanceSelector); // 工具栏初始化 //for (int i = 2015; i < 2026; i++) // cmbYear.Items.Add(i); //cmbYear.SelectedValue = 2020; //toolboxSub.Children.Add(cmbYear); //cmbYear.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(cmbYear_SelectionChanged); zButton btn; btn = new zButton() { text = "潮流", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnFlow_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "负载率", group = "1" }; btn.Click += new System.Windows.RoutedEventHandler(btnLoad_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "电压", group = "1", Margin = new System.Windows.Thickness(0, 0, 10, 0) }; btn.Click += new System.Windows.RoutedEventHandler(btnVL_Click); toolboxSub.Children.Add(btn); //btn = new zButton() { text = "断面潮流", group = "5" }; //btn.Click += new System.Windows.RoutedEventHandler(btnSection_Click); //toolboxSub.Children.Add(btn); btn = new zButton() { text = "电源追溯", group = "2" }; btn.Click += new System.Windows.RoutedEventHandler(btnTrace_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "供电范围", group = "3" }; btn.Click += new System.Windows.RoutedEventHandler(btnRange_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "负荷等值图", group = "6" }; btn.Click += new System.Windows.RoutedEventHandler(btnLoadContour_Click); toolboxSub.Children.Add(btn); btn = new zButton() { text = "区块负荷预测", group = "4" }; btn.Click += new System.Windows.RoutedEventHandler(btnLoadForcast_Click); toolboxSub.Children.Add(btn); }