본문 바로가기

Visual Programming

(6)
WPF #1 기본 이론Mark Up: 로 표시하는 언어(ex. HTML, XML(표준포맷), XAML(XML기반 언어))ㄴ Container(lay out): Grid / StackPanel / Canvas / UniformGrid / DockPanel / WrapPanelXAML: 확장 가능한 Markup 언어(Extensible Application Markup Language)* GUI를 만들기 위해 XML 변형한 언어Basic XAML태그: 시작, 종료 , 시작과 종료 한 번에 내용(Content) - 시작 태그와 종료 태그 사이에 작성: 내용 Text: 텍스트 컨트롤의 내용 작성(ex. )Content: 문자 뿐만 아니라 UI도 담을 수 있는 요소(컨트롤)에 사용 (ex. )속성(Properites..
Visual Programming과 Firebase 연동 #1 Firebase의 기본 설정1. Firebase 프로젝트 생성firebase 홈페이지 접속 후 '프로젝트 추가' 버튼 클릭프로젝트 이름 선정 후 모두 '다음' 버튼 눌러서 생성2. Firebase Realtime Database 생성프로젝트 대시보드 왼쪽의 'Build - Realtime Database' > 'Database 만들기' 클릭보안 규칙 설정(상단의 '규칙' 탭) > read와 write를 true로 설정 3. Database URL 확인상단의 '데이터' 탭에서 url 주소 확인 가능 4. Firebase Secret Key(비번) 가져오기왼쪽의 프로젝트 개요 (톱니바퀴) → 프로젝트 설정서비스계정 탭 → 데이터베이스 비밀번호 확인 가능 #2 Firebase와 연동을 위한 Visu..
Visual Programming #4 #1 메시지 박스 활용하기 1. 이름을 입력하는 창 띄우기private void btnClick_Click(object sender, EventArgs e) {     if (txtName.Text != "")         lblResult.Text = txtName.Text + "님! 안녕하세요!";     else         MessageBox.Show("이름을 입력하세요", "Warning"); }    2. 다양한 메시지 박스 프로그램    private void Form1_Load(object sender, EventArgs e)     {         MessageBox.Show("가장 간단한 메시지박스");         MessageBox.Show("타이틀을 갖는 메시지박스", "타..
Visual Programming #3-2 #1 WPF로 Hello world 프로그램 만들기  1. MainWindow.xaml - 디자인        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         xmlns:local="clr-namespace:_008_wpf_helloworld"    ..
Visual Programming #3-1 #1 C#의 출력 방법 Console 프로그램1) Console.WriteLine() : ()안의 내용 출력(줄바꿈O)2) Console.Write(): ()안의 내용 출력(줄바꿈X)* 문자열은 그대로 출력하지만 문자열이 아닌 형식은 별도 형식 지정이나 문자열 변환이 필요함 Format({ })Console.WriteLine(format, arg1, arg2 ...);예시) Console.WriteLine("2의 배수 = {0} {1} {2}", 2,4,6);▶ {}을 통해 출력 가능 ({}안의 숫자는 출력하고자 하는 ,로 나열되는 데이터들의 출력 순서 지정)String.Format 이용string primes;primes = String.Format("2의 배수 = {0} {1} {2}", 2,4,6)..
Visual Programming #1-#2 #1_C#에 대한 기본적인 이해 C#을 배워야 하는 이유1) Windows 프로그램에 유용2) .NET과 완전 결합 가능3) C와 문법 비슷4) Visual Studio - Console./Form.WPF C# 언어1) 입출력    - Console.ReadLine() : 무조건 string으로 받음    - Console.WirteLine() : 줄바꿈O    - Console.Write() : 줄바꿈X 형변환- 타입.Parse()   ex) double h = double.Parse(Console.ReadLine()); #2_Window 프로그래밍 Windows Programming 절차1) Design : WinForm, WPF2) 속성(Property): 크기, 위치, Text, (Name)3) ..