コード例 #1
0
ファイル: w_package.cs プロジェクト: samualtang/InBoundNew
        private void btn_new_Click(object sender, EventArgs e)
        {
            sign = "0";
            win_package_handle package_handle = new win_package_handle(sign, "");

            package_handle.WindowState   = FormWindowState.Normal;
            package_handle.StartPosition = FormStartPosition.CenterScreen;
            package_handle.ShowDialog();
            seek();
            init();
        }
コード例 #2
0
ファイル: w_package.cs プロジェクト: samualtang/InBoundNew
        private void btn_amend_Click(object sender, EventArgs e)
        {
            int count = this.packagedata.SelectedRows.Count;

            if (count > 0)
            {
                amend_id = this.packagedata.CurrentRow.Cells[1].Value.ToString();
                sign     = "1";
                win_package_handle package_handle = new win_package_handle(sign, amend_id);
                package_handle.WindowState   = FormWindowState.Normal;
                package_handle.StartPosition = FormStartPosition.CenterScreen;
                package_handle.ShowDialog();
                seek();
                init();
            }
            else
            {
                MessageBox.Show("请点击选择您要修改的包装类型!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }