Пример #1
0
        public frmNovaDataPadrao(frmCalcData parent, DateTime data1, string strData1)
        {
            InitializeComponent();

            this.formPai  = parent;
            this.data1    = data1;
            this.strData1 = strData1;
        }
Пример #2
0
        public frmControleData(frmCalcData parent, string acao, DateTime data1, string strData1)
        {
            InitializeComponent();

            frmPai        = parent;
            this.data1    = data1;
            this.strData1 = strData1;

            if (acao == "add")
            {
                tipo        = 1;
                grpBox.Text = "Adicionar à data";
            }
            else if (acao == "sub")
            {
                tipo        = 2;
                grpBox.Text = "Subtrair da data";
            }

            if (tipo == 0)
            {
                this.Close();
            }
        }