Ejemplo n.º 1
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Apakah data ini mau disimpan...?? ", " ", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         simpan();
         frmFixRuteSalesman frmCaller = (frmFixRuteSalesman)this.Caller;
         frmCaller.RefreshRencana();
         this.Close();
     }
 }
        private void cbSave_Click(object sender, EventArgs e)
        {
            bool cek = validasi_save();

            if (cek == true)
            {
                if (simpan() == true)
                {
                    frmFixRuteSalesman frmCaller = (frmFixRuteSalesman)this.Caller;
                    frmCaller.RefreshRencana();
                    frmCaller.FindHeader("_RowID", _RowID.ToString());
                    this.Close();
                }
            }
            else
            {
                return;
            }
        }