コード例 #1
0
ファイル: MainForm.cs プロジェクト: mrstmkt/mairimokon_csharp
        private void ReadButton_Click(object sender, EventArgs e)
        {
            ReadForm f = new ReadForm();

            f.ShowDialog();
            f.Dispose();
        }
コード例 #2
0
        private void FrameReadButton_Click(object sender, EventArgs e)
        {
            ReadForm     f   = new ReadForm();
            DialogResult ret = f.ShowDialog();

            if (ret == DialogResult.OK)
            {
                List <IRFrame> frames = f.Frames;
                if (frames != null && frames.Count > 0)
                {
                    this.maiRButton.Format = f.Format;
                    this.maiRButton.Frames = frames;
                    SetFramesTextBoxValue(frames);
                }
                else
                {
                    this.maiRButton.Frames  = null;
                    this.framesTextBox.Text = "";
                }
            }
            f.Dispose();
        }