void ReleaseDesignerOutlets()
        {
            if (DatePicker != null)
            {
                DatePicker.Dispose();
                DatePicker = null;
            }

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

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

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

            if (TextField != null)
            {
                TextField.Dispose();
                TextField = null;
            }
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

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

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Пример #3
0
        void ReleaseDesignerOutlets()
        {
            if (btnCompleted != null)
            {
                btnCompleted.Dispose();
                btnCompleted = null;
            }

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

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

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

            if (txtviewDetails != null)
            {
                txtviewDetails.Dispose();
                txtviewDetails = null;
            }
        }
Пример #4
0
        public void DatePickerApplyStyle()
        {
            tlog.Debug(tag, $"DatePickerApplyStyle START");

            var testingTarget = new DatePicker()
            {
                Size = new Size(600, 339),
                Date = DateTime.Now,
            };

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <DatePicker>(testingTarget, "Should return DatePicker instance.");

            try
            {
                ViewStyle style = new ViewStyle()
                {
                    Size = new Size(30, 200)
                };
                testingTarget.ApplyStyle(style);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"DatePickerApplyStyle END (OK)");
        }
Пример #5
0
        public void DatePickerConstructorWithDatePickerStyle()
        {
            tlog.Debug(tag, $"DatePickerConstructorWithDatePickerStyle START");

            DatePickerStyle dpStyle = new DatePickerStyle()
            {
                Pickers = new PickerStyle()
                {
                    StartScrollOffset = new Size(10, 10),
                    Divider           = new ViewStyle()
                    {
                        Position = new Position(30, 40),
                    }
                },
                CellPadding = new Size2D(20, 20),
            };

            var testingTarget = new DatePicker(dpStyle);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <DatePicker>(testingTarget, "Should return DatePicker instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"DatePickerConstructorWithDatePickerStyle END (OK)");
        }
Пример #6
0
        private void OnClick(object o, EventArgs e)
        {
            if (birthDateListItem.Selected) {
                DatePicker datePicker = new DatePicker(this);
                datePicker.Title.Text = "Enter your birthdate";
                datePicker.Value = calculator.BirthDate;
                if (datePicker.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    calculator.BirthDate = datePicker.Value;

                datePicker.Dispose();
            }
        }
Пример #7
0
        void birthdayClick(object sender, System.ComponentModel.CancelEventArgs e)
        {
            e.Cancel = true;
            DatePicker datePicker = new DatePicker(owner);
            datePicker.Title.Text = "Enter your birthdate";
            datePicker.Value = calculator.BirthDate;
            if (datePicker.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                calculator.BirthDate = datePicker.Value;

            datePicker.Dispose();
            this.Hide();
        }
        void ReleaseDesignerOutlets()
        {
            if (CalendarSwitch != null)
            {
                CalendarSwitch.Dispose();
                CalendarSwitch = null;
            }

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

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

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

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

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

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

            if (TaskShortLable != null)
            {
                TaskShortLable.Dispose();
                TaskShortLable = null;
            }
        }
Пример #9
0
        void setdayClick(object sender, System.ComponentModel.CancelEventArgs e)
        {
            e.Cancel = true;
            DatePicker datePicker = new DatePicker(owner);

            datePicker.Title.Text = "Enter date";
            datePicker.Value      = calculator.CurrentDate;
            if (datePicker.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                calculator.CurrentDate = datePicker.Value;
            }

            datePicker.Dispose();
            this.Hide();
        }
Пример #10
0
        private void OnClick(object o, EventArgs e)
        {
            if (birthDateListItem.Selected)
            {
                DatePicker datePicker = new DatePicker(this);
                datePicker.Title.Text = "Enter your birthdate";
                datePicker.Value      = calculator.BirthDate;
                if (datePicker.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    calculator.BirthDate = datePicker.Value;
                }

                datePicker.Dispose();
            }
        }
Пример #11
0
        public void DatePickerDate()
        {
            tlog.Debug(tag, $"DatePickerDate START");

            var testingTarget = new DatePicker();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <DatePicker>(testingTarget, "Should return DatePicker instance.");

            testingTarget.Date = DateTime.Now;
            tlog.Debug(tag, "Date : " + testingTarget.Date);

            testingTarget.Dispose();
            tlog.Debug(tag, $"DatePickerDate END (OK)");
        }
Пример #12
0
        public void DatePickerConstructor()
        {
            tlog.Debug(tag, $"DatePickerConstructor START");

            var testingTarget = new DatePicker()
            {
                Size = new Size(600, 339),
                Date = DateTime.Now,
            };

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <DatePicker>(testingTarget, "Should return DatePicker instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"DatePickerConstructor END (OK)");
        }
Пример #13
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            tabView.SelectedIndex = 0;
            standardGraphView.Show();
            tabView.Show();
            if (calculator.BirthDate == DateTime.MinValue)
            {
                DatePicker datePicker = new DatePicker(tabView);
                datePicker.Title.Text = "Enter your birthdate";
                datePicker.Value = calculator.BirthDate;
                if (datePicker.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    calculator.BirthDate = datePicker.Value;

                datePicker.Dispose();
            }
        }
Пример #14
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            tabView.SelectedIndex = 0;
            standardGraphView.Show();
            tabView.Show();
            if (calculator.BirthDate == DateTime.MinValue)
            {
                DatePicker datePicker = new DatePicker(tabView);
                datePicker.Title.Text = "Enter your birthdate";
                datePicker.Value      = calculator.BirthDate;
                if (datePicker.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    calculator.BirthDate = datePicker.Value;
                }

                datePicker.Dispose();
            }
        }
Пример #15
0
        void ReleaseDesignerOutlets()
        {
            if (CancelBtn != null)
            {
                CancelBtn.Dispose();
                CancelBtn = null;
            }

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

            if (DoneBtn != null)
            {
                DoneBtn.Dispose();
                DoneBtn = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ContainerView != null)
            {
                ContainerView.Dispose();
                ContainerView = null;
            }

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Пример #17
0
        private void DGVproduct_CellClick_1(object sender, DataGridViewCellEventArgs e)
        {
            DatePicker datepicker = new DatePicker();


            if (e.ColumnIndex == DGVproduct.Columns["ARRIVAL_DATE"].Index)
            {
                if (DGVproduct.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString() == "")
                {
                    datepicker.date = DateTime.Today.Date;
                }
                else
                {
                    datepicker.date = ((DataTable)DGVproduct.DataSource).Rows[e.RowIndex].Field <DateTime>("ARRIVAL_DATE");
                }

                datepicker.ShowDialog();
                DGVproduct.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = datepicker.date;
                datepicker.Dispose();
            }
        }
Пример #18
0
        private void grdProduct_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            //sender = 누가 보냄?
            // e = 셀의 정보
            //조건에 맞으면 show dialog

            //if index of column selected == arriaval date column index.
            //DO not hardcode to 5
            if (e.ColumnIndex == grdProduct.Columns["ARRIVAL_DATE"].Index)
            {
                DatePicker dp = new DatePicker();
                DateTime   date;

                //값이 들어있을떄
                if (!grdProduct.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().Equals(string.Empty))
                {
                    date = ((DataTable)grdProduct.DataSource).Rows[e.RowIndex].Field <DateTime>("ARRIVAL_DATE");
                }
                else
                {
                    //아무값도 안들어있을떄
                    date = DateTime.Today.Date;
                }

                dp.selectedDate = date;
                //달력을 중간에 띄우시오(디폴트는 왼쪽위)
                dp.StartPosition = FormStartPosition.CenterParent;
                //popup > triger load event..
                dp.ShowDialog();

                date = dp.selectedDate;
                grdProduct.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = date.Date;
                //close only the UI
                // dp.Close();

                dp.Dispose(); // <-- delete the object completely.
            }
        }
Пример #19
0
        void ReleaseDesignerOutlets()
        {
            if (btnCancel != null)
            {
                btnCancel.Dispose();
                btnCancel = null;
            }

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

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

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

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

            if (DatePicker != null)
            {
                DatePicker.Dispose();
                DatePicker = null;
            }
        }
Пример #20
0
 public void Deactivate()
 {
     window.Remove(datePicker);
     datePicker.Dispose();
     datePicker = null;
 }
        void ReleaseDesignerOutlets()
        {
            if (ActualTextField != null)
            {
                ActualTextField.Dispose();
                ActualTextField = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

            if (TypePopUpButton != null)
            {
                TypePopUpButton.Dispose();
                TypePopUpButton = null;
            }
        }
Пример #22
0
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (endIcon != null)
            {
                endIcon.Dispose();
                endIcon = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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