Blame view

SunVoteARSPPT/Panels/PanelOperator.cs 2.15 KB
20c0108c   wutaian   xx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
  using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Drawing;
  using System.Data;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  using Microsoft.Office.Interop.PowerPoint;
  using GeneralLib;
  
  namespace SunVoteARSPPT
  {
      public partial class PanelOperator : UserControl, IPanel, IPanelChange
      {
          TagSet mTagSet = null;
          public TagSet TagSet
          {
              get { return mTagSet; }
              set
              {
                  mTagSet = value;
                  //ucKeypadPara.TagSet = value;
              }
          }
  
          private bool IsLoad = false;
  
          public PanelOperator()
          {
              InitializeComponent();
  
              FrmSystemSet.LanguageSetEvent += new FrmSystemSet.LanguageSetEventHander(FrmSystemSet_LanguageSetEvent);
              FrmVoteBar.PanelEnabledEvent += new FrmVoteBar.PanelEnabledEventHander(FrmVoteBar_PanelEnabledEvent);
              //设置控件大小
              //this.Height = gbxSet.Bottom;
              GlobalInfo.SysLanguage.SetLanguage(this.Name, this);
          }
  
          void FrmVoteBar_PanelEnabledEvent(bool enabled)
          {
              this.Enabled = enabled;
          }
  
          void FrmSystemSet_LanguageSetEvent()
          {
              GlobalInfo.SysLanguage.SetLanguage(this.Name, this);
          }
  
          public Color PanelColor
          {
              get
              {
                  return this.BackColor;
              }
              set
              {
                  this.BackColor = value;
              }
          }
  
          /// <summary>
          /// 加载参数面板数据
          /// </summary>
          public void LoadData()
          {
              IsLoad = true;
  
              IsLoad = false;
          }
  
          public void ChangeData(TagKey tagKey, object value)
          {
              //if (tagKey == TagKey.Group_OptionCount)
              //    ControlOper.TrySetNumericUpDownValue(nudOptionCount, TagSet.LoadValue(tagKey, nudOptionCount.Value).ToInt);
          }
  
          private void PanelOperator_Load(object sender, EventArgs e)
          {
              //GlobalInfo.SysLanguage.SetLanguage(this.Name, this);
              //InitType();
          }
  
      }
  }