Ejemplo n.º 1
0
        private void loadData()
        {
            SsDTPList ssDTPs = SsDTPList.getInstance();

            _dgvSsDTP.DataSource         = ssDTPs.ToDataTable();
            _dgvSsDTP.Columns[0].Visible = false;
        }
Ejemplo n.º 2
0
        private void btnDel_Click(object sender, EventArgs e)
        {
            Mark mark = GetMark();

            SsDTPList.getInstance().Delete(mark);

            loadData();
        }
Ejemplo n.º 3
0
        private void _dgvSsDTP_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            Mark mark = GetMark();

            SsDTP ssDTP = SsDTPList.getInstance().getItem(mark);

            SsDTP_AddEdit aessDTP = new SsDTP_AddEdit(ssDTP);

            if (aessDTP.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadData();
            }
        }
Ejemplo n.º 4
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            SsDTPList ssDTPs = SsDTPList.getInstance();
            SsDTP     ssDTP  = new SsDTP();

            SsDTP_AddEdit aessDTP = new SsDTP_AddEdit(ssDTP);

            if (aessDTP.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ssDTPs.Add(ssDTP);
                loadData();
            }
        }