Example #1
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     TBTitle.Clear();
     TBWriter.Clear();
     CBGenre.Text = "";
     CBDate.Text  = "";
     CBRank.Text  = "";
 }
Example #2
0
 private void CBType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (CBType.SelectedIndex == 0 || CBType.SelectedIndex == 2 || CBType.SelectedIndex == 5)
     {
         CBTitle.Enabled = false;
         TBTitle.Enabled = false;
         TBTitle.Clear();
         CBTitle.Items.Clear();
         return;
     }
     CBTitle.Enabled = true;
     CBTitle.Enabled = true;
     InitializeChapSub();
 }
Example #3
0
        // CHAP:SUB Functions
        private void InitializeChapSub()
        {
            try
            {
                CBTitle.Items.Clear();
                TBTitle.Clear();

                foreach (string shapeName in A3Environment.A3SLIDE.ShapeNames)
                {
                    CBTitle.Items.Add(shapeName);
                }

                int index = A3Environment.A3SLIDE.ShapeNames.FindIndex(s => s == "CHAP:SUB") > 0 ? A3Environment.A3SLIDE.ShapeNames.FindIndex(s => s == "CHAP:SUB") : 0;
                CBTitle.SelectedIndex = index;

                try { TBTitle.Text = A3Environment.A3SLIDE.Slide.Shapes[CBTitle.SelectedItem].TextFrame.TextRange.Text; } catch { }
            }
            catch
            {
            }
        }