Example #1
0
 public virtual void OnCountExceeded(CountExceededEventArgs e)
 {
     if (CountExceeded != null)
     {
         CountExceeded(this, e);
     }
 }
Example #2
0
 public void OnShowBranchTagInfo(object sender, CountExceededEventArgs e)
 {
     FileManager fm = sender as FileManager;
     if (fm != null)
     {
         Console.WriteLine("BranchTagInfo: The current file is in Branch {0} - Tag {1}", fm.branch, fm.tag);
     }
 }
Example #3
0
        public void OnShowBranchTagInfo(object sender, CountExceededEventArgs e)
        {
            FileManager fm = sender as FileManager;

            if (fm != null)
            {
                Console.WriteLine("BranchTagInfo: The current file is in Branch {0} - Tag {1}", fm.branch, fm.tag);
            }
        }
Example #4
0
 public void ManageSize()
 {
     for (int i = 0; i <= 101; i++)
     {
         fileSize = i;
         if (fileSize == 101)
         {
             CountExceededEventArgs e = new CountExceededEventArgs(fileSize);
             OnCountExceeded(e);
         }
     }
 }
Example #5
0
 public static void OnShowCurrentFileSize(object sender, CountExceededEventArgs e)
 {
     Console.WriteLine("Info: The current file size is {0} kb", e.fileSize);
 }
Example #6
0
 public static void OnShowWarningInfo(object sender, CountExceededEventArgs e)
 {
     Console.WriteLine("Warning: The current file size has exceeded 100 kb");
 }
Example #7
0
 public static void OnShowWarningInfo(object sender, CountExceededEventArgs e)
 {
     Console.WriteLine("Warning: The current file size has exceeded 100 kb");
 }
Example #8
0
 public static void OnShowCurrentFileSize(object sender, CountExceededEventArgs e)
 {
     Console.WriteLine("Info: The current file size is {0} kb", e.fileSize);
 }
Example #9
0
 public virtual void OnCountExceeded(CountExceededEventArgs e)
 {
     if (CountExceeded != null)
     {
         CountExceeded(this, e);
     }
 }
Example #10
0
 public void ManageSize()
 {
     for (int i = 0; i <= 101; i++)
     {
         fileSize = i;
         if (fileSize == 101)
         {
             CountExceededEventArgs e = new CountExceededEventArgs(fileSize);
             OnCountExceeded(e);
         }
     }
 }