Пример #1
0
        public TaskWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_LoadedHasRun = false;
            this.m_Writer       = writer;

            this.m_TaskUI = new TaskUI(this.m_Writer);

            InitializeComponent();

            this.DataContext = this.m_TaskUI;
            this.DatePickerDailyLog.SelectedDate = DateTime.Today;

            this.Loaded   += new RoutedEventHandler(LoginWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(LoginWorkspace_Unloaded);
        }
Пример #2
0
        public TaskWorkspace(MainWindowCommandButtonHandler mainWindowCommandButtonHandler, TabItem writer)
        {
            this.m_MainWindowCommandButtonHandler = mainWindowCommandButtonHandler;
            this.m_LoadedHasRun = false;
            this.m_Writer = writer;

            this.m_TaskUI = new TaskUI(this.m_Writer);

            InitializeComponent();

            this.DataContext = this.m_TaskUI;
            this.DatePickerDailyLog.SelectedDate = DateTime.Today;

            this.Loaded += new RoutedEventHandler(LoginWorkspace_Loaded);
            this.Unloaded += new RoutedEventHandler(LoginWorkspace_Unloaded);
        }