コード例 #1
0
        private async void Remarks_Click(object sender, RoutedEventArgs e)
        {
            string path = @"\archive.db";
            RecordEntryConfirmation record = (RecordEntryConfirmation)EntriesHolder.SelectedItem;

            if (record == null)
            {
                MsgNoItemSelected();
            }
            else if (pmsutil.IsArchived(record.RecordID) == true && pmsutil.CheckArchiveDrive(path) == "dc")
            {
                MsgArchiveNotConnected();
            }
            else
            {
                var metroWindow = (Application.Current.MainWindow as MetroWindow);
                await metroWindow.ShowChildWindowAsync(new ViewRemarksWindow(record.RecordID), this.ParentGrid);
            }
        }