コード例 #1
0
        private void LogB_Click(object sender, RoutedEventArgs e)
        {
            FileLog log     = new FileLog();
            Journal journal = new Journal(log.Action("Reading"));

            journal.ShowDialog();
        }
コード例 #2
0
 public void ProductAction(string Action, string[] mass)
 {
     if (Action == "Created")
     {
         AddProduct(mass);
     }
     if (Action == "Search")
     {
         SearchProduct(mass);
     }
     if (Action == "Delete")
     {
         DeleteProduct(mass);
     }
     if (Action == "Load_all")
     {
         Load_all();
     }
     log.Action("Recording", Action, mass);
 }
コード例 #3
0
ファイル: UserManager.cs プロジェクト: 2Andrey2/Coursework
 public void UserAction(string Action, string[] mass)
 {
     if (Action == "Created")
     {
         UserСreation(mass);
     }
     if (Action == "Entrance")
     {
         UserEditing(mass);
     }
     if (Action == "Delete")
     {
         UserDelete(mass);
     }
     if (Action == "Load_all")
     {
         Load_all();
     }
     log.Action("Recording", Action, mass);
 }