본문 바로가기
300x250

전체 글490

파일 모니터링 프로그램 입니다. 선택한 폴더의 파일들을 모니터링 하는 프로그램 입니다. 모니터링 할 경로를 설정 후 타입에는 파일 확장자를 입력한 다음 모니터링 ON 버튼을 클릭하면 동작합니다. 2019. 10. 27.
C# / Winform 프로그레스바(Progress Bar) 입니다. Winform 프로그레스바 입니다. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WinformApp { public partial class MainForm : Form { private int number = 0; private string orgString = ""; /// /// 생성자 입니다. /// public MainForm() { Initia.. 2019. 10. 27.
DevExpress / Winform Bar 차트의 Bar의 색상을 변경합니다. 차트의 Bar의 색상을 변경합니다. using System; using System.Data; using System.Drawing; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart .. 2019. 9. 30.
DevExpress / Winform 차트에 spline, line, bar를 출력합니다. 차트에 spline, line, bar를 출력합니다. using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart = new ChartC.. 2019. 9. 29.
DevExpress / Winform Bar 차트를 생성합니다 Bar 차트를 생성합니다 using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart = new ChartControl(); chart... 2019. 9. 29.
DevExpress / Winform 개별 차트 시리즈를 데이터에 바인딩 합니다 개별 차트 시리즈를 데이터에 바인딩하는 예제 입니다. using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace Dev_Sample { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Load += mainForm_Load; } /// /// 메인폼 로드시 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void mainForm_Load(object sender, EventArgs e) { ChartControl chart = new ChartC.. 2019. 9. 29.
DevExpress / Winform Unbound Column 생성하기 입니다. Unbound Column 생성하기 입니다. GridColumn unboundColumn = this.gridView.Columns.AddField("Test"); unboundColumn.VisibleIndex = this.gridView.Columns.Count; unboundColumn.UnboundType = DevExpress.Data.UnboundColumnType.Decimal; unboundColumn.OptionsColumn.AllowEdit = false; 위의 코드를 작성하여 Test라는 이름을 가진 언 바운드 컬럼을 생성합니다. private void gridView_CustomUnboundColumnData(object sender, DevExpress.XtraGrid.Views... 2019. 9. 10.
DevExpress / Winform 행의 색깔 변경하기 입니다. 특정 행의 색을 변경합니다. private void gridView_RowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e) { var row = this.gridView.GetRowCellDisplayText(e.RowHandle, "ID"); if(row.Equals("aaa")) { e.Appearance.BackColor = Color.DarkOrange; } } GetRowCellDisplayText 메서드에서 두번째 인자는 컬럼 이름을 작성하면 됩니다. 2019. 9. 10.
300x250