Beispiel #1
0
        private void Btn_result_Click(object sender, EventArgs e)
        {
            if (rowDataPath == "" || rowDataPath == null)
            {
                Log("请先载入rowData再点分析!", Color.Red, true);
                return;
            }
            string new_path = Path.GetDirectoryName(rowDataPath) + "\\生成的数据.xls";
            //ExcelOperation.Analysize(new_path, chips);
            bool result = ExcelOperation.Analysize(new_path, chips);

            if (result)
            {
                //Log("分析完成,数据保存在"+new_path, Color.Green, true);
                ExDictionary dic = new ExDictionary();
                dic["msg"]      = "分析完成,数据保存在" + new_path;
                dic["color"]    = Color.Green;
                dic["nextline"] = true;
                Notification.GetInstance().PostNotification("log", dic);
                MessageBox.Show("分析完成!");
            }
            else
            {
                MessageBox.Show("分析失败", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                //Log("分析失败",Color.Red,true);
                ExDictionary dic = new ExDictionary();
                dic["msg"]      = "分析失败!";
                dic["color"]    = Color.Red;
                dic["nextline"] = true;
                Notification.GetInstance().PostNotification("log", dic);
            }
        }
Beispiel #2
0
 Chip[] ReadRowData(string path)
 {
     return(ExcelOperation.ReadRowData(path));
 }