todo stage1
This commit is contained in:
60
MySolution/ToDoApp/SubControl/ToDoListItem.xaml.cs
Normal file
60
MySolution/ToDoApp/SubControl/ToDoListItem.xaml.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using ToDoApp.Model;
|
||||
|
||||
namespace ToDoApp.SubControl
|
||||
{
|
||||
/// <summary>
|
||||
/// ToDoListItem.xaml에 대한 상호 작용 논리
|
||||
/// </summary>
|
||||
public partial class ToDoListItem : UserControl
|
||||
{
|
||||
public Item Item { get; set; }
|
||||
|
||||
public ToDoListItem(Item item)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.Item = item;
|
||||
InitInstance();
|
||||
}
|
||||
|
||||
private void InitInstance()
|
||||
{
|
||||
tbItemName.Text = this.Item.Title;
|
||||
ckbFinish.IsChecked = this.Item.IsToday == true ? true : false;
|
||||
}
|
||||
|
||||
private void miToday_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void miFinish_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void miDelete_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ckbFinish_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user