コード例 #1
0
        private void btn_details_Click(object sender, EventArgs e)
        {
            /*
            //Cursor.Show();
            //Cursor.Current = Cursors.WaitCursor;
            //try
            //{

            //    if (AssetDetail_form == null)
            //    {
            //        AssetDetail_form = new AssetDetailsDisplayForm(this,null );
            //    }
            //    AssetDetail_form.ShowDialog();

            //}
            //catch (Exception ex)
            //{
            //    Cursor.Current = Cursors.Default;
            //}
            //Cursor.Current = Cursors.Default;  */

            try
            {
                Cursor.Show();
                Cursor.Current = Cursors.WaitCursor;

                if (AssetDetail_form == null)
                {
                    AssetDetail_form = new AssetDetailsDisplayForm(this);
                }

                AssetDetail_form.ShowDialog();

                Cursor.Show();
                Cursor.Current = Cursors.WaitCursor;

                AssetDetail_form.Dispose();
                AssetDetail_form = null;

                Cursor.Current = Cursors.Default;
            }
            catch (Exception ex)
            { }
        }
コード例 #2
0
        private void btn_details_Click(object sender, EventArgs e)
        {
            Cursor.Show();
            Cursor.Current = Cursors.WaitCursor;
            try
            {
                if (TAGList.Count > 0)
                {

                    GlobalVariables.gloableTagsList = null;
                    Comma_Separated_TagsList = string.Empty;
                    foreach (string tagID in TAGList.ToArray())
                    {
                        Comma_Separated_TagsList = Comma_Separated_TagsList + tagID.ToString().Trim() + ",";
                    }
                    Comma_Separated_TagsList = Comma_Separated_TagsList.Substring(0, Comma_Separated_TagsList.Length - 1);
                    GlobalVariables.gloableTagsList = Comma_Separated_TagsList;

                    if (AssetDetail_form == null)
                    {
                        AssetDetail_form = new AssetDetailsDisplayForm(null, this);
                    }
                    AssetDetail_form.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Please scan Tags.", "Search Category");

                }

            }
            catch (Exception ex)
            {
                Cursor.Current = Cursors.Default;
            }
            Cursor.Current = Cursors.Default;
        }
コード例 #3
0
        private void btn_details_Click(object sender, EventArgs e)
        {
            Cursor.Show();
            Cursor.Current = Cursors.WaitCursor;
            try
            {
                GlobalVariables.gloableTagsList = null;
                foreach (string tagID in TAGList.ToArray())
                {
                    Comma_Separated_TagsList = Comma_Separated_TagsList + tagID.ToString().Trim() + ",";
                }
                Comma_Separated_TagsList = Comma_Separated_TagsList.Substring(0, Comma_Separated_TagsList.Length - 1);
                GlobalVariables.gloableTagsList = Comma_Separated_TagsList;

                if (AssetDetail_form == null)
                {
                    AssetDetail_form = new AssetDetailsDisplayForm(this,null );
                }
                AssetDetail_form.ShowDialog();

            }
            catch (Exception ex)
            {
                Cursor.Current = Cursors.Default;
            }
            Cursor.Current = Cursors.Default;
        }