프로젝트

일반

사용자정보

개정판 5822e146

ID5822e1461424e157e24b9ceb45ab925e8d9f820c
상위 be04d12c
하위 ea5d382c

이지연이(가) 약 6년 전에 추가함

issue #694 Topmenu setting 값 변경 추가

차이점 보기:

KCOM/Common/ViewerDataModel.cs
1137 1137
            //rectangles.Add(new RectangleData(1850, 1850, 80, 150, Colors.Red));
1138 1138

  
1139 1139
            this.ControlOpacity = 1;
1140
            //강인구 추가
1141 1140

  
1142
            this.LineSize = 3;
1141
            /* Default
1142
             LineSize = 3, TextSize = 30, Interval = 10, ArcLength = 10, SaveInterval = 5
1143
            */            
1144
            this.LineSize = KCOM.Properties.Settings.Default.LineSize;
1143 1145

  
1144
            this.TextSize = 30;
1146
            this.TextSize = KCOM.Properties.Settings.Default.TextSize;
1145 1147

  
1146
            this.Interval = 10;
1148
            this.Interval = KCOM.Properties.Settings.Default.Interval;
1147 1149

  
1148
            this.ArcLength = 10;
1150
            this.ArcLength = KCOM.Properties.Settings.Default.ArcLength;
1149 1151

  
1150 1152
            this.DashSize = new DoubleCollection();
1151 1153

  
1152
            this.SaveInterval = 5;
1154
            this.SaveInterval = KCOM.Properties.Settings.Default.SaveInterval;
1153 1155

  
1154 1156
        }
1155 1157
        
KCOM/Events/Implementation/TopMenuEvent.cs
743 743
                    ViewerDataModel.Instance.UndoDataList.Remove(i);
744 744
                });
745 745
                ViewerDataModel.Instance.UndoDataList.Add(UndoData);
746

  
747
                
746 748
            }
749
            KCOM.Properties.Settings.Default.LineSize = (double)cbLineSize.Value;
750
            Properties.Settings.Default.Save();
747 751
        }
748 752

  
749 753

  
......
789 793
                });
790 794
                ViewerDataModel.Instance.UndoDataList.Add(UndoData);
791 795
            }
796
            KCOM.Properties.Settings.Default.Interval = (double)cbIntervalSize.Value;
797
            Properties.Settings.Default.Save();
792 798
        }
793 799
        
794 800
        private void cbArcLength_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e)
......
842 848
                //});
843 849
                //ViewerDataModel.Instance.UndoDataList.Add(UndoData);
844 850
            }
851

  
852
            KCOM.Properties.Settings.Default.ArcLength = (double)cbArcLength.Value;
853
            Properties.Settings.Default.Save();
845 854
        }
846 855

  
847 856
        //강인구 추가(Undo End)
......
1149 1158
                    }
1150 1159
                }
1151 1160
            }
1161
            KCOM.Properties.Settings.Default.TextSize = (double)comboFontSize.Value;
1162
            Properties.Settings.Default.Save();
1152 1163
        }
1153 1164

  
1154 1165
        //강인구 추가
......
2109 2120
            if (cbAutoSave.IsChecked == true)
2110 2121
            {
2111 2122
                SaveTime(true, (int)cbSaveInterval.Value);
2112
            }            
2123
            }
2124

  
2125
            KCOM.Properties.Settings.Default.SaveInterval = (double)cbSaveInterval.Value;
2126
            Properties.Settings.Default.Save();
2113 2127
        }
2114 2128
        //강인구 자동 저장 추가
2115 2129
        private void AutoSave(object sender, RoutedEventArgs e)
KCOM/Properties/Settings.Designer.cs
132 132
                this["InitInterval"] = value;
133 133
            }
134 134
        }
135
        
136
        [global::System.Configuration.UserScopedSettingAttribute()]
137
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
138
        [global::System.Configuration.DefaultSettingValueAttribute("3")]
139
        public double LineSize {
140
            get {
141
                return ((double)(this["LineSize"]));
142
            }
143
            set {
144
                this["LineSize"] = value;
145
            }
146
        }
147
        
148
        [global::System.Configuration.UserScopedSettingAttribute()]
149
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
150
        [global::System.Configuration.DefaultSettingValueAttribute("30")]
151
        public double TextSize {
152
            get {
153
                return ((double)(this["TextSize"]));
154
            }
155
            set {
156
                this["TextSize"] = value;
157
            }
158
        }
159
        
160
        [global::System.Configuration.UserScopedSettingAttribute()]
161
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
162
        [global::System.Configuration.DefaultSettingValueAttribute("10")]
163
        public double Interval {
164
            get {
165
                return ((double)(this["Interval"]));
166
            }
167
            set {
168
                this["Interval"] = value;
169
            }
170
        }
171
        
172
        [global::System.Configuration.UserScopedSettingAttribute()]
173
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
174
        [global::System.Configuration.DefaultSettingValueAttribute("10")]
175
        public double ArcLength {
176
            get {
177
                return ((double)(this["ArcLength"]));
178
            }
179
            set {
180
                this["ArcLength"] = value;
181
            }
182
        }
183
        
184
        [global::System.Configuration.UserScopedSettingAttribute()]
185
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
186
        [global::System.Configuration.DefaultSettingValueAttribute("5")]
187
        public double SaveInterval {
188
            get {
189
                return ((double)(this["SaveInterval"]));
190
            }
191
            set {
192
                this["SaveInterval"] = value;
193
            }
194
        }
135 195
    }
136 196
}
KCOM/Properties/Settings.settings
35 35
    <Setting Name="InitInterval" Type="System.Int32" Scope="User">
36 36
      <Value Profile="(Default)">2</Value>
37 37
    </Setting>
38
    <Setting Name="LineSize" Type="System.Double" Scope="User">
39
      <Value Profile="(Default)">3</Value>
40
    </Setting>
41
    <Setting Name="TextSize" Type="System.Double" Scope="User">
42
      <Value Profile="(Default)">30</Value>
43
    </Setting>
44
    <Setting Name="Interval" Type="System.Double" Scope="User">
45
      <Value Profile="(Default)">10</Value>
46
    </Setting>
47
    <Setting Name="ArcLength" Type="System.Double" Scope="User">
48
      <Value Profile="(Default)">10</Value>
49
    </Setting>
50
    <Setting Name="SaveInterval" Type="System.Double" Scope="User">
51
      <Value Profile="(Default)">5</Value>
52
    </Setting>
38 53
  </Settings>
39 54
</SettingsFile>
KCOM/app.config
53 53
      <setting name="InitInterval" serializeAs="String">
54 54
        <value>2</value>
55 55
      </setting>
56
      <setting name="LineSize" serializeAs="String">
57
        <value>3</value>
58
      </setting>
59
      <setting name="TextSize" serializeAs="String">
60
        <value>30</value>
61
      </setting>
62
      <setting name="Interval" serializeAs="String">
63
        <value>10</value>
64
      </setting>
65
      <setting name="ArcLength" serializeAs="String">
66
        <value>10</value>
67
      </setting>
68
      <setting name="SaveInterval" serializeAs="String">
69
        <value>5</value>
70
      </setting>
56 71
    </KCOM.Properties.Settings>
57 72
  </userSettings>
58 73
  <system.serviceModel>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)