Ejemplo n.º 1
0
        private void dateCreatedTime_Click(object sender, RoutedEventArgs e)
        {
            ChangeNoteTimeDialog dlg = new ChangeNoteTimeDialog();

            dlg.Owner        = Window.GetWindow(this);
            dlg.SelectedTime = SelectedPage.Created.ToLocalTime().TimeOfDay;

            if (dlg.ShowDialog() == true)
            {
                SelectedPage.Created = SelectedPage.Created.ToLocalTime().Date.Add(dlg.SelectedTime).ToUniversalTime();
            }
        }
Ejemplo n.º 2
0
        private void dateCreatedTime_Click(object sender, RoutedEventArgs e)
        {
            ChangeNoteTimeDialog dlg = new ChangeNoteTimeDialog();

            dlg.Owner        = this;
            dlg.Topmost      = true;
            dlg.SelectedTime = SelectedPage.Created.ToLocalTime().TimeOfDay;
            dlg.Loaded      += dlg_Loaded;

            if (dlg.ShowDialog() == true)
            {
                SelectedPage.Created = SelectedPage.Created.ToLocalTime().Date.Add(dlg.SelectedTime).ToUniversalTime();
            }
        }