SHARE
TWEET

Untitled

a guest Dec 2nd, 2019 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public abstract class OutBase<T>
  2.   {
  3.     public abstract T Find(string s);
  4.     public abstract void Insert(T t);
  5.   }
  6.  
  7.  public class OutExcel : OutBase<Excel.Range>
  8.   {
  9.     public Excel.Application XlApp { get; private set; }
  10.     public Excel.Workbook XlWorkBook { get; private set; }
  11.     public Excel.Worksheet XlWorkSheet { get; private set; }
  12.     private object _misValue = Missing.Value;
  13.     private string _excelFileName = string.Empty;
  14.  
  15.     public OutExcel(string excelFileName)
  16.     {
  17.       _excelFileName = excelFileName;
  18.       OpenApp();
  19.     }
  20.  
  21.     ~OutExcel()
  22.     {
  23.       CloseApp();
  24.     }
  25.  
  26.     public override Excel.Range Find(string s)
  27.     {
  28.       throw new NotImplementedException();
  29.     }
  30.  
  31.     public override void Insert(Excel.Range t)
  32.     {
  33.       throw new NotImplementedException();
  34.     }
  35.   }
  36.  
  37.     public abstract class Goods
  38.     {
  39.       public OutExcel Output { get; }
  40.       public string Proposal { get; }
  41.  
  42.       public Goods(OutExcel output, string proposal)
  43.       {
  44.         Output = output;
  45.         Proposal = proposal;
  46.       }
  47.      
  48.       public abstract void SearchProposal();
  49.  
  50.       public override abstract string ToString();
  51.     }
  52.  
  53.   public class TableGood : Goods
  54.   {
  55.  
  56.     public TableGood(OutExcel output, string proposal, string tableName): base(output, proposal)
  57.     {
  58.     }
  59.  
  60.     public override void SearchProposal()
  61.     {
  62.       throw new NotImplementedException();
  63.     }
  64.  
  65.     public override string ToString()
  66.     {
  67.       throw new NotImplementedException();
  68.     }
  69.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top