public FormAdd(InfoCustomer loadForm, List <InfoCustomer> customers, FormRemin formRemin) { InitializeComponent(); _textBtn = _textBtn_Close; #if DEBUG _pathJson = Directory.GetParent(Environment.CurrentDirectory).Parent.FullName + "\\Data\\"; #else _pathJson = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\Data\\"; #endif txtId.Text = loadForm.id; txtName.Text = loadForm.name; txtPhone.Text = loadForm.phone; dtpTime.Value = loadForm.date; txtFace.Text = loadForm.link; ckOrdered.Checked = loadForm.ordered; btnAdd.Visible = false; btnAddAndClose.Text = _textBtn; _allCustomer = customers; _formRemin = formRemin; }