Exemplo n.º 1
0
        private void butCompile_Click(object sender, EventArgs e)
        {
            string itd = Different.GetInfoTaskDir();
            var    t   = new TablikCompiler {
                ShowIndicator = true
            };

            t.SetHistoryFile(itd + @"Constructor\TablikHistory\TablikHistory.accdb");
            t.SetCompiledDir(itd + @"Compiled");
            //t.LoadProject(itd + @"ProjectsReal\Тутаев\TutElectro.accdb");
            //t.LoadProject(itd + @"ProjectsReal\Сургут2-3\Electro3.accdb");
            //t.LoadProject(itd + @"ProjectsReal\Курган\Ktec2_Tep.accdb");
            //t.LoadProject(itd + @"Projects\PrSignals.accdb");
            //t.LoadProject(itd + @"Analyzer\ArhAnalyzerProject.accdb");
            t.LoadProject(itd + @"Projects\ClassTest.accdb");
            //t.LoadProject(itd + @"ProjectsReal\СУГРЭС-11\Sugres11_PN.accdb");
            //t.LoadProject(itd + @"Projects\ApdControl.accdb");
            //MessageBox.Show(t.ProjectFile + " " + t.ProjectCode + " " + t.ProjectName);
            t.LoadSignals();
            string res = t.CompileProject();

            if (!res.IsEmpty())
            {
                MessageBox.Show(res);
            }
            t.Close();
        }
Exemplo n.º 2
0
        private void ButCheckSignals_Click(object sender, EventArgs e)
        {
            string itd = Different.GetInfoTaskDir();
            var    t   = new TablikCompiler {
                ShowIndicator = true
            };

            t.SetHistoryFile(itd + @"Constructor\TablikHistory\TablikHistory.accdb");
            t.SetCompiledDir(itd + @"Compiled");
            //t.LoadProject(itd + @"ProjectsReal\Тутаев\TutElectro.accdb");
            //t.LoadProject(itd + @"Projects\CalcTest.accdb");
            //t.LoadProject(itd + @"ProjectsReal\Сургут2-3\Electro3.accdb");
            t.LoadProject(itd + @"ProjectsTest\Super2.accdb");
            //t.LoadProject(itd + @"Projects\P1.accdb");
            MessageBox.Show(t.CheckSignals());
            t.Close();
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            const string appDir      = @"C:\InfoTask\Debug\Constructor";
            const string infoTaskDir = @"C:\InfoTask\Debug";
            string       pFile       = this.tbProjectFile.Text;

            //TablikInit
            TablikCompiler compiller = new TablikCompiler();
            string         stParam   = appDir + @"\TablikHistory\TablikHistory.accdb";
            string         errMess   = compiller.SetHistoryFile(stParam);

            stParam = infoTaskDir + @"\Compiled";
            errMess = compiller.SetCompiledDir(stParam);

            compiller.LoadProject(pFile);
            compiller.LoadSignals();
            compiller.CompileProject();
            compiller.Close();
        }
Exemplo n.º 4
0
        private void butTestCompile_Click(object sender, EventArgs e)
        {
            TablikCompiler tc = new TablikCompiler();
            var            s  = tc.LoadProject(this.tbProjectFile.Text);

            if (string.IsNullOrEmpty(s))
            {
                s = "OK";
            }
            MessageBox.Show(s);

            s = tc.LoadSignals();
            if (string.IsNullOrEmpty(s))
            {
                s = "OK";
            }
            MessageBox.Show(s);

            tc.Close();
        }