예제 #1
0
        private void SetTweetTimeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SetTweetTimeForm setTweetTimeForm = new SetTweetTimeForm();

            setTweetTimeForm.ShowDialog(this);

            //DialogResultプロパティを調べる
            if (setTweetTimeForm.DialogResult == DialogResult.OK)
            {
                Settings.Instance.TweetTime = setTweetTimeForm.dateTimePicker1.Value;
            }

            setTweetTimeForm.Dispose();
            Settings.SaveToXmlFile();
        }
예제 #2
0
        private void SetTweetTimeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SetTweetTimeForm setTweetTimeForm = new SetTweetTimeForm();
            setTweetTimeForm.ShowDialog(this);

            //DialogResultプロパティを調べる
            if (setTweetTimeForm.DialogResult == DialogResult.OK)
            {
                Settings.Instance.TweetTime = setTweetTimeForm.dateTimePicker1.Value;
            }

            setTweetTimeForm.Dispose();
            Settings.SaveToXmlFile();
        }