Ejemplo n.º 1
0
        private void DataGridViewTours_CellDoubleClick
            (object sender, DataGridViewCellEventArgs e)
        {
            string hotel
                = this.dataGridViewTours.SelectedCells[1].Value.ToString();
            string desc
                = this.dataGridViewTours.SelectedCells[6].Value.ToString();


            DescForm descForm = new DescForm();

            descForm.Text       += ": " + hotel;
            descForm.Description = desc;
            descForm.Show();
        }
        void ReleaseDesignerOutlets()
        {
            if (ActionsColumn != null)
            {
                ActionsColumn.Dispose();
                ActionsColumn = null;
            }

            if (AmountColumn != null)
            {
                AmountColumn.Dispose();
                AmountColumn = null;
            }

            if (AmountForm != null)
            {
                AmountForm.Dispose();
                AmountForm = null;
            }

            if (BalanceTable != null)
            {
                BalanceTable.Dispose();
                BalanceTable = null;
            }

            if (DateColumn != null)
            {
                DateColumn.Dispose();
                DateColumn = null;
            }

            if (DateForm != null)
            {
                DateForm.Dispose();
                DateForm = null;
            }

            if (DescColumn != null)
            {
                DescColumn.Dispose();
                DescColumn = null;
            }

            if (DescForm != null)
            {
                DescForm.Dispose();
                DescForm = null;
            }

            if (InitialLabel != null)
            {
                InitialLabel.Dispose();
                InitialLabel = null;
            }

            if (TotalLabel != null)
            {
                TotalLabel.Dispose();
                TotalLabel = null;
            }
        }