프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Controls / SignManager.xaml.cs @ d21e9c15

이력 | 보기 | 이력해설 | 다운로드 (1.96 KB)

1
using KCOM.Common;
2
using System;
3
using System.Collections.Generic;
4
using System.Linq;
5
using System.Text;
6
using System.Threading.Tasks;
7
using System.Windows;
8
using System.Windows.Controls;
9
using System.Windows.Data;
10
using System.Windows.Documents;
11
using System.Windows.Input;
12
using System.Windows.Media;
13
using System.Windows.Media.Imaging;
14
using System.Windows.Shapes;
15
using Telerik.Windows.Controls;
16

    
17
namespace KCOM.Controls
18
{
19
    /// <summary>
20
    /// SignManager.xaml에 대한 상호 작용 논리
21
    /// </summary>
22
    public partial class SignManager : UserControl
23
    {
24
        public SignManager()
25
        {
26
            InitializeComponent();
27
        }
28

    
29
        private void Reset_Click(object sender, RoutedEventArgs e)
30
        {
31
            txtInput.Text = "";
32
            txtInput.IsEnabled = true;
33

    
34
            SignCanvas.Strokes.Clear();
35
        }
36

    
37
        private async void Save_Click(object sender, RoutedEventArgs e)
38
        {
39
            var items = await ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.SetSignDataAsync(
40
                         App.UserID,"");
41
        }
42

    
43
        private string GetSignData()
44
        {
45
            string result = "";
46

    
47
            try
48
            {
49

    
50
            }
51
            catch (Exception)
52
            {
53

    
54
                throw;
55
            }
56

    
57
            return result;
58
        }
59

    
60
        private void SignCanvas_SourceUpdated(object sender, DataTransferEventArgs e)
61
        {
62
            if(SignCanvas.Strokes.Count() > 0)
63
            {
64
                txtInput.IsEnabled = false;
65
            }
66
            else
67
            {
68
                txtInput.IsEnabled = true;
69
            }
70
        }
71

    
72
        private void SignCanvas_StrokeCollected(object sender, InkCanvasStrokeCollectedEventArgs e)
73
        {
74
            if (SignCanvas.Strokes.Count() > 0)
75
            {
76
                txtInput.IsEnabled = false;
77
            }
78
            else
79
            {
80
                txtInput.IsEnabled = true;
81
            }
82
        }
83
    }
84
}
클립보드 이미지 추가 (최대 크기: 500 MB)