public RegisterPart() { try { db = new GanjaBreadCompanyEntity(); } catch (Exception ex) { MessageBox.Show("Please, check again after some minutes!! "); File.AppendAllText(pathTxt, "\n" + ex + ":" + DateTime.Now); } InitializeComponent(); }
public CreateSubsudiary(Users user) { try { db = new GanjaBreadCompanyEntity(); activeUser = user; } catch (Exception ex) { MessageBox.Show("Please, check again after some minutes!! "); File.AppendAllText(pathTxt, "\n" + ex + ":" + DateTime.Now); } InitializeComponent(); }
public MarketForm(Users User) { try { activeUser = User; isActive = true; db = new GanjaBreadCompanyEntity(); } catch (Exception ex) { MessageBox.Show("Error message :" + ex); throw; } InitializeComponent(); }
public LoginForm() { try { db = new GanjaBreadCompanyEntity(); Directory.CreateDirectory(folder); Directory.CreateDirectory(folderForEroor); } catch (Exception ex) { MessageBox.Show("Please, check again after some minutes!! "); File.AppendAllText(pathTxt, "\n" + ex + ":" + DateTime.Now); } InitializeComponent(); }
public printForm(Users user, int monthId, int marketId) { try { marketIdd = marketId; monthIdd = monthId; activeUser = user; db = new GanjaBreadCompanyEntity(); } catch (Exception ex) { MessageBox.Show("Please, check again after some minutes!! "); File.AppendAllText(pathTxt, "\n" + ex + ":" + DateTime.Now); } InitializeComponent(); }