Changeset 60
- Timestamp:
- 07/02/05 02:58:52 (4 years ago)
- Files:
-
- trunk/MacFaceFloat/MacFaceApp.cs (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/MacFaceFloat/MacFaceApp.cs
r58 r60 44 44 private int memHistoryCount; 45 45 46 private bool doExit;47 48 46 [STAThread] 49 47 public static void Main(string[] args) … … 119 117 public void StartApplication() 120 118 { 121 doExit = false;122 123 119 // ���^�[���ǂݍ��� 124 120 bool result = false; … … 130 126 if (!result) 131 127 { 132 if (!SelectFaceDefine(Application.StartupPath)) 128 string path = Path.Combine(Application.StartupPath, "default.plist"); 129 130 if (!LoadFaceDefine(path)) 133 131 { 134 132 Application.Exit(); … … 151 149 config.Save(); 152 150 } 153 154 /*155 * ���^�[�����t�H���_�I�� */156 public bool SelectFaceDefine()157 {158 return SelectFaceDefine(Application.StartupPath);159 }160 161 public bool SelectFaceDefine(string defaultPath)162 {163 while (true)164 {165 FolderBrowserDialog folderBrowser = new FolderBrowserDialog();166 folderBrowser.SelectedPath = defaultPath;167 folderBrowser.Description = "���^�[���t�@�C���̑��݂����H���_���Ă��������B";168 if (folderBrowser.ShowDialog() == DialogResult.OK)169 {170 if (LoadFaceDefine(folderBrowser.SelectedPath))171 {172 return true;173 }174 }175 else176 {177 return false;178 }179 }180 181 }182 183 151 184 152 public bool LoadFaceDefine(string path) … … 284 252 patternWindow.Move +=new EventHandler(patternWindow_Move); 285 253 286 LoadFaceDefine(config.FaceDefPath);287 288 254 patternWindow.Location = config.Location; 289 255 patternWindow.Opacity = (float)config.Opacity / 100; 290 256 patternWindow.PatternSize = (float)config.PatternSize / 100; 291 257 patternWindow.TransparentMouseMessage = config.TransparentMouseMessage; 292 patternWindow.Refresh(); 258 259 LoadFaceDefine(config.FaceDefPath); 293 260 294 261 patternWindow.Show(); … … 320 287 * ���j���[�N���b�N�C�x���g 321 288 */ 322 public void menuItemPatternSelect_Click(object sender, System.EventArgs e)323 {324 SelectFaceDefine(patternWindow.FaceDef.Path);325 }326 289 327 290 public void menuItemExit_Click(object sender, System.EventArgs e)
