예제 #1
0
 //--------------------------------------------------------------------------------------------------------------------------------------------------------------
 private void Refresh_Data_Nhu_Ban_Dau(object sender, RoutedEventArgs e)
 {
     try
     {
         search_material_project.Text = "";
         F_GetInformation.get_information(doc, number);
         Lay_Share_Parameter_Da_Ton_Tai();
         Lay_Du_Lieu();
         block.Text = string.IsNullOrEmpty(doc.ProjectInformation.BuildingName) ? "xx" : doc.ProjectInformation.BuildingName;
     }
     catch (Exception)
     {
     }
 }
예제 #2
0
 //----------------------------------------------------------
 public void Function_Dau_Vao()
 {
     try
     {
         List <string> file_name = doc.Title.Split('_').ToList();
         if (file_name.Count() > 3)
         {
             Class      = file_name[3];
             block.Text = string.IsNullOrEmpty(doc.ProjectInformation.BuildingName) ? "xx" : doc.ProjectInformation.BuildingName;
             F_GetInformation.get_information(doc, number);
             Lay_Share_Parameter_Da_Ton_Tai();
             Lay_Du_Lieu();
         }
         else
         {
             MessageBox.Show("Format file name is incorrect. Please check and try again", "ERROR", MessageBoxButton.OK, MessageBoxImage.Error);
             this.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }