Exemplo n.º 1
0
 private void editModeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     editModeToolStripMenuItem.Checked     = true;
     practiceModeToolStripMenuItem.Checked = false;
     TranslationGridView.Show();
     AddButton.Show();
     RemoveButton.Show();
     PracticeButton.Show();
 }
Exemplo n.º 2
0
 private void setActiveWordListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (SelectWordList selectWordList = new SelectWordList())
     {
         selectWordList.SelectHandler += MyListFormSelectedHandler;
         selectWordList.ShowDialog();
         selectWordList.StartPosition = FormStartPosition.CenterParent;
         TranslationGridView.Show();
         editModeToolStripMenuItem.Checked     = true;
         practiceModeToolStripMenuItem.Checked = false;
         AddButton.Show();
         RemoveButton.Show();
         PracticeButton.Show();
     }
 }
Exemplo n.º 3
0
Arquivo: Form1.cs Projeto: koonath/mwp
 private void ShowExplodeItems()
 {
     InstructionsLabel1.Show();
     InstructionsLabel1.Text = "Drag and drop PDF files to explode, into the box below:";
     //InstructionsLabel2.Show();
     //InstructionsLabel2.Text = "Full file path for exploded pages";
     FileNameBox.Show();
     PathsListBox.Show();
     //DestinationFilePathTextBox.Show();
     //DestinationFilePathTextBox.Text = destinationFilePath;
     RemoveButton.Show();
     RemoveAllButton.Show();
     GoButton.Show();
     GoButton.Text = "Kaboom!";
     HidePathsButton.Show();
     HidePathsButton.Text = "Hide Paths";
 }
Exemplo n.º 4
0
Arquivo: Form1.cs Projeto: koonath/mwp
 private void ShowMergeItems()
 {
     InstructionsLabel1.Show();
     InstructionsLabel1.Text = "Drag and drop PDF files to merge, into the box below:";
     InstructionsLabel2.Show();
     InstructionsLabel2.Text = "Full file path for merged file:";
     FileNameBox.Show();
     PathsListBox.Show();
     DestinationFilePathTextBox.Show();
     DestinationFilePathTextBox.Text = destinationFilePath;
     RemoveButton.Show();
     RemoveAllButton.Show();
     GoButton.Show();
     GoButton.Text = "Merge";
     HidePathsButton.Show();
     HidePathsButton.Text = "Hide Paths";
 }
Exemplo n.º 5
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBox1.SelectedItem == null)
            {
                TranslationGrid.Hide();
                InformationBox.Show();
                InformationBox.Text = "this is not a valid list";
                return;
            }

            FileName = listBox1.SelectedItem.ToString();
            var wordList = WordList.LoadList(FileName);

            if (wordList == null)
            {
                return;
            }
            TranslationGrid.Show();
            AddButton.Show();
            NewListButton.Show();
            RemoveButton.Show();
            SaveButton.Show();
            PracticeButton.Show();
            AddButton.Enabled    = true;
            SaveButton.Enabled   = true;
            RemoveButton.Enabled = true;
            InformationBox.Hide();
            var languageArray = wordList.Languages;
            var sortBy        = 0;

            CountLabel.Text = $"There are {wordList.Count()} words in the list";
            TranslationGrid.Rows.Clear();
            TranslationGrid.Columns.Clear();
            TranslationGrid.Refresh();
            foreach (var languages in languageArray)
            {
                TranslationGrid.Columns.Add("newColumnName", languages.ToUpper());
            }
            TranslationGrid.Rows.Clear();

            wordList.List(sortBy, x => { TranslationGrid.Rows.Add(x); });
        }
Exemplo n.º 6
0
Arquivo: Form1.cs Projeto: koonath/mwp
 private void ShowStampItems()
 {
     InstructionsLabel1.Show();
     InstructionsLabel1.Text = "Drag and drop PDF files that need stamping, into the box below:";
     InstructionsLabel2.Show();
     InstructionsLabel2.Text = "Drag and drop image/PDF into the box:";
     FileNameBox.Show();
     PathsListBox.Show();
     StampFileBox.Show();
     RemoveButton.Show();
     RemoveAllButton.Show();
     RemoveImageButton.Show();
     GoButton.Show();
     GoButton.Text = "Stamp";
     HidePathsButton.Show();
     HidePathsButton.Text = "Hide Paths";
     StampAllButton.Show();
     StampAllButton.Checked = true;
     StampLastPageButton.Show();
 }