Example #1
0
        public MainWindow()
        {
            InitializeComponent();

            if (!Directory.Exists(Properties.Settings.Default.EntryPath) || !Directory.Exists(Properties.Settings.Default.PhotoPath))
            {
                MessageBox.Show("올바른 DropBox 경로를 찾을 수 없습니다.");

                var option = new OptionWindow();
                if (option.ShowDialog() != true)
                {
                    MessageBox.Show("DayOne과 연동된 DropBox 경로를 설정해야만 프로그램을 시작 할 수 있습니다.");
                    this.Close();
                }
            }

            if (Properties.Settings.Default.UsePassword)
            {
                _passwordTab.IsSelected = true;
            }

            canlendarViewer.DayItemSelected += CanlendarViewerDayItemSelected;

            // Temp
            LoadDateContentsDateTime();
            canlendarViewer.InitializeCalendar(contentsList);
            contentsItemViewer.InitializeItemViewer(contentsList);
            contentsItemViewer.ItemEditRequest += (o, e) => ShowEditWindowWithContents(e.UUID);
            contentsViewer.InitializeViewer(contentsList);

            contentsEditor.EditDone += (o, e) => {
                LoadDateContentsDateTime(); // Referesh
                contentsItemViewer.InitializeItemViewer(contentsList);
                contentsViewer.InitializeViewer(contentsList);
                ShowListPage();
            };
        }
Example #2
0
        private void OpenOptionButtonClick(object sender, RoutedEventArgs e)
        {
            var option = new OptionWindow();

            option.ShowDialog();
        }