private void buttonNew_Click(object sender, EventArgs e)
 {
     if (_temp.total_data(username) > 0)
     {
         var confirmResult = MessageBox.Show("There are Datas unsaved, Retrieve Data?",
                                             "Data Confirmation",
                                             MessageBoxButtons.YesNo);
         if (confirmResult == DialogResult.No)
         {
             _temp.delete_temp(username);
         }
     }
     orderdetail = new OrderRecordView("new", username, 0);
     orderdetail.ShowDialog();
     content_Change();
 }
 private void buttonBack_Click(object sender, EventArgs e)
 {
     if (_temp.total_data(nama_user) > 0)
     {
         var confirmResult = MessageBox.Show($"You have an unsaved changes, Are you sure?",
                                             "Saving Confirmation",
                                             MessageBoxButtons.YesNo);
         if (confirmResult == DialogResult.Yes)
         {
             if (stat == "edit")
             {
                 _temp.delete_temp(nama_user);
             }
             this.Close();
         }
     }
     this.Close();
 }