Ejemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : tojiruButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/30 HuyTX    新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void tojiruButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                MstMenuForm frm = new MstMenuForm();
                Program.mForm.ShowForm(frm);
            }
            catch (Exception ex)
            {
                TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString());
                MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message);
            }
            finally
            {
                Cursor.Current = preCursor;
                TraceLog.EndWrite(MethodInfo.GetCurrentMethod());
            }
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     MstMenuForm frm = new MstMenuForm();
     this.ShowForm(frm);
 }
Ejemplo n.º 3
0
        private void dynButtonMenu()
        {
            //ボタンコントロール配列の作成
            this.buttons = new Button[10];
            for (int i = 0; i < buttons.Length; i++)
            {
                //ボタンコントロールのインスタンス作成
                this.buttons[i] = new ZButton();

                //プロパティ設定
                this.buttons[i].Name = "FukjBizSystem.Application.Boundary.Master.HokenjoMstListForm";// +i.ToString();
                this.buttons[i].Text = "機能名" + i.ToString();
                this.buttons[i].Top = i * 30;
                //this.buttons[i].Image = GetImageFromResource("FukjBizSystem.Application.Boundary.Master.HokenjoMstListForm");
                this.buttons[i].Image = GetImageFromResource("icon_end");

                //コントロールをフォームに追加
                this.panel2.Controls.Add(this.buttons[i]);
                this.buttons[i].Click += new System.EventHandler(btnclick);
            }
            MstMenuForm frm = new MstMenuForm();
            this.ShowForm(frm);
        }
Ejemplo n.º 4
0
        ////////////////////////////////////////////////////////////////////////////
        //  イベント名 : tojiruButton_Click
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <history>
        /// 日付    担当者   内容
        /// 2014/06/25  DatNT   新規作成
        /// </history>
        ////////////////////////////////////////////////////////////////////////////
        private void tojiruButton_Click(object sender, EventArgs e)
        {
            TraceLog.StartWrite(MethodInfo.GetCurrentMethod());
            Cursor preCursor = Cursor.Current;

            try
            {
                Cursor.Current = Cursors.WaitCursor;

                if (editFlg)
                {
                    if (MessageForm.Show2(MessageForm.DispModeType.Question, "編集内容が破棄されます。よろしいですか?")
                        == System.Windows.Forms.DialogResult.Yes)
                    {
                        MstMenuForm frm = new MstMenuForm();
                        Program.mForm.ShowForm(frm);
                    }
                }
                else
                {
                    MstMenuForm frm = new MstMenuForm();
                    Program.mForm.ShowForm(frm);
                }
            }
            catch (Exception ex)
            {
                TraceLog.ErrorWrite(MethodInfo.GetCurrentMethod(), ex.ToString());
                MessageForm.Show(MessageForm.DispModeType.Error, MessageResouce.MSGID_E00001, ex.Message);
            }
            finally
            {
                Cursor.Current = preCursor;
                TraceLog.EndWrite(MethodInfo.GetCurrentMethod());
            }
        }