Esempio n. 1
0
        //LOADING
        private void Form1_Load(object sender, EventArgs e)
        {
            bool hasSettings = DefaultSettings.readDefaultDirectorys(out _csvFolderPath, out _pdfFolderPath, out _dwgFolderPath, out _incastClass);

            txt_csv_dir.Text       = _csvFolderPath;
            txt_pdf_dir.Text       = _pdfFolderPath;
            txt_dwg_dir.Text       = _dwgFolderPath;
            txt_incastClass.Text   = _incastClass;
            txt_export_target.Text = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

            cb_drawing_type.DataSource        = Enum.GetValues(typeof(DrawingFinder));
            cb_filter_results_type.DataSource = Enum.GetValues(typeof(StatusFilter));
            cb_exportElementType.DataSource   = Enum.GetValues(typeof(ExportElementType));
            cb_exportType.DataSource          = Enum.GetValues(typeof(ExportType));

            lbl_csv_file_main.Text        = "CSV: None";
            lbl_save_defaults_status.Text = "[" + DateTime.Now.ToString("h:mm:ss") + "]";

            report_labels_update();
            if (hasSettings)
            {
                checkReportdir();
                checkDrawingDir();
            }
        }
Esempio n. 2
0
        private void btn_save_defaults_Click(object sender, EventArgs e)
        {
            string save_status = DefaultSettings.writeDefaultDirectorys(_csvFolderPath, _pdfFolderPath, _dwgFolderPath, _incastClass);

            lbl_save_defaults_status.Text = "[" + DateTime.Now.ToString("h:mm:ss") + "] " + save_status;
        }