전체 글(143)
-
WPF___DataGrid & CheckBox Event
DataGrid *.xmal ___ Source Code WPF ___ Source Code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; using System.Collections.ObjectModel; using System.ComponentModel; using System.Windows.Controls; using System.Windows; using System.Data; namespace qsfp_gui { class ChannelControlBytes { private const ..
2020.02.17 -
WPF___DataGrid
도구상자 - DataGrid 선택 WPF 폼에 위치 using System.Data; namespace WPF { public partial class MainWindow : Window { // DataGrid , 데이터 DataTable dt = new DataTable(); public byte[,] tb_data; public MainWindow() { Init_Variable(); InitializeComponent(); tb_data = new byte[16, 16]; dt.Columns.Add("ADDRESS", typeof(string)); for (int i = 0; i = max_row ) { cnt_row = 0; break; } //wcb.WR_TextBox(logwindow.txt..
2020.02.17 -
WPF___닫힌 윈도우폼 열면 에러?
WPF 에서 닫힌 Winodow 다시열러고 하면 밑에와 같은 에러 출력…. 닫혀진 창에 두번째 그림 과 같이 설정 해서 사용 하면 가능
2020.02.17 -
WPF___백그라운드 프로세서 종료
Environment.Exit(0); System.Diagnostics.Process.GetCurrentProcess().Kill();
2020.02.17 -
WPF___Enum 반복 ( 나열 된 수 만큼 반복 )
e_pam_run.cs using System.Windows; namespace WPF { public partial class MainWindow : Window { public enum e_pam_run { /* Diagnostics */ VERSION, REGISTER_ACCESS, REGISTER_DUMP, REGISTER_DUMP_ALL, LINK_STATUS, SNR_MONITOR, FEC_STATS, /* Initialization */ INIT_MISSION, INIT_CORE_PRBS, INIT_LINE_PRBS, INIT_HOST_PRBS, INIT_LOOPBACK, /* PRBS checker examples */ LINE_PRBS_CHECKER_STATUS_COMBINED, LINE..
2020.02.17 -
WPF___Oxyplot
https://stac koverflow.com/questions/32697963/wpf-plotting-a-cosine-function-when-radiobutton-is-clicked WPF 프로젝트 만들기 프로젝트 -> NuGet 패키지 관리 찾아보기 클릭 -> oxyplot 검색 검색 항목중 OxyPlot.Wpf 선택 -> 설치 설치가 완료 - 참조 항목 확인 File Name : "MainWindow.xmal" File Name : "MainPlotView.cs" using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OxyPlot; ..
2020.02.17 -
TextBox___Cursor 끝으로 보내기
/** Cursor 마지막 선택 */ txt.SelectionStart = txt.Text.Length;
2020.02.17 -
WPF___TextBox 현재 커서 라인 구하기
int line = textBox1.GetLineFromCharIndex(textBox1.SelectionStart); int column = textBox1.SelectionStart - textBox1.GetFirstCharIndexFromLine(line);
2020.02.17 -
Paste___DataObjectPastingEventArgs
/** txt_cmd - User TextBox */ /** Variable */ private bool _isPaste; private _strPasteText = null; /** 이벤트 등록 */ DataObject.AddPastingHandler(txt_Cmd, txt_Cmd_OnPaste); /** 붙여넣기 했을 때 발생 */ private void txt_Cmd_OnPaste(object sender, DataObjectPastingEventArgs e) { /** 붙여넣기 했냐 ? true or false */ _isPaste = e.SourceDataObject.GetDataPresent(DataFormats.UnicodeText, true); /** 붙여넣기한 텍스트 */ _strPast..
2020.02.17 -
WPF___Image 삽입
public class Utils { /// /// BitmapSource - 이미지 경로 지정 /// /// 이미지 경로 /// BitmapSource public BitmapSource BS(string path) { Uri imageUri = new Uri(string.Format(System.IO.Path.Combine(@"/", path), 0), UriKind.Relative); BitmapSource _bs = new BitmapImage(imageUri); return _bs; } } *.cs ----------------------------------------------------------------------------------- Utils utils = new Utils(); ..
2020.02.17