随笔分类 -  C#

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;using System.IO;using System.Globalization;namespace ADM.ProgressMonitor.DataObjects{ public class ErrHandler { public static void WriteError(Exception error) { ... 阅读全文
posted @ 2013-05-13 16:10 louiskoo 阅读(195) 评论(0) 推荐(0)
摘要:/// <summary> /// 直线插值 /// </summary> /// <param name="linePoints">点击</param> /// <param name="x">X插值点</param> /// <returns>插值的Y值</returns> public static double? LineInterpolation(List<PointF> linePoints, double x) { int? idx1 阅读全文
posted @ 2013-05-13 16:07 louiskoo 阅读(3651) 评论(0) 推荐(0)
摘要:/// <summary> /// 根据输入的判断条件进行多项查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Search_Click(object sender, EventArgs e) { var result = from u in context.SRC_DEF_PLATFORM sele... 阅读全文
posted @ 2013-05-13 16:02 louiskoo 阅读(195) 评论(0) 推荐(0)
摘要://分页初始化 btnFirst.Enabled = true; btnPrev.Enabled = true; btnNext.Enabled = true; btnLast.Enabled = true; LblCurrentIndex.Visible = true; LblPageCount.Visible = true; LblRecordCount.Visible = true; LblCurrentIndex... 阅读全文
posted @ 2013-05-13 16:01 louiskoo 阅读(247) 评论(0) 推荐(0)
摘要:using (System.Data.Common.DbTransaction traction = context.Connection.BeginTransaction()) { try { SRC_DEF_BASELINE_ALART t = new SRC_DEF_BASELINE_ALART(); //新添加的SRC_DEF_BASELINE_ALART的ID位已有的加1 ... 阅读全文
posted @ 2013-05-13 15:59 louiskoo 阅读(228) 评论(0) 推荐(0)
摘要:protected void RbIsManual_CheckedChanged(object sender, EventArgs e) { RadioButton rb = sender as RadioButton; if (rb != null) { GridViewRow row = rb.Parent.Parent as GridViewRow; Button confirm = (Button)row.FindControl("save")... 阅读全文
posted @ 2013-05-13 15:56 louiskoo 阅读(343) 评论(0) 推荐(0)
摘要:<asp:GridView ID="AeroDataListGridView" runat="server" AutoGenerateColumns="False" CellPadding="3" ForeColor="#333333" GridLines="None" onrowdatabound="AeroDataListGridView_RowDataBound" AllowPaging="True" onpageindex 阅读全文
posted @ 2013-05-13 15:54 louiskoo 阅读(7231) 评论(0) 推荐(0)
摘要:public class SeatChoosenEventArgs : EventArgs { public 呼叫中心工号核对表Entity SeatChoosen; } public partial class UCSeatIcon : UserControl{ private 呼叫中心工号核对表Entity _entity; public event EventHandler<SeatChoosenEventArgs> SeatChoosenEvent; private void pictureBox1_Click(object sende... 阅读全文
posted @ 2013-05-13 15:32 louiskoo 阅读(12422) 评论(0) 推荐(0)
摘要:private void RefreashData() { Thread t = new Thread(new ThreadStart(delegate { try { seatDay = SeatAlgorithm.GetSeatTotalDayData(); seatWeek = SeatAlgorithm.GetSeatTotalWeekData(); gr... 阅读全文
posted @ 2013-05-13 10:52 louiskoo 阅读(4192) 评论(0) 推荐(0)
摘要:public partial class WordArt : UserControl//这是一个艺术字的控件 { //文本属性 private string _text = "WordArt"; public string Caption { get { return _text; } set { _text = value; } } //字体以及大小 private Font _WordArtFont = new Font("宋体", 15);... 阅读全文
posted @ 2013-05-13 10:49 louiskoo 阅读(1947) 评论(0) 推荐(0)
摘要:internal class ChartStyle { internal static void RemoveZeroDataPointLabel(Chart chart) { foreach (Series series in chart.Series) { foreach (DataPoint dp in series.Points) { if (dp.YValues[0].ToString() == "0") ... 阅读全文
posted @ 2013-05-13 10:43 louiskoo 阅读(1895) 评论(0) 推荐(0)
摘要:series["PixelPointWidth"] = "150"; //定位柱状图的宽度 阅读全文
posted @ 2013-05-05 22:06 louiskoo 阅读(642) 评论(0) 推荐(0)
摘要:chart1.ChartAreas[0].AxisY.LabelStyle.Format = "0%"; chart1.Series[0].Label = "#VAL{P}"; 阅读全文
posted @ 2013-05-05 20:12 louiskoo 阅读(2450) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;using System.IO;namespace tes2{ class Encrypt { #region "定义加密字串变量" private SymmetricAlgorithm mCSP; //声明对称算法变量 private const string CIV = "Mi9l/+7Zujhy12se... 阅读全文
posted @ 2013-04-27 16:36 louiskoo 阅读(3018) 评论(0) 推荐(0)
摘要:public partial class UserDataGridView : DataGridView { private Image m_Image; public UserDataGridView() { InitializeComponent(); //this.m_Image = Image.FromFile("C:\\BG.jpg"); //this.m_Image = Resources.网格背景; } ///<summary>重写... 阅读全文
posted @ 2013-04-26 16:52 louiskoo 阅读(478) 评论(0) 推荐(0)
摘要:public partial class UserControl1 : UserControl { private string _text; public string textValue { get { return this._text; } set { this._text = value; textBox1.Text = _text; ... 阅读全文
posted @ 2013-04-26 16:51 louiskoo 阅读(2669) 评论(0) 推荐(1)
摘要:Chart ChartBorder 图表区域的边框设置 ChartFill 图表区域的背景填充 Legend 图表的注释标签显示设置项目,一组数据对应一种颜色的注释 IsHStack 当有多个显示项的时候设置Y轴数据是叠加的还是分开的 Xaxis 图表区域的X轴相关信息设置 ... 阅读全文
posted @ 2013-04-26 10:20 louiskoo 阅读(44023) 评论(0) 推荐(4)
摘要://设置单元格自动宽 datagridview.DefaultCellStyle.WrapMode = DataGridViewTriState.True; datagridview.DefaultCellStyle.ForeColor = Color.White; datagridview.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader; //设置字体大小 System.Windows.Forms... 阅读全文
posted @ 2013-04-26 10:10 louiskoo 阅读(8168) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespace OracleTest.CustomControl{ public partial class UserDataGridView : DataGridView { private Image m_Imag... 阅读全文
posted @ 2013-04-26 10:06 louiskoo 阅读(1192) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/gisfarmer/article/details/3764734 阅读全文
posted @ 2013-04-25 11:29 louiskoo 阅读(310) 评论(0) 推荐(0)