예제 #1
0
 private void AskWin_EventPickUpTable(object sender, EventArgs e)
 {
     try
     {
         TableState tableState = new TableState();
         tableState.TableName    = MediatorSema.UsingTable.TableName;
         tableState.UserName     = Environment.UserName;
         tableState.StartTime    = String.Format("{0:G}", DateTime.Now);
         tableState.Path         = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
         MediatorSema.UsingTable = tableState;
         ManagerDb.UpdateTableState();
         MediatorSema.IsTableMy       = true;
         MediatorSema.CurrentFileType = FileType.Bat;
         GetFiles();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "AskWin_EventPickUpTable() Exception", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }