internal static bool checkResource(List <Resource> Resources, R_name name, string arg = "") { bool ok = false; switch (name) { case R_name.Tekla: ok = TS.isTeklaActive(); break; case R_name.TSmatch: string TOCdir = arg; if (String.IsNullOrEmpty(TOCdir)) { Msg.F( "\n\r\n\r================================================" + "\n\rTSmatch application is not initiated properly:" + "\n\rTSmatch.xlsx not available, because TOCdir=null." + "\n\r================================================\n\r"); } ok = FileOp.isFileExist(TOCdir, Decl.F_MATCH); Resource r = Resources.Find(x => x.name == Decl.TSMATCH); ////// if (!ok) Recover(Decl.RESOURCE_FAULT_REASON.NoFile); ////// if (!checkTOCdate(TOCdir, this)) Recover(Decl.RESOURCE_FAULT_REASON.Obsolete); break; } return(ok); throw new NotImplementedException(); }
internal void checkResource(R_name name, string arg = "") { bool ok = false; switch (name) { case R_name.Tekla: ok = TS.isTeklaActive(); break; case R_name.TSmatch: throw new NotImplementedException(); break; } }
private void button1_Click(object sender, EventArgs e) { R_name.Text = ""; R_number.Clear(); R_name.Focus(); }