Exemple #1
0
        private void cb_fileType_UnChecked(object sender, RoutedEventArgs e)
        {
            CheckBox c = sender as CheckBox;

            switch (c.Name)
            {
            case "cb_excel": CCommon.SetValue(CCommon.key_fileExcel, "0"); break;

            case "cb_txt": CCommon.SetValue(CCommon.key_fileTxt, "0"); break;

            case "cb_code": CCommon.SetValue(CCommon.key_fileCode, "0"); break;

            default:
                break;
            }
        }
Exemple #2
0
        private void bt_table_setting_Click(object sender, RoutedEventArgs e)
        {
            string lastSelect = CCommon.GetValue(CCommon.key_tableP);

            System.Windows.Forms.FolderBrowserDialog folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
            if (Directory.Exists(lastSelect))
            {
                lastSelect = System.IO.Path.GetFullPath(lastSelect);
                folderBrowserDialog.SelectedPath = lastSelect;
            }
            System.Windows.Forms.DialogResult result = folderBrowserDialog.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                string path     = folderBrowserDialog.SelectedPath;
                string relative = ChangeToRelativePath(path);
                CCommon.SetValue(CCommon.key_tableP, relative);
                tb_table_path.Text = relative;
            }
        }