Exemplo n.º 1
0
        public void Show_TestCaptionEvent_EqualsCaption()
        {
            ShowInfo showInfo    = new ShowInfo();
            string   testText    = "";
            string   testCaption = "";
            object   testSender  = new object();

            showInfo.ShowInformation += (object sender, string text, string caption) => { testText = text; testCaption = caption; testSender = sender; };
            showInfo.Show("test", "caption");
            Assert.AreEqual("caption", testCaption);
        }
Exemplo n.º 2
0
        //Window show ImageProperty
        private void OpenImgInfo()
        {
            if (ImageOne == null)
            {
                MessageBox.Show("Please open at least one image");
                return;
            }

            ShowInfo _showInfo = new ShowInfo(ImageOne);

            _showInfo.Show();
            Console.WriteLine("Open image Infro");
        }
Exemplo n.º 3
0
 private void StopButton_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure you want to end your show?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
     {
         ShowInfo si = new ShowInfo(this.mf, this.kCurrentPodcast);
         si.ac = this;
         si.Show();
     }
 }