예제 #1
0
        private void InitializeViews(NStorage storage)
        {
            mInboxView         = new NikotalkieFolderView(storage.InboxIndex, this);
            mInboxView.Visible = false;
            this.Controls.Add(mInboxView);

            mOutboxView         = new NikotalkieFolderView(storage.OutboxIndex, this);
            mOutboxView.Visible = false;
            this.Controls.Add(mOutboxView);

            mComposeMessageView              = new NikotalkieComposeMessageView();
            mComposeMessageView.Visible      = false;
            mComposeMessageView.TalkClicked += new EventHandler(mNewMessageView_TalkClicked);
            this.Controls.Add(mComposeMessageView);



            mRecordingView                    = new NikotalkieRecordingView();
            mRecordingView.Visible            = false;
            mRecordingView.RecordingCanceled += new EventHandler(mRecordingView_RecordingCanceled);
            mRecordingView.RecordingSend     += new EventHandler(mRecordingView_RecordingSend);
            mRecordingView.RecordingDone     += new EventHandler(mRecordingView_RecordingDone);
            this.Controls.Add(mRecordingView);


            SwitchActiveView(ControlView.ComposeMessage);
        }
예제 #2
0
        private void InitializeViews(NStorage storage)
        {
            mInboxView = new NikotalkieFolderView(storage.InboxIndex,this);
            mInboxView.Visible = false;
            this.Controls.Add(mInboxView);

            mOutboxView = new NikotalkieFolderView(storage.OutboxIndex,this);
            mOutboxView.Visible = false;
            this.Controls.Add(mOutboxView);

            mComposeMessageView = new NikotalkieComposeMessageView();
            mComposeMessageView.Visible = false;
            mComposeMessageView.TalkClicked += new EventHandler(mNewMessageView_TalkClicked);
            this.Controls.Add(mComposeMessageView);



            mRecordingView = new NikotalkieRecordingView();
            mRecordingView.Visible = false;
            mRecordingView.RecordingCanceled += new EventHandler(mRecordingView_RecordingCanceled);
            mRecordingView.RecordingSend += new EventHandler(mRecordingView_RecordingSend);
            mRecordingView.RecordingDone += new EventHandler(mRecordingView_RecordingDone);
            this.Controls.Add(mRecordingView);


            SwitchActiveView(ControlView.ComposeMessage);

        }