private void sendingSummaryIconButton_Click(object sender, System.EventArgs e)
        {
            cmb = new CustomMessageBox();

            ExportDataOptionPanel popupContent = new ExportDataOptionPanel(this.exportDataOption, () => this.vmc.YearMonthDate)
            {
                ExportDataOption =
                {
                    CustomizedDateSetter = delegate(ExportDataOption op)
                    {
                        op.StartDate = new System.DateTime(this.vmc.Year, this.vmc.Month, 1);
                        op.EndDate = new System.DateTime(this.vmc.Year, this.vmc.Month, this.vmc.ViewDateTime.GetLastDayOfMonth().Day);
                    }
                },
            };
            popupContent.ExportDataOption.ExportDataType = SummaryDataType.ExpenseOrIncomeRecords;

            cmb.LeftButtonContent = AppResources.ExportReport.ToUpper();
            cmb.IsLeftButtonEnabled = true;
            cmb.Dismissed += cmb_Dismissed;
            cmb.Content = popupContent;

            cmb.Show();
        }
 private void sendingSummaryIconButton_Click(object sender, System.EventArgs e)
 {
     PopupCotainer cotainer = new PopupCotainer(this);
     ExportDataOptionPanel popupContent = new ExportDataOptionPanel(this.exportDataOption, () => this.vmc.YearMonthDate)
     {
         ExportDataOption =
         {
             CustomizedDateSetter = delegate(ExportDataOption op)
             {
                 op.StartDate = new System.DateTime(this.vmc.Year, this.vmc.Month, 1);
                 op.EndDate = new System.DateTime(this.vmc.Year, this.vmc.Month, this.vmc.ViewDateTime.GetLastDayOfMonth().Day);
             }
         },
     };
     popupContent.ExportDataOption.ExportDataType = SummaryDataType.ExpenseOrIncomeRecords;
     popupContent.Confirmed += new System.EventHandler<System.EventArgs>(this.optionPanel_Confirmed);
     cotainer.Show(popupContent);
 }