public NoteDialog(GameStats game)
 {
     InitializeComponent();
     _game = game;
     CheckBoxEnterToSave.IsChecked = Config.Instance.EnterToSaveNote;
     Show();
     Activate();
     TextBoxNote.Focus();
     _initialized = true;
 }
예제 #2
0
        private void BtnDeck_Click(object sender, RoutedEventArgs e)
        {
            if (DeckListContainer.Visibility == Visible)
            {
                DeckPanelVisibility(Collapsed, 3, true);
            }
            else
            {
                DeckPanelVisibility(Visible, 2, false);
            }

            TextBoxNote.Focus();
        }
예제 #3
0
        public NoteDialog(GameStats game, List <Image> screenshots)
        {
            InitializeComponent();
            _game = game;
            CheckBoxEnterToSave.IsChecked = Config.Instance.EnterToSaveNote;
            Show();
            Activate();
            TextBoxNote.Focus();

            ListBox_Images.DataContext = screenshots;

            _initialized = true;
        }
예제 #4
0
 private void TextBoxMean_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
     {
         TextBoxMean.Text          += Environment.NewLine;
         TextBoxMean.SelectionStart = TextBoxMean.Text.Length;
         TextBoxMean.ScrollToEnd();
     }
     else if (e.Key == Key.Enter)
     {
         TextBoxNote.Focus();
     }
 }
예제 #5
0
 public NoteDialog(GameStats game)
 {
     InitializeComponent();
     _game = game;
     CheckBoxEnterToSave.IsChecked = Config.Instance.EnterToSaveNote;
     TextBoxNote.Text     = game.Note;
     DeckList.ItemsSource = game.OpponentCards
                            .Select(x => new NoteCard(x))
                            .OrderBy(x => x.Cost);
     Show();
     Activate();
     TextBoxNote.Focus();
     _initialized = true;
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataRow dr = new DataManager().GetAssignment(Convert.ToInt32(Request.QueryString["id"]));

            TextBoxStart.Text   = ((DateTime)dr["AssignmentStart"]).ToString();
            TextBoxEnd.Text     = ((DateTime)dr["AssignmentEnd"]).ToString();
            TextBoxUpdated.Text = ((DateTime)dr["AssignmentPriority"]).ToString();
            TextBoxNote.Text    = Convert.ToString(dr["AssignmentNote"]);
            DropDownListLocation.SelectedValue = Convert.ToString(dr["LocationId"]);

            DropDownListLocation.DataSource = new DataManager().GetLocationsChildren();

            TextBoxNote.Focus();

            DataBind();
        }
    }
예제 #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            TextBoxStart.Text = Convert.ToDateTime(Request.QueryString["start"]).ToString();
            TextBoxEnd.Text   = Convert.ToDateTime(Request.QueryString["end"]).ToString();

            TextBoxNote.Focus();

            DropDownListLocation.DataSource = new DataManager().GetLocationsChildren();

            if (!String.IsNullOrEmpty(Request.QueryString["table"]))
            {
                DropDownListLocation.SelectedValue = Request.QueryString["table"];
            }

            DataBind();
        }
    }