Пример #1
0
        private void textBox_GroupNo_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            string message = "班番号は管理者のみが変更してください。\n続けますか?";

            if (ShowMessageDlg(message) == MessageBoxResult.Cancel)
            {
                return;
            }

            TenKeyBord sw = new TenKeyBord(mwContext.mwPartGroupNo);


            this.Grid_Opa.Visibility = Visibility.Visible;

            sw.ShowDialog();


            this.Grid_Opa.Visibility = Visibility.Collapsed;


            if (sw.result != -1)
            {
                mwContext.mwPartGroupNo = sw.result;
            }
        }
Пример #2
0
        private void textBox_PartNumber_Edit(object sender)
        {
            TenKeyBord sw = new TenKeyBord(mwContext.mwPartNumber);



            this.Grid_Opa.Visibility = Visibility.Visible;

            sw.ShowDialog();


            this.Grid_Opa.Visibility = Visibility.Collapsed;


            if (sw.result != -1)
            {
                mwContext.mwPartNumber = sw.result;

                if (DekiDakaDataCollection.Count > 1)
                {
                    string message = "既に入力されている人数も変更しますか?";

                    if (ShowMessageDlg(message) == MessageBoxResult.Cancel)
                    {
                        return;
                    }

                    PartNumber_ModifyAll(sw.result);
                }
            }
        }
Пример #3
0
        private void textBox_GroupNo_TouchDown(object sender, TouchEventArgs e)
        {
            //MessageBox.Show("ダブルクリック");

            //var txtbx_sender = (TextBox)sender;

            //string sendtext = txtbx_sender.Name;

            string message = "班番号は管理者のみが変更してください。\n続けますか?";

            if (ShowMessageDlg(message) == MessageBoxResult.Cancel)
            {
                return;
            }


            TenKeyBord sw = new TenKeyBord(mwContext.mwPartGroupNo);

            this.Grid_Opa.Visibility = Visibility.Visible;

            sw.ShowDialog();


            this.Grid_Opa.Visibility = Visibility.Collapsed;

            if (sw.result != -1)
            {
                mwContext.mwPartGroupNo = sw.result;
            }
        }
        /// <summary>
        /// テンキーボードを表示する
        /// </summary>
        /// <param name="value">初期表示の数字</param>
        /// <returns>入力結果</returns>
        private int TouchPanelTenkeyShow(int value = 0)
        {
            this.Grid_Opa.Visibility = Visibility.Visible;


            //MessageBox.Show("ダブルクリック");

            //var txtbx_sender = (TextBox)sender;

            //string sendtext = txtbx_sender.Name;


            TenKeyBord tw = new TenKeyBord(value);


            //tw.Topmost = true;

            tw.ShowDialog();

            IsModified = true;

            this.Grid_Opa.Visibility = Visibility.Collapsed;


            return(tw.result);
        }
Пример #5
0
        private void textBlock_Minute_Touch(object sender)
        {
            TenKeyBord tkw = new TenKeyBord(Dcx.iMinute);

            tkw.ShowDialog();

            if (tkw.result < 60 && tkw.result > -1)
            {
                Dcx.iMinute = tkw.result;
            }
        }
Пример #6
0
        private void textBlock_Hour_Touch(object sender)
        {
            TenKeyBord tkw = new TenKeyBord(Dcx.iHour);

            tkw.ShowDialog();

            if (tkw.result < 25 && tkw.result > -1)
            {
                Dcx.iHour = tkw.result;
            }
        }
Пример #7
0
        private int TouchPanelTenkeyShow(int value = 0)
        {
            //MessageBox.Show("ダブルクリック");

            //var txtbx_sender = (TextBox)sender;

            //string sendtext = txtbx_sender.Name;


            TenKeyBord tw = new TenKeyBord(value);


            //tw.Topmost = true;

            tw.ShowDialog();


            return(tw.result);
        }