private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (tbJudulCetakan.Text.Trim() == "")
            {
                main.SetMessage("Judul Cetakan harus diisi..!");
                tbJudulCetakan.Focus();
            }
            else if (timerID == 0)
            {
                main.SetMessage("Select \"Timer ID\" dulu bos..");
            }
            else
            {
                if (status == "update")
                {
                    if (selected != null)
                    {
                        parent.deleteList(selected);
                    }
                }

                parent.addNewCart("ST", tbJenisCetakan.Text, tbJudulCetakan.Text, "", gridTimerDetail.Rows.Count, " times", 0, employeeID, employeeName, employeeName, "No. Timer : " + timerID, "", "", 0, "", "", Int32.Parse(tbHargaMaterial.Text.Replace(",", "").Replace(".", "").Trim()), Int32.Parse(tbHargaMaterial.Text.Replace(",", "").Replace(".", "").Trim()), 0, new DateTime(1900, 01, 01, 0, 0, 0), null);
                this.Close();
            }
        }
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (tbJenisCetakan.Text.Trim() == "")
            {
                main.SetMessage("Isi Jenis Cetakan!");
            }
            else if (tbJudulCetakan.Text.Trim() == "")
            {
                main.SetMessage("Isi Judul Cetakan!");
            }
            else if (nudJumlahCetak.Value == 0)
            {
                main.SetMessage("Isi Jumlah Cetakan!");
            }
            else if (tbMaterial.Text.Trim() == "")
            {
                main.SetMessage("Isi Material!");
            }
            else if (tbUkuranGambar.Text.Trim() == "")
            {
                main.SetMessage("Isi Ukuran Gambar!");
            }
            else
            {
                if (status == "update")
                {
                    if (selected != null)
                    {
                        createSales.deleteList(selected);
                    }
                }

                //add data
                GetFinishing();

                createSales.addNewCart(tbTipeJob.Text, tbViewJenisCetakan.Text, tbViewJudulCetakan.Text, "",
                                       nudJumlahCetak.Value, cbJumlahCetak.Text, nudCounter.Value, nudInschiet.Value, cbInschiet.Text,
                                       tbMaterial.Text, tbUkuranKertas.Text, tbUkuranGambar.Text, cbSisiCetak.Text + "/"
                                       + cbSisiCetak2.Text, nudJumlahPlat.Value, tbViewKeterangan.Text, tbViewNote.Text,
                                       ckbTitipan.Checked == true ? nudHargaAsli.Value : nudHargaTotal.Value,
                                       nudViewMaterial.Value, nudViewOngkosCetak.Value, ckbDeadline.Checked == true ?
                                       dtpDeadline.Value : DateTime.MinValue, finishing);

                this.Dispose();
            }
        }
 private void btnDelete_Click(object sender, EventArgs e)
 {
     parent.deleteList(this);
 }