Пример #1
0
        private void bt_Land_CheckedChanged(object sender, EventArgs e)
        {
            if (Bt_Land.Checked)
            {
                EStateSettings dlgSettings = new EStateSettings(G.currentSection, G.currentBasePrice);

                if (dlgSettings.ShowDialog(this) == DialogResult.OK)
                {
                    G.currentSection = dlgSettings.section;
                    G.currentBasePrice = dlgSettings.basePrice;
                }

                G.operation = 3;
            }
        }
Пример #2
0
        private void EStateControl_DoubleClick(object sender, EventArgs e)
        {
            if (data == null)
                return;

            EStateSettings dlgSettings = new EStateSettings(data.section, data.basePrice);

            if (dlgSettings.ShowDialog(this) == DialogResult.OK)
            {
                data.section = dlgSettings.section;
                data.basePrice = dlgSettings.basePrice;
            }

            G.currentGPO = this;
            G.bRepaintMainPanel = true;
        }