Exemple #1
0
        private void FadeInEffect(object sender, EventArgs e)
        {
            this.Refresh();
            FadeIn(this, 1);

            ListBox1.Focus();
        }
Exemple #2
0
        public MainWindow(ITwitterViewModel vm)
        {
            _vm         = vm;
            DataContext = _vm;

            InitializeComponent();

            ListBox1.Focus();
        }
Exemple #3
0
        private void DateDialog_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            if (Document.Editor.My.Computer.Info.OSVersion >= "6.0")
            {
                if (Document.Editor.My.Settings.Options_EnableGlass)
                {
                    AppHelper.ExtendGlassFrame(this, new Thickness(-1, -1, -1, -1));
                }
            }
            ListBox1.Items.Add(System.DateTime.Now.ToString("M/dd/yyyy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("M/dd/yy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("MM/dd/yy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("MM/dd/yyyy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("yy/MM/dd"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("yyyy-MM-dd"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("dd-MMM-yy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("dddd, MMMM dd, yyyy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("MMMM dd, yyyy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("dddd, dd MMMM, yyyy"));
            ListBox1.Items.Add(System.DateTime.Now.ToString("dd MMMM, yyyy"));

            ListBox1.SelectedIndex = 0;
            ListBox1.Focus();
        }