コード例 #1
0
ファイル: LostRenewForm.cs プロジェクト: wee2tee/SN_Net
 public LostRenewForm(SnWindow parent_window)
     : this()
 {
     this.parent_window = parent_window;
     this.G = this.parent_window.G;
     this.BackColor = ColorResource.BACKGROUND_COLOR_BEIGE;
 }
コード例 #2
0
ファイル: SupportNoteWindow.cs プロジェクト: wee2tee/SN_Net
 public SupportNoteWindow(SnWindow parent_window)
     : this()
 {
     Thread.CurrentThread.CurrentCulture = new CultureInfo("th-TH");
     this.main_form = parent_window.main_form;
     this.parent_window = parent_window;
     this.FormRead();
 }
コード例 #3
0
ファイル: SupportNoteWindow.cs プロジェクト: wee2tee/SN_Net
 public SupportNoteWindow(SnWindow parent_window, Serial serial, List<SerialPassword> password_list)
     : this()
 {
     this.main_form = parent_window.main_form;
     this.parent_window = parent_window;
     this.serial = serial;
     this.password_list = password_list;
 }
コード例 #4
0
ファイル: DealerList.cs プロジェクト: wee2tee/SN_Net
 public DealerList(SnWindow parent_window, string dealer_code)
     : this()
 {
     this.parent_window = parent_window;
     this.selected_dealer_code = dealer_code;
     this.sort_mode = SORT_MODE.DEALER;
     this.FillInDatagrid();
     this.SetSelectedItem();
 }
コード例 #5
0
ファイル: SellProgram2nd.cs プロジェクト: wee2tee/SN_Net
        public SellProgram2nd(SnWindow parent_window)
        {
            InitializeComponent();

            this.parent_window = parent_window;
            this.G = this.parent_window.G;

            this.getDealer();
        }
コード例 #6
0
ファイル: UpNewRwtLineForm.cs プロジェクト: wee2tee/SN_Net
 public UpNewRwtLineForm(SnWindow parent_form, DIALOG_TYPE dialog_type)
 {
     InitializeComponent();
     this.parent_form = parent_form;
     this.G = this.parent_form.G;
     this.dialog_type = dialog_type;
     verext = (this.dialog_type == DIALOG_TYPE.UP_NEWRWT ? "1" : (this.dialog_type == DIALOG_TYPE.UP_NEWRWT_JOB ? "2" : this.parent_form.serial.verext));
     this.Text = (this.dialog_type == DIALOG_TYPE.UP_NEWRWT_JOB ? "Gen 'Up New RWT + Job' line" : this.Text);
 }
コード例 #7
0
ファイル: GenerateSNForm.cs プロジェクト: wee2tee/SN_Net
        public GenerateSNForm(SnWindow parent_window)
        {
            InitializeComponent();
            this.parent_window = parent_window;
            this.G = this.parent_window.G;
            this.BackColor = ColorResource.BACKGROUND_COLOR_BEIGE;
            //this.chkCDTraining.CheckState = CheckState.Checked;

            this.mskSernum.Enter += new EventHandler(this.onControlEnterHandler);
            this.numQty.Enter += new EventHandler(this.onControlEnterHandler);
            this.txtVersion.Enter += new EventHandler(this.onControlEnterHandler);
            this.txtDealer.Enter += new EventHandler(this.onControlEnterHandler);

            this.txtVersion.Leave += new EventHandler(this.onControlLeaveHandler);
            this.numQty.Leave += new EventHandler(this.onControlLeaveHandler);
            this.mskSernum.Leave += new EventHandler(this.onControlLeaveHandler);
            this.txtDealer.Leave += new EventHandler(this.onControlLeaveHandler);

            this.mskSernum.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.numQty.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.txtVersion.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.txtDealer.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.chkCDTraining.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.chkNewRwt.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.chkNewRwtJob.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.btnOK.GotFocus += new EventHandler(this.onControlFocusedHandler); ;
            this.btnCancel.GotFocus += new EventHandler(this.onControlFocusedHandler);

            this.mskSernum.Leave += new EventHandler(this.validateSernumFieldLeave);
            this.txtDealer.Leave += new EventHandler(this.validateDealerFieldLeave);

            this.chkNewRwt.CheckedChanged += new EventHandler(this.onCheckBoxStateChange);
            this.chkNewRwtJob.CheckedChanged += new EventHandler(this.onCheckBoxStateChange);

            this.getDealer();

            this.numQty.Leave += delegate
            {
                if (this.numQty.Text.Length == 0)
                {
                    this.numQty.Text = "1";
                }
            };
            this.txtVersion.Leave += delegate
            {
                if (this.txtVersion.Text.Length == 0)
                {
                    if (ValidateSN.Check(this.mskSernum.Text))
                    {
                        this.txtVersion.Text = this.mskSernum.Text.Substring(2, 1) + "." + this.mskSernum.Text.Substring(3, 1);
                    }
                }
            };

            this.form_mode = FORM_MODE.EDIT;
        }
コード例 #8
0
ファイル: SellBookForm.cs プロジェクト: wee2tee/SN_Net
        public SellBookForm(SnWindow parent_window)
        {
            InitializeComponent();
            this.parent_window = parent_window;
            this.G = this.parent_window.G;
            this.form_mode = FORM_MODE.EDIT;

            List<MaskedTextBox> lmsk = new List<MaskedTextBox>();
            lmsk.Add(this.mskAsDate);
            List<DateTimePicker> ldtp = new List<DateTimePicker>();
            ldtp.Add(this.dpAsDate);
            PairDatePickerWithMaskedTextBox.Attach(lmsk, ldtp);
        }
コード例 #9
0
ファイル: CloudsrvFormDialog.cs プロジェクト: wee2tee/SN_Net
 //public CloudsrvFormDialog(SnWindow parent_window)
 //    : this()
 //{
 //    this.parent_window = parent_window;
 //}
 public CloudsrvFormDialog(SnWindow parent_window, CloudSrv cs = null)
     : this()
 {
     this.parent_window = parent_window;
 }
コード例 #10
0
ファイル: ImportListForm.cs プロジェクト: wee2tee/SN_Net
 public ImportListForm(SnWindow parent_window)
 {
     InitializeComponent();
     this.parent_window = parent_window;
     this.G = this.parent_window.G;
 }
コード例 #11
0
ファイル: MainForm.cs プロジェクト: wee2tee/SN_Net
 private void sNToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.sn_wind == null)
     {
         this.sn_wind = new SnWindow(this);
         this.sn_wind.G = this.G;
         this.sn_wind.MdiParent = this;
         this.sn_wind.WindowState = FormWindowState.Maximized;
         this.sn_wind.Show();
     }
     else
     {
         this.sn_wind.Activate();
         if (sn_wind.current_focused_control != null)
         {
             sn_wind.current_focused_control.Focus();
         }
     }
 }
コード例 #12
0
ファイル: SupportNoteWindow.cs プロジェクト: wee2tee/SN_Net
 private void btnViewDetail_Click(object sender, EventArgs e)
 {
     if (this.main_form.sn_wind != null)
     {
         if (this.main_form.sn_wind.serial.id != this.serial.id)
         {
             this.main_form.sn_wind.serial = this.serial;
             this.main_form.sn_wind.toolStripReload.PerformClick();
         }
         this.main_form.sn_wind.Activate();
     }
     else
     {
         SnWindow sn_wind = new SnWindow(this.main_form);
         this.main_form.sn_wind = sn_wind;
         sn_wind.MdiParent = this.main_form;
         sn_wind.Show();
     }
 }
コード例 #13
0
 public SerialPasswordDialog(MainForm main_form, SnWindow sn_wind)
 {
     InitializeComponent();
     this.main_form = main_form;
     this.sn_wind = sn_wind;
 }
コード例 #14
0
ファイル: SNInquiryWindow.cs プロジェクト: wee2tee/SN_Net
 public SNInquiryWindow(SnWindow parentWindow, INQUIRY_TYPE inquiry_type)
     : this()
 {
     this.parentWindow = parentWindow;
     this.inquiry_type = inquiry_type;
 }
コード例 #15
0
ファイル: MAFormDialog.cs プロジェクト: wee2tee/SN_Net
 public MAFormDialog(SnWindow parent_window)
     : this()
 {
     this.parent_window = parent_window;
 }