Example #1
0
        private void btnInstrinsicExport_Click(object sender, EventArgs e)
        {
            try
            {
                /*
                 * //Export by file
                 * string nameTag = "RtIntrinsicExport";
                 * var tag = GetTag(ResourceUtility.GetString(nameTag));
                 * if (tag != null)
                 * {
                 *  InsightClickButton(tag.Location);
                 * }
                 */
                //Export by Snippet
                mCvsInSightDisplayEdit = mCvsInsightDisplay.Edit;
                mCvsInsightDisplay.SetCurrentCell(79, 1);
                CvsCellLocation cvs = mCvsInsightDisplay.CurrentCellNow;
                int             col = mCvsInsightDisplay.CurrentCellNow.Column;
                int             row = mCvsInsightDisplay.CurrentCellNow.Row;
                CvsAction.SetEnabled(mCvsInSightDisplayEdit.ExportSnippet, true);
                bool isEnable = mCvsInSightDisplayEdit.ExportSnippet.Enabled;

                mCvsInSightDisplayEdit.ExportSnippet.Execute();
                MessageLoggerManager.Log.Info(String.Format("[Action] Click Export"));
            }
            catch (Exception ex)
            {
            }
        }
Example #2
0
        private void btnTwoHEUpdate_Click(object sender, EventArgs e)
        {
            MessageManager.MessageLoggerManager.Log.Info("[Action] Update Two HE SLMP...");
            try
            {
                //Import by Snippet
                mCvsInSightDisplayEdit = mCvsInsightDisplay.Edit;
                mCvsInsightDisplay.SetCurrentCell(88, 19);
                CvsCellLocation cvs = mCvsInsightDisplay.CurrentCellNow;
                int             col = mCvsInsightDisplay.CurrentCellNow.Column;
                int             row = mCvsInsightDisplay.CurrentCellNow.Row;
                CvsAction.SetEnabled(mCvsInSightDisplayEdit.ImportSnippet, true);
                bool isEnable = mCvsInSightDisplayEdit.ImportSnippet.Enabled;

                mCvsInSightDisplayEdit.ImportSnippet.Execute();
            }
            catch (Exception ex)
            {
            }
        }