Exemple #1
0
        /// <summary>
        /// Initializes the Options.
        /// </summary>
        public void InitializeOpts()
        {
            UserOptionsControl uc = (UserOptionsControl)DisplayBox.FindChild <System.Windows.Controls.UserControl>(ViewModes.Options.ToString());

            if (uc != null)
            {
                uc.btnToggle.Checked += (sender, args) =>
                {
                    uc.btnToggle.Content = "Lock";
                    IsWindowDraggable    = true;
                };
                uc.btnToggle.Unchecked += (sender, args) =>
                {
                    uc.btnToggle.Content = "Unlock";
                    IsWindowDraggable    = false;
                };
                uc.btnDone.Click += (sender, args) =>
                {
                    uc.btnToggle.IsChecked = false;
                    uc.Visibility          = Visibility.Hidden;
                    Visibility             = Visibility.Collapsed;
                };
                uc.lblVersionValue.Content = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }