public void DataLoading() { StatusLabelDataLoading.ForeColor = Color.Red; StatusLabelDataLoading.Text = "Loading Excel Date..."; DataLoadingByExcel.CreateDataLoading(Properties.Settings.Default.pathPHA + @"scripts\input\"); StatusLabelDataLoading.ForeColor = Color.Green; StatusLabelDataLoading.Text = "Data Loaded Successfully - " + DateTime.Now.ToString();; }
public void DataLoading() { try { StatusLabelDataLoading.ForeColor = Color.Red; StatusLabelDataLoading.Text = "Loading Excel Date..."; DataLoadingByExcel.CreateDataLoading(Properties.Settings.Default.pathPHA + @"scripts\input\"); StatusLabelDataLoading.ForeColor = Color.Green; StatusLabelDataLoading.Text = "Data Loaded Successfully - " + DateTime.Now.ToString(); } catch (Exception ex) { Console.Write(ex.Message); } }