Ejemplo n.º 1
0
 void ucMifConfigEdit_Load(object sender, EventArgs e)
 {
     _mifConfig    = new MifConfig();
     textBox1.Text = _mifConfig.GetConfigValue("Workspace");
     textBox2.Text = _mifConfig.GetConfigValue("TEMP");
     textBox3.Text = _mifConfig.GetConfigValue("Report");
 }
Ejemplo n.º 2
0
        private static void LoadMifEnvironment()
        {
            MifConfig config = new MifConfig();

            _workSpaceDir = config.GetConfigValue("Workspace");
            _cacheDir     = config.GetConfigValue("TEMP");
            _reportDir    = config.GetConfigValue("Report");
        }
Ejemplo n.º 3
0
        private bool IsChanged()
        {
            string wk     = _mifConfig.GetConfigValue("Workspace");
            string chache = _mifConfig.GetConfigValue("TEMP");
            string report = _mifConfig.GetConfigValue("Report");

            return(Path.GetFullPath(wk) != Path.GetFullPath(textBox1.Text) || Path.GetFullPath(chache) != Path.GetFullPath(textBox2.Text) ||
                   Path.GetFullPath(report) != Path.GetFullPath(textBox3.Text));
        }