private void CreateBtn_Click_Async(object sender, EventArgs e) { Status.CurrentDetailsSetDirectory = Status.CurrentDirectory + "/FEMAP/DETAILS SET " + db.DETAILS.Count(); Directory.CreateDirectory(Status.CurrentDetailsSetDirectory); Directory.CreateDirectory(Status.CurrentDetailsSetDirectory + "/ROD"); CreateBtn.Enabled = false; ui.Create_Async(groupBox1, "Шатун"); }
private async void CreateBtn_Click_Async(object sender, EventArgs e) { Status.CurrentDetailsSetDirectory = Status.CurrentDirectory + "/FEMAP/DETAILS SET " + db.DETAILS.Count(); Directory.CreateDirectory(Status.CurrentDetailsSetDirectory); Directory.CreateDirectory(Status.CurrentDetailsSetDirectory + "/CRANKSHAFT"); CreateBtn.Enabled = false; ui.Create_Async(groupBox1, "Коленчатый вал"); }
private void CreateBtn_Click_Async(object sender, EventArgs e) { Status.CurrentDetailsSetDirectory = Status.CurrentDirectory + "/FEMAP/DETAILS SET " + db.DETAILS.CountAsync().Result; Directory.CreateDirectory(Status.CurrentDetailsSetDirectory); Directory.CreateDirectory(Status.CurrentDetailsSetDirectory + "/PISTON"); CreateBtn.Enabled = false; ui.Create_Async(groupBox1, "Поршень"); }