Ejemplo n.º 1
0
 public static EntryView GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new EntryView();
     }
     return(_Instance);
 }
Ejemplo n.º 2
0
        private void ingresosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EntryView entryView = EntryView.GetInstance();

            entryView.MdiParent = this;
            entryView.Show();
            entryView.IdEmployee = Convert.ToInt32(this.IdEmployee);
        }
Ejemplo n.º 3
0
        private void dataList_DoubleClick(object sender, EventArgs e)
        {
            EntryView entryView = EntryView.GetInstance();

            string idItem = Convert.ToString(this.dataList.CurrentRow.Cells["id_articulo"].Value);
            string name   = Convert.ToString(this.dataList.CurrentRow.Cells["nombre"].Value);

            entryView.setItem(idItem, name);
            this.Hide();
        }
Ejemplo n.º 4
0
 private void EntryView_FormClosing(object sender, FormClosingEventArgs e)
 {
     _Instance = null;
 }