?? piecharxsxxmanage.cs
字號:
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Printing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using CallCenter.BusinessLayer;
using CallCenter.DALFactory;
using CallCenter.IDAL;
using CallCenter.Modules;
using CallCenter.OracleDAL;
using System.Drawing.PieChart;
namespace CallCenter.BusinessInterfaces.MainForms
{/// <summary>
/// Summary description for Form1.
/// </summary>
public class PieCharXsxxManage : System.Windows.Forms.UserControl
{
#region Controls
private System.Drawing.PieChart.PieChartControl m_panelDrawing;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.NumericUpDown numericUpDownDisplacement1;
private System.Windows.Forms.NumericUpDown numericUpDownDisplacement2;
private System.Windows.Forms.NumericUpDown numericUpDownDisplacement3;
private System.Windows.Forms.NumericUpDown numericUpDownDisplacement4;
private System.Windows.Forms.NumericUpDown numericUpDownDisplacement5;
private System.Windows.Forms.NumericUpDown numericUpDownDisplacement6;
private System.Windows.Forms.Button buttonColor1;
private System.Windows.Forms.Button buttonColor2;
private System.Windows.Forms.Button buttonColor3;
private System.Windows.Forms.Button buttonColor4;
private System.Windows.Forms.Button buttonColor5;
private System.Windows.Forms.Button buttonColor6;
private System.Windows.Forms.TextBox textBoxText1;
private System.Windows.Forms.TextBox textBoxText2;
private System.Windows.Forms.TextBox textBoxText3;
private System.Windows.Forms.TextBox textBoxText5;
private System.Windows.Forms.TextBox textBoxText4;
private System.Windows.Forms.TextBox textBoxText6;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.NumericUpDown numericUpDownLeftMargin;
private System.Windows.Forms.NumericUpDown numericUpDownRightMargin;
private System.Windows.Forms.NumericUpDown numericUpDownTopMargin;
private System.Windows.Forms.NumericUpDown numericUpDownBottomMargin;
private System.Windows.Forms.NumericUpDown numericUpDownAngle;
private System.Windows.Forms.NumericUpDown numericUpDownPieHeight;
private System.Windows.Forms.ComboBox comboBoxEdgeType;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.RadioButton radioButtonShadowStyleGradual;
private System.Windows.Forms.RadioButton radioButtonShadowStyleUniform;
private System.Windows.Forms.RadioButton radioButtonShadowStyleNone;
private System.Windows.Forms.NumericUpDown numericUpDownEdgeLineWidth;
private System.Windows.Forms.CheckBox checkBoxFitChart;
private System.Windows.Forms.NumericUpDown m_numericUpDownAlpha;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Button m_buttonPrint;
private System.Windows.Forms.PrintDialog m_printDialog;
private System.Windows.Forms.ColorDialog m_colorDialog;
#endregion
private DevExpress.XtraEditors.GroupControl groupControl1;
private System.Windows.Forms.Button buttonColor7;
private System.Windows.Forms.Button buttonColor8;
private System.Windows.Forms.Button buttonColor9;
private System.Windows.Forms.Button buttonColor10;
private System.Windows.Forms.Button buttonColor11;
private System.Windows.Forms.Button buttonColor12;
private DevExpress.XtraEditors.SimpleButton simpleButton1;
private DevExpress.XtraEditors.PanelControl panelControl1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label15;
private DevExpress.XtraEditors.SimpleButton simpleButton2;
private DevExpress.XtraEditors.ComboBoxEdit cbtablename;
private DevExpress.XtraEditors.ComboBoxEdit cbtype;
private System.ComponentModel.Container components = null;
public PieCharXsxxManage()
{
InitializeComponent();
FillEdgeColorTypeListBox();
InitializeChart();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.m_panelDrawing = new System.Drawing.PieChart.PieChartControl();
this.numericUpDownAngle = new System.Windows.Forms.NumericUpDown();
this.label1 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.radioButtonShadowStyleGradual = new System.Windows.Forms.RadioButton();
this.radioButtonShadowStyleUniform = new System.Windows.Forms.RadioButton();
this.radioButtonShadowStyleNone = new System.Windows.Forms.RadioButton();
this.numericUpDownDisplacement1 = new System.Windows.Forms.NumericUpDown();
this.numericUpDownDisplacement6 = new System.Windows.Forms.NumericUpDown();
this.numericUpDownDisplacement5 = new System.Windows.Forms.NumericUpDown();
this.numericUpDownDisplacement4 = new System.Windows.Forms.NumericUpDown();
this.numericUpDownDisplacement3 = new System.Windows.Forms.NumericUpDown();
this.numericUpDownDisplacement2 = new System.Windows.Forms.NumericUpDown();
this.numericUpDownPieHeight = new System.Windows.Forms.NumericUpDown();
this.label2 = new System.Windows.Forms.Label();
this.comboBoxEdgeType = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.numericUpDownBottomMargin = new System.Windows.Forms.NumericUpDown();
this.numericUpDownTopMargin = new System.Windows.Forms.NumericUpDown();
this.numericUpDownRightMargin = new System.Windows.Forms.NumericUpDown();
this.numericUpDownLeftMargin = new System.Windows.Forms.NumericUpDown();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.buttonColor6 = new System.Windows.Forms.Button();
this.buttonColor5 = new System.Windows.Forms.Button();
this.buttonColor4 = new System.Windows.Forms.Button();
this.buttonColor3 = new System.Windows.Forms.Button();
this.buttonColor2 = new System.Windows.Forms.Button();
this.buttonColor1 = new System.Windows.Forms.Button();
this.m_colorDialog = new System.Windows.Forms.ColorDialog();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.textBoxText6 = new System.Windows.Forms.TextBox();
this.textBoxText5 = new System.Windows.Forms.TextBox();
this.textBoxText4 = new System.Windows.Forms.TextBox();
this.textBoxText3 = new System.Windows.Forms.TextBox();
this.textBoxText2 = new System.Windows.Forms.TextBox();
this.textBoxText1 = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.numericUpDownEdgeLineWidth = new System.Windows.Forms.NumericUpDown();
this.checkBoxFitChart = new System.Windows.Forms.CheckBox();
this.label13 = new System.Windows.Forms.Label();
this.m_numericUpDownAlpha = new System.Windows.Forms.NumericUpDown();
this.m_buttonPrint = new System.Windows.Forms.Button();
this.m_printDialog = new System.Windows.Forms.PrintDialog();
this.groupControl1 = new DevExpress.XtraEditors.GroupControl();
this.buttonColor7 = new System.Windows.Forms.Button();
this.buttonColor8 = new System.Windows.Forms.Button();
this.buttonColor9 = new System.Windows.Forms.Button();
this.buttonColor10 = new System.Windows.Forms.Button();
this.buttonColor11 = new System.Windows.Forms.Button();
this.buttonColor12 = new System.Windows.Forms.Button();
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.cbtablename = new DevExpress.XtraEditors.ComboBoxEdit();
this.cbtype = new DevExpress.XtraEditors.ComboBoxEdit();
this.label12 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownAngle)).BeginInit();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownDisplacement2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownPieHeight)).BeginInit();
this.groupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownBottomMargin)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownTopMargin)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownRightMargin)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownLeftMargin)).BeginInit();
this.groupBox6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDownEdgeLineWidth)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.m_numericUpDownAlpha)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit();
this.groupControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbtablename.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbtype.Properties)).BeginInit();
this.SuspendLayout();
//
// m_panelDrawing
//
this.m_panelDrawing.BackColor = System.Drawing.SystemColors.Window;
this.m_panelDrawing.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.m_panelDrawing.Dock = System.Windows.Forms.DockStyle.Top;
this.m_panelDrawing.Location = new System.Drawing.Point(0, 0);
this.m_panelDrawing.Name = "m_panelDrawing";
this.m_panelDrawing.Size = new System.Drawing.Size(864, 432);
this.m_panelDrawing.TabIndex = 16;
this.m_panelDrawing.ToolTips = null;
//
// numericUpDownAngle
//
this.numericUpDownAngle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.numericUpDownAngle.Increment = new System.Decimal(new int[] {
10,
0,
0,
0});
this.numericUpDownAngle.Location = new System.Drawing.Point(408, 403);
this.numericUpDownAngle.Maximum = new System.Decimal(new int[] {
400,
0,
0,
0});
this.numericUpDownAngle.Minimum = new System.Decimal(new int[] {
360,
0,
0,
-2147483648});
this.numericUpDownAngle.Name = "numericUpDownAngle";
this.numericUpDownAngle.Size = new System.Drawing.Size(48, 21);
this.numericUpDownAngle.TabIndex = 7;
this.numericUpDownAngle.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
this.numericUpDownAngle.Value = new System.Decimal(new int[] {
30,
0,
0,
-2147483648});
this.numericUpDownAngle.Visible = false;
this.numericUpDownAngle.ValueChanged += new System.EventHandler(this.numericUpDownAngle_ValueChanged);
//
// label1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -