Exemple #1
0
        public CellEditForm(CellsListForm instance)
        {
            this.instance = instance;

            InitializeComponent();

            query = new QueryStore();

            this.Text = Properties.Resources.Cell;

            label1.Text = Properties.Resources.Storage;
            label2.Text = Properties.Resources.Description;

            List <ObjectComboBox> lObj = new List <ObjectComboBox>();

            foreach (var item in query.querySelectStorehouses())
            {
                lObj.Add(new ObjectComboBox(item.Id, item.Name));
            }

            comboBoxStorages.DataSource    = lObj;
            comboBoxStorages.ValueMember   = "Id";
            comboBoxStorages.DisplayMember = "Name";


            buttonCancel.Text = Properties.Resources.Cancel;
            buttonOK.Text     = Properties.Resources.OK;
        }
Exemple #2
0
 public CellEditForm(CellsListForm instance, int Id)
     : this(instance)
 {
     this.Id = Id;
     addDataForUpdate();
 }
Exemple #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            CellsListForm f = new CellsListForm();

            f.ShowDialog();
        }