コード例 #1
0
        /// <summary>
        /// As yet unused warning.
        /// </summary>
        private void AskWrite()
        {
            string q = "Write unwritten properties?";
            swMessageBoxResult_e r = (swMessageBoxResult_e)SwApp.SendMsgToUser2(q,
                                                                                (int)swMessageBoxIcon_e.swMbQuestion, (int)swMessageBoxBtn_e.swMbYesNo);

            switch (r)
            {
            case swMessageBoxResult_e.swMbHitAbort:
                break;

            case swMessageBoxResult_e.swMbHitCancel:
                break;

            case swMessageBoxResult_e.swMbHitIgnore:
                break;

            case swMessageBoxResult_e.swMbHitNo:
                break;

            case swMessageBoxResult_e.swMbHitOk:
                break;

            case swMessageBoxResult_e.swMbHitRetry:
                break;

            case swMessageBoxResult_e.swMbHitYes:
                Write();
                break;

            default:
                break;
            }
        }
コード例 #2
0
 /// <summary>
 /// If this ever comes up, I suppose it's because the wrong kind of doc is open.
 /// </summary>
 private void SetupOther()
 {
     // Blow out any existing controls, and dump events.
     ClearControls(this);
     SwApp.SendMsgToUser2(
         Properties.Resources.MustOpenDocument,
         (int)swMessageBoxIcon_e.swMbInformation,
         (int)swMessageBoxBtn_e.swMbOk);
 }
コード例 #3
0
 public void donothing(string data)
 {
     SwApp.SendMsgToUser2(data, 0, 0);
 }